All Projects → jdennes → contribution-checker

jdennes / contribution-checker

Licence: MIT license
Check whether GitHub commits qualify as contributions.

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to contribution-checker

Githubdb
A Lightweight Cloud based JSON Database with a MongoDB like API for Node.
Stars: ✭ 174 (+411.76%)
Mutual labels:  github-api
Tentacle
A Swift framework for the GitHub API
Stars: ✭ 244 (+617.65%)
Mutual labels:  github-api
github releases exporter
Exports GitHub release metrics to the Prometheus format
Stars: ✭ 21 (-38.24%)
Mutual labels:  github-api
Ansibullbot
Bot for management of Ansible issues and PRs on GitHub.
Stars: ✭ 183 (+438.24%)
Mutual labels:  github-api
Buildapks
Really quickly build APKs on handheld device (smartphone or tablet) in Amazon, Android, Chromebook and Windows📲 See https://buildapks.github.io/docsBuildAPKs/setup to start building APKs.
Stars: ✭ 218 (+541.18%)
Mutual labels:  github-api
Builderbook
Open source web application to learn JS stack: React, Material-UI, Next.js, Node.js, Express.js, Mongoose, MongoDB database.
Stars: ✭ 3,015 (+8767.65%)
Mutual labels:  github-api
Auto Green
自动保持 GitHub 提交状态常绿 a commit every day, keep your girlfriend far away.
Stars: ✭ 164 (+382.35%)
Mutual labels:  github-api
showmyprs.com
See all your Open Source contributions in one place
Stars: ✭ 30 (-11.76%)
Mutual labels:  contributions
Metrics
📊 An infographics generator with 30+ plugins and 200+ options to display stats about your GitHub account and render them as SVG, Markdown, PDF or JSON!
Stars: ✭ 4,621 (+13491.18%)
Mutual labels:  github-api
admissions
Admissions is the gateway to Elixir School's private Slack
Stars: ✭ 18 (-47.06%)
Mutual labels:  github-api
Ghapi
A delightful and complete interface to GitHub's amazing API
Stars: ✭ 187 (+450%)
Mutual labels:  github-api
Curiosity
Find Amazing Github Projects ⚡️
Stars: ✭ 216 (+535.29%)
Mutual labels:  github-api
Jcabi Github
Object Oriented Wrapper of Github API
Stars: ✭ 252 (+641.18%)
Mutual labels:  github-api
Octohatrack
🐙👒 Show _all_ the contributors to a GitHub repository.
Stars: ✭ 175 (+414.71%)
Mutual labels:  github-api
protomate
Python built CLI tool for automated github project initialization. Check the source code documentation here: https://rednafi.github.io/protomate/
Stars: ✭ 15 (-55.88%)
Mutual labels:  github-api
Beefun Pro
Github client for iOS in Swift.
Stars: ✭ 172 (+405.88%)
Mutual labels:  github-api
Hubcaps
a rust interface for github
Stars: ✭ 245 (+620.59%)
Mutual labels:  github-api
github-profile
See Your Github Profile Summary
Stars: ✭ 21 (-38.24%)
Mutual labels:  github-api
RxSwift-VIPER-iOS
RxSwiftVIPER is an sample iOS App written in RxSwift using the VIPER architecture. Also RxSwiftVIPER is not a strict VIPER architecture.
Stars: ✭ 47 (+38.24%)
Mutual labels:  github-api
pouchrobot
An AI robot to collaborate in any open source project on GitHub
Stars: ✭ 39 (+14.71%)
Mutual labels:  github-api

GitHub Contribution Checker

People ❤️ GitHub Contributions. However, it's not always simple to tell why a commit isn't counted as a contribution. This library lets you check whether a specific commit qualifies as a contribution.

Developing

To start working on the project:

script/bootstrap

To run the specs:

script/test

Usage

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

App

You might like to try out the Contribution Checker app built on top of this library:

checker

The source for the app is in jdennes/contribution-checker-app.

Created by @izuzak and @jdennes at the Hamburg Hackathon, June 2014.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].