Skip to main content

Easy way to export github issues

Project description

Github Issue Exporter

Do you want a backup of your Github export?

This is your chance to do it!

Installation

Dependencies

Only dependency is the python library requests

Either clone the repo and install with pip install . or wait for me to publish it on pypi.

Local install

  1. Clone repo
  2. python3 -m virtualenv venv + source venv/bin/activate
  3. pip install .

Usage

Use the handy CLI provided by GH Issue Export.

Exporting issues from a Github repository

gh-issue-exporter export <REPO_URL>

ex.

gh-issue-exporter export https://github.com/mal-lang/mal-toolbox/

This creates a JSON file with issues called 'mal-toolbox.json' in the same directory as it was run.

To select outfile name, use the o-flag: -o <outfile>

To export pull requests as well:

gh-issue-exporter export https://github.com/mal-lang/mal-toolbox/ --pull_requests [-p]

Importing issues from an issue file to a repository

Preparation

  • For gh-issue-exporter to be able to create issues, you need to use a Github Token.
    • Visit: https://github.com/settings/tokens
    • Click 'Generate New Token'
    • Authenticate if needed
    • Give the token access to the repository you want to import TO
    • Give read and write access to 'Issues'

To import issues from an existing issues file, run:

gh-issue-exporter import <REPO_URL> <ISSUE_FILE> <TOKEN>

ex.

gh-issue-exporter import https://github.com/mrkickling/github-issue-exporter mal-toolbox.json github_[redacted]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gh_issue_exporter-0.0.2.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

gh_issue_exporter-0.0.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file gh_issue_exporter-0.0.2.tar.gz.

File metadata

  • Download URL: gh_issue_exporter-0.0.2.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for gh_issue_exporter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 36569b0f730df61adf317029114282742726676a0d62c1f27e0da39aecf24641
MD5 c23ab6b2d8be19263e822c3b379095ac
BLAKE2b-256 f073fec9d48e24ef2dc5b1611c8cf5de74ce0c7269cbd3549d4a633e04b01e56

See more details on using hashes here.

File details

Details for the file gh_issue_exporter-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for gh_issue_exporter-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8c9a11b023743aa65b6649a21d3ba16f6f50097b63b2402a563471519be357f1
MD5 5bce6c32311ce683e120608a30de850f
BLAKE2b-256 0a4d96863f38dad2718f2755cc0a92060c39e2ae7b7784f8e94c7edcd8044f7c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page