Fetch all GitHub issues for a repository and save them as JSON
Project description
fetch-github-issues
Fetch all GitHub issues for a repository and save them as JSON
Installation
Install this tool using pip
:
pip install fetch-github-issues
Usage
To fetch all issues from a GitHub repository:
fetch-github-issues owner/repo --all
Or for just specific issues:
fetch-github-issues owner/repo 1 2 3
Other options:
--key xxx
: GitHub API key - will use theGITHUB_TOKEN
environment variable if this is not set.--output path/to/dir
: Output directory to save JSON. Default is the current directory.
For more help, run:
fetch-github-issues --help
You can also use:
python -m fetch_github_issues --help
Issue format
Issues will be saved in files called 1.json
and 2.json
and so on, where the filename is the issue number.
Each file will look like this:
{
"issue": {
"GitHub API issue representation": "..."
},
"comments": [
{
"GitHub API comment representation": "..."
}
]
}
Development
To contribute to this tool, first checkout the code. Then create a new virtual environment:
cd fetch-github-issues
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for fetch_github_issues-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 300ce7f1eaf2ab531b4eb36ddba2ca79cc03d4acb6020fca394ae0c9389051f3 |
|
MD5 | ed9a411f29ce9d99acb25925ba933a60 |
|
BLAKE2b-256 | a3d0e826ae580a7c718a5e25ed1e8e5d30cac5f34f35101f643c6d98e29a746b |
Close
Hashes for fetch_github_issues-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 723f6273701522dc43138427badebd0776a23cc9eba5401e2f6c1ef4fcd9827f |
|
MD5 | d070736ea56172539ddb6cd7e2ba84a4 |
|
BLAKE2b-256 | 145a33faf8dc85370e59e11a73324c94566d324c9a416ab55a082ba4f7097bff |