在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:jdennes/contribution-checker开源软件地址:https://github.com/jdennes/contribution-checker开源编程语言:Ruby 98.3%开源软件介绍:GitHub Contribution CheckerPeople DevelopingTo start working on the project: script/bootstrap To run the specs: script/test Usagerequire "contribution-checker"
checker = ContributionChecker::Checker.new \
:access_token => "<Your 40 char GitHub API token>",
:commit_url => "https://github.com/user/repo/commit/sha"
checker.check
=> {
:contribution => true,
:and_criteria => {
:commit_email_is_not_generic => true,
:commit_in_valid_branch => true,
:repo_not_a_fork => true,
:commit_email_linked_to_user => true,
:commit_email => "[email protected]",
:default_branch => "master"
},
:or_criteria => {
:user_has_starred_repo => false,
:user_can_push_to_repo => false,
:user_is_repo_org_member => true,
:user_has_fork_of_repo => false,
:user_has_opened_issue_or_pr_in_repo => false
}
} AppYou might like to try out the Contribution Checker app built on top of this library: The source for the app is in jdennes/contribution-checker-app. Created by @izuzak and @jdennes at the Hamburg Hackathon, June 2014. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论