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.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gh_issue_exporter-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 955fe8521ea5ebcb633d65abfab1c285af4312e40f372d97bbbf01829d2e0d0d
MD5 d5b22587e0729ccbc6ff7a7aecedcd13
BLAKE2b-256 60d2330ebdcecad53edef9e51c2cefaee9f74d1f8694b61d3716d4f020c01593

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gh_issue_exporter-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 200c75698d57f7c5a2f316c9e7746c592731c27359dbf6a83cede4fbe8a8d17a
MD5 22491fce19197dbea32e6a79d3f493f5
BLAKE2b-256 d1ab5db8327d276d712aaf824ae26cfd42c4bd42db5e484d1b8ca999fc0dcd9a

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