A Python command line tool that creates GitHub issues with the same title & body in multiple repositories.
Handy if you manage multiple repositories that require the same update on occasion.
- Filter by category: assign categories to repositories in the repository data file, when you run the script you can provide a category to specify a subset of repositories to update
A GitHub access token from an account that has PULL
access to the target repositories must be created.
- Go to: https://github.com/settings/tokens
- Generate a token with access to the following scopes according to your needs:
repo
andpublic_repo
- Make a copy of
settings.sample
and rename tosettings.txt
- Assign the access token created in step 2 to
github_access_token
insettings.txt
, Example:
github_access_token=[GITHUB_ACCESS_TOKEN_HERE]
- Confirm that the repos listed in
repos.json
are accurate - Add the issue title to line 1 of
issue.txt
- Add the issue body to lines 2..n of
issue.txt
(ie. the title and body are separated by a newline) - Run the script from the root directory of the project...there is no UNDO, proceed with caution:
python main.py [category]
[category] case-sensitive should be replaced with either all
to update all repositories or chose from your own categories that you have defined and any repository in repos.json
that match the given category will be updated.
Repositories are listed in repos.json
, each library is represented as a JSON object with the following structure:
{
"name": "github-repo-name",
"owner": "github-repo-owner",
"category": "category-name"
}
- Python Version: see
runtime.txt
- Requirements: see
requirements.txt