Skip to content

Commit

Permalink
Create get-all-contributor-commit-activity.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sn2b committed May 12, 2023
1 parent 26ef59c commit 1dc2fa5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions get-all-contributor-commit-activity.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
. ./.gh-api-examples.conf

# https://docs.github.com/en/rest/metrics/statistics?apiVersion=2022-11-28#get-all-contributor-commit-activity
# GET /repos/{owner}/{repo}/stats/contributors

curl ${curl_custom_flags} \
-H "X-GitHub-Api-Version: ${github_api_version}" \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
${GITHUB_API_BASE_URL}/repos/${org}/${repo}/stats/contributors

0 comments on commit 1dc2fa5

Please sign in to comment.