https://github.com/jonathan-foucher/get-daily-contributions-script
A shell script using GitHub cli and jq to get the daily contributions
https://github.com/jonathan-foucher/get-daily-contributions-script
gh-cli graphql shell-script
Last synced: 18 days ago
JSON representation
A shell script using GitHub cli and jq to get the daily contributions
- Host: GitHub
- URL: https://github.com/jonathan-foucher/get-daily-contributions-script
- Owner: jonathan-foucher
- Created: 2024-08-03T15:39:21.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-03T16:52:44.000Z (almost 2 years ago)
- Last Synced: 2025-07-22T01:51:21.507Z (11 months ago)
- Topics: gh-cli, graphql, shell-script
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introduction
A shell script using gh and jq cli tools to get the daily GitHub contributions of the GitHub cli user.
The results contains every day of every years from the user account creation to the current year.
# Requirements
gh and jq must be installed
# Run the script
Run the script and save the results in a file named `daily-contributions.json`
```
sh get-daily-contributions.sh > daily-contributions.json
```
Results format
```
[
...,
{ "date": "2024-08-01", "contribution_count": 7 },
{ "date": "2024-08-02", "contribution_count": 12 },
{ "date": "2024-08-03", "contribution_count": 9 },
...
]
```