The aim of this project is to enable issue imports to an empty GitHub repository retaining issue numbers.
This project uses version 3 of the GitHub API and is licensed under GPL v3 or later.
Be aware that no proper error checking currently in place.
Issues from the data directory are imported. Each issue has 2 files encoded in UTF-8:
n.txt
containing the issue bodyn.labels
containing the labels line-by-line. If closed appears, then issue will be closed.
- install prerequisities
- copy
config.sample.json
asconfig.json
and fill in the fields there - run
import-issues.py
- enjoy
-
clone this repository
-
place issues under
data/
as described above -
install python and the folowing modules. Package name for Debian/Ubuntu given in parentheses):
requests
(python-requests
)
-
acquire a GitHub OAuth token that has write access to the desired repository (choose repo as the scope)