Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ddf0554

Browse files
committed
Add README
1 parent a8916c4 commit ddf0554

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
2+
### GitHub Issues Import ###
3+
4+
This Python script allows you to import issues and pull requests from one repository to another (works even if the two repositories are not related to each other).
5+
6+
Fork of one of the tools by [Max Korenkov](https://github.com/mkorenkov) separated from its original location at [`mokorenkov/tools`](https://github.com/mkorenkov/tools).
7+
8+
#### Usage ####
9+
10+
Rename `config.py.sample` to `config.py`, and edit the fields to match your login info and repository info.
11+
12+
**Warning:**
13+
14+
* This config file can contain any valid Python syntax, so be careful!
15+
* The password is stored in plaintext, so avoid storing the config file in a public repository.
16+
17+
Run the script with the following command to import all issues into the repository defined in the config:
18+
19+
```
20+
$ python3 gh-issues-import.py
21+
```
22+
23+
Or to only import some issues, run the script and include the issue numbers of all issues you wish to import (can be done for one or several issues):
24+
25+
```
26+
$ python3 gh-issues-import.py 25 26 29
27+
```
28+
29+
#### Result ####
30+
31+
Every issue imported will create a new issue in the target repository. Remember that the ID of the issue in the new repository will most likely not be the same as the ID of the original issue. Keep this in mind when writing commit messages such as _"Closes #25"_.
32+
33+
If the issue is a pull request, this will be indicated on the issue, and a link to the code will be provided. However, it will be treated as a new issue in the target repository, and **not** a pull request. Pulling in the suggested code into the repository will need to be done manually.
34+
35+
Any comments on the issue will be imported, however, the author of all imported comments will be the account specified in the config. Instead, a link and header is provided for each comment indicating who the original author was and the original date and time of the comment. Any subsequent comments added to the issue after it has been imported into the target repository will not be included.
36+
37+
Milestones and Labels attached to the issue will be imported and added to the target repo if they do not already exist there.
38+
39+
40+

0 commit comments

Comments
 (0)