CLI to transfer issues from one repository to another with meta data such as issues, labels, etc
GITHUB_TOKEN="..." SOURCE_REPO=gr2m/source-repo TARGET_REPO=gr2m/target-repo npx transfer-issues
See gr2m/helpdesk#20 for more information about this repository and its motivation.
It loads all issues and the relevant meta data from the source repository (graphql query and the target repository (graphql query) and transfers every issue one-by-one using the transferIssue
mutation (graphql mutation).
It makes sure both issues and milestones that are assigned to the issue in the source repository exist in the target repository and assignes them after the transfer