Skip to content

eferro/githubinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

githubinfo

Dump information about branches and PRs.

Initial idea and tests from: Fortiz2305/pr-alarm-bot

To access to github you need to export your GITHUB_OAUTH_TOKEN

To create one: Github help: create a personal access token

Install

python3 -m venv venv
source venv/bin/activate
pip install --upgrade -r requirements.txt

Execute

export GITHUB_OAUTH_TOKEN=<githubaccesstoken>
python githubinfo.py --dump_old_prs --dump_old_branches <github-organization>

Help

python githubinfo.py -h

usage: githubinfo.py [-h] [--reference REFERENCE] [--dump_old_prs]
                     [--dump_old_branches] [--days_old_prs DAYS_OLD_PRS]
                     [--days_old_branches DAYS_OLD_BRANCHES]
                     organization

positional arguments:
  organization          github organization

optional arguments:
  -h, --help            show this help message and exit
  --reference REFERENCE
                        name of the main branch/trunk
  --dump_old_prs        dump old PR
  --dump_old_branches   dump old Branches
  --days_old_prs DAYS_OLD_PRS
                        days to consider a PR as old (default 4)
  --days_old_branches DAYS_OLD_BRANCHES
                        days to consider a branch as too long (default 4)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages