https://github.com/alexandergrooff/organization-git-activity
Get all activities from repositories across an organization
https://github.com/alexandergrooff/organization-git-activity
Last synced: 9 months ago
JSON representation
Get all activities from repositories across an organization
- Host: GitHub
- URL: https://github.com/alexandergrooff/organization-git-activity
- Owner: AlexanderGrooff
- Created: 2019-03-12T09:58:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-29T13:54:57.000Z (over 2 years ago)
- Last Synced: 2025-02-01T20:26:35.714Z (over 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Development
Create a new Personal access token under https://github.com/settings/tokens, give it proper permissions according to your use case.
```
git clone git@github.com:AlexanderGrooff/organization-git-activity.git
cd organization-git-activity
mkvirtualenv organization-git-activity -a .
pip install -r requirements.txt
```
Once you've got it set up, you can find commits by running a command like the following:
```
GITHUB_ACCESS_TOKEN="some-api-token" ./main.py ByteInternet -u "AlexanderGrooff"
```
You can also specify these variables in your environment:
```
export GH_USERNAME=AlexanderGrooff
export GH_ORGANIZATION=ByteInternet
export START_MONTH=$(printf "%02d" ${START_MONTH:-$(date +%m)})
export END_MONTH=$(printf "%02d" ${END_MONTH:-$(( $START_MONTH + 1 ))})
# Or you can use specific dates
export START_DATE=2023-05-01
export END_DATE=2023-05-31
```