This is a Bash script that collects and analyzes GitHub statistics for a specific user and a specific year.
The script collects data about the number of commits, the number of added and deleted lines for each repository of a certain GitHub user in a certain year.
- Bash
- GitHub CLI
Clone the repository and make the script executable:
git clone https://github.com/yourusername/yourrepository.git
cd yourrepository
chmod +x GitHub.sh
Set the GitHub username and the year for which you want to collect statistics at the beginning of the script:
GITHUB_USER="username"
YEAR="year"
Then run the script:
./GitHub.sh
The script will then start collecting data for the specified GitHub user for the specified year. It will go through each repository of the user, count the number of commits, and sum up the number of added and deleted lines for each commit.
If there is an error retrieving the commits for a repository, the script will output an error message and exit.
Contributions are welcome. Please open an issue or submit a pull request.
Please specify the license for your project.
Please replace the placeholder texts with the appropriate information about your project.