Checks that a repo is active and gets a list of active forks
Turns out that I could have used https://github.com/PyGithub/PyGithub.
-
Fill in the 'Note' field: eg. 'Token for fredhappyface:python.activegithub'
-
[optional] Set the expiry (the default 30 days should be sufficient)
-
Select the scopes as follows (ro)
-
Click 'Generate Token'
- Set the repo lifespan (weeks - eg. 1 - default=36)>
- Enter the user and repo name in the form (user/repo - eg. fredhappyface/python.activegithub)>
- Identify if the source repo is alive and look for forks that are active and newer
- Set the repo lifespan (weeks - eg. 1 - default=36)>
- User repos, watched or starred (R/w/s)>
- Identify if the selected repos are active
- Set the repo lifespan (weeks - eg. 1 - default=36)>
- Set the organisation name (hit enter if not applicable)>
- Ranks your repos and stores the traffic history in userReposTraffic.json
Functions:
- exit : []
- help : []
- repos : ['user']
- stars : ['user']
- watching : ['user']
- profile : ['user']
- showrepo : ['repo', 'user']
- showreadme : ['repo', 'user']
- searchissues : ['searchTerm']
- searchrepos : ['searchTerm']
- searchusers : ['searchTerm']
- gists : ['user']
usage: Generate badges for repos under an user/org [-h] [-o ORGS [ORGS ...]] [-u]
options:
-h, --help show this help message and exit
-o ORGS [ORGS ...], --orgs ORGS [ORGS ...]
add an org to get traffic for
-u, --user return the list of user owned repos?
This program has been written for Python 3 and has been tested with Python version 3.8.0 https://www.python.org/downloads/release/python-380/.
Install with chocolatey
choco install python
To install Python, go to https://www.python.org/ and download the latest version.
- Open the .py file in vscode
- Ensure a python 3.8 interpreter is selected (Ctrl+Shift+P > Python:Select Interpreter > Python 3.8)
- Run by pressing Ctrl+F5 (if you are prompted to install any modules, accept)
See the CHANGELOG for more information.
-
Press the Clone or download button in the top right
-
Copy the URL (link)
-
Open the command line and change directory to where you wish to clone to
-
Type 'git clone' followed by URL in step 2
git clone https://github.com/FredHappyface/Python.ActiveGithub
More information can be found at https://help.github.com/en/articles/cloning-a-repository
- Press the Clone or download button in the top right
- Click open in desktop
- Choose the path for where you want and click Clone
More information can be found at https://help.github.com/en/desktop/contributing-to-projects/cloning-a-repository-from-github-to-github-desktop
- Download this GitHub repository
- Extract the zip archive
- Copy/ move to the desired location
BSD-2-CLAUSE-PATENT License Copyright (c) FredHappyface (See the LICENSE for more information.)