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 3110288 commit 33660be
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 460 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
Loading

0 comments on commit 33660be

Please sign in to comment.