Skip to content

Releases: jdennes/contribution-checker

Version 2.0.0

21 Sep 21:23
1370314
Compare
Choose a tag to compare
  • Remove "within last year" requirement: #18 by @antn

Version 1.3.1

11 Jul 16:37
Compare
Choose a tag to compare
  • Fixes dates in test fixtures
  • Bumps Octokit to ~> 4.0
  • Adds a scripts directory:
    • script/bootstrap
    • script/test
    • script/cibuild
  • Adds a .travis.yml file

Version 1.3.0

29 Apr 19:21
Compare
Choose a tag to compare
  • Check whether a commit was authored using a generic email. #14

Version 1.2.1

24 Feb 18:44
Compare
Choose a tag to compare
  • We've fixed the bug in the GitHub API related to checking whether the authenticated user has starred a repository. This reverts the workaround that was implemented to cater for that bug. #12

Version 1.2.0

22 Feb 21:36
Compare
Choose a tag to compare
  • Added [:or_criteria][:user_has_opened_issue_or_pr_in_repo] to the check result hash to cater for the missing "You have opened a pull request or issue in the repository" criterion, which wasn't originally added. #11
  • Handled a change in Octokit's exception handling behaviour. #10

Version 1.1.1

13 Jan 17:42
Compare
Choose a tag to compare
  • Implemented a workaround for a bug in the API related to checking whether a user has starred a repository. Originally reported in #7. Workaround implemented in #8.

Version 1.1.0

19 Sep 16:50
Compare
Choose a tag to compare
  • Added [:and_criteria][:default_branch] to the check result hash for extra usefulness
  • Bumped Octokit dependency

Version 1.0.0

22 Jun 14:13
Compare
Choose a tag to compare

Added [:and_criteria][:commit_email] to the check result hash for extra usefulness:

› bundle console     
Resolving dependencies...
>> checker = ContributionChecker::Checker.new \
?>   :access_token => "your token",
?>   :commit_url   => "https://github.com/git/git-scm.com/commit/f6b5cb6"
>> checker.check
=> {
  :contribution => true,
  :and_criteria => {
    :commit_in_valid_branch => true,
    :commit_in_last_year => true,
    :repo_not_a_fork => true,
    :commit_email_linked_to_user => true,
    :commit_email => "[email protected]"
  },
  :or_criteria => {
    :user_has_starred_repo => false,
    :user_can_push_to_repo => false,
    :user_is_repo_org_member => false,
    :user_has_fork_of_repo => true
  }
}

Version 0.1.2

14 Jun 12:52
Compare
Choose a tag to compare
Version 0.1.2 Pre-release
Pre-release
  • Added full test coverage
  • Fixed a bug in ContributionChecker::Checker#user_is_repo_org_member?: 6f90650

Version 0.1.1

11 Jun 09:10
Compare
Choose a tag to compare
Version 0.1.1 Pre-release
Pre-release
  • Fixed a bug in ContributionChecker::Checker#user_has_fork_of_repo? in #2