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_TOKENenvironment 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
Release files for fetch-github-issues 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fetch_github_issues-0.1.2.tar.gz | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fetch_github_issues-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.2 kB
Release files / fetch_github_issues-0.1.2.tar.gz
| Download URL | fetch_github_issues-0.1.2.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff61619487ca378f81623bd7431c552b963f12f28608458b5afb082ceffc1666
|
|
BLAKE2b-256 checksum How to use checksums |
a37c30d38203ee02fd368ec9dbf7e30ceced743899cc89cf511d96d9aeb228df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / fetch_github_issues-0.1.2-py3-none-any.whl
| Download URL | fetch_github_issues-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3079355c71e96907c202bdef18f746700a769b8367a35b77d3a60a949957fbef
|
|
BLAKE2b-256 checksum How to use checksums |
e4ce370baab045fda43c86595dc5f1ecada9cbcdc2f1b362d4806e45e92f944c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|