Very simple tool made in javascript to batch creation of GitHub issues and copy labels from one repo to another.
- Edit the
config.jsfile and enter a valid GitHub account. - Edit the
issues.jsonfile by adding the issues's JSONs to array. For example:
[
{
"id": 1,
"title": "Example 01",
"body": "Example 01 description goes here.",
"milestone": 1,
"ignoredAttribute": {}
},
{
"id": 2,
"title": "Example 02",
"body": "Example 02 description goes here.",
"milestone": 1,
"ignoredAttribute": {}
},
{
"id": 3,
"title": "Example 03",
"body": "Example 03 description goes here.",
"milestone": 1,
"ignoredAttribute": {}
}
]For more details see the GitHub API documentation.
To create the issues reported in the issues.json file, run the following command:
$ npm run createIssuesTo copy the labels from one repository (fromRepo) to another (toRepo), run the following command:
$ npm run copyLabelsTo move the cards from one column (fromCol) to another (toCol), run the following command:
$ npm run moveCards