You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in GH, contributions are counted from a lot of activity including commits, code reviews, PRs, and issue creations.
Split contributions into these minimum 4 activities for better understanding, and don't remove the contributions data because it's like the sum of those activities.
1. GitHub Commits
Endpoint:GET /repos/{owner}/{repo}/commits
Add query parameters like author={username} to filter commits by a specific user.
Loop through repositories to get all commits by the user.
Describe the request
in GH, contributions are counted from a lot of activity including commits, code reviews, PRs, and issue creations.
Split contributions into these minimum 4 activities for better understanding, and don't remove the contributions data because it's like the sum of those activities.
1. GitHub Commits
GET /repos/{owner}/{repo}/commits
author={username}
to filter commits by a specific user.2. Code Reviews
GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews
user
and loop through pull requests to count reviews.3. Pull Requests
GET /search/issues
type:pr author:{username}
.https://api.github.com/search/issues?q=type:pr+author:username
.4. Issues
GET /search/issues
type:issue author:{username}
.https://api.github.com/search/issues?q=type:issue+author:username
.Notes:
The text was updated successfully, but these errors were encountered: