Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rickstaa/org-contributors-contributions-overview
A small Python script to fetch GitHub contributions by organization members and open-source contributors of a GitHub organization.
https://github.com/rickstaa/org-contributors-contributions-overview
csv github github-data github-rest-api github-statistics python
Last synced: 2 days ago
JSON representation
A small Python script to fetch GitHub contributions by organization members and open-source contributors of a GitHub organization.
- Host: GitHub
- URL: https://github.com/rickstaa/org-contributors-contributions-overview
- Owner: rickstaa
- License: mit
- Created: 2023-12-15T10:04:27.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-15T10:29:32.000Z (about 1 year ago)
- Last Synced: 2024-11-14T13:44:26.565Z (2 months ago)
- Topics: csv, github, github-data, github-rest-api, github-statistics, python
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Org Contributors Contributions Overview
This Python script fetches GitHub contributions data for both organization members and open-source contributors of a specified GitHub organization. The data is then exported into two separate CSV files.
## Prerequisites
1. Python 3.6 or higher. If you don't have Python installed, you can download it from [python.org](https://www.python.org/downloads/).
2. A GitHub access token. This should be stored in an environment variable named `GITHUB_ACCESS_TOKEN`. If you don't have a token, you can create one by following the instructions in the [GitHub documentation](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token).## Usage
1. Clone this repository and navigate into its directory.
2. Add the GitHub access token to an environment variable named `GITHUB_ACCESS_TOKEN`.
3. Run the script by using the following command:```bash
python main.py --org
```Replace `` with the name of the GitHub organization you want to fetch contributions data for.
## Output
The script will generate two CSV files:
1. `org_members_contributions.csv`: Contains contributions data for members of the specified organization.
1. `open_source_contributors_contributions.csv`: Contains contributions data for open-source contributors to the specified organization's repositories.Each row in the CSV files represents a contributor and their contributions data.