Skip to content

Version 1.0.0

Compare
Choose a tag to compare
@jdennes jdennes released this 22 Jun 14:13
· 55 commits to master since this release

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
  }
}