NFDI4BIOIMAGE / training

https://nfdi4bioimage.github.io/training
Creative Commons Attribution 4.0 International
12 stars 7 forks source link

Create a script to fetch GitHub statistics from YAML file and save to CSV. #491

Closed github-actions[bot] closed 1 week ago

github-actions[bot] commented 1 week ago

This message was generated by git-bob (version: 0.14.0, model: github_models:gpt-4o, log), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.

Created a new Python script auto-add-github-statistics.py to automatically fetch the number of stars and forks for specified GitHub repositories listed in nfdi4bioimage.yml. The script uses PyGithub to connect to the GitHub API, extracts repository URLs from the YAML file, processes them to capture star and fork counts, and saves this information into a CSV file named with the current date under the github_statistics directory. The GitHub token is to be set via an environment variable for secure authentication.

closes #490