A TypeScript Node.js application that clones issues from one GitHub repository to another.
- Clones all open issues from a source repository to a target repository
- Preserves issue titles, bodies, and labels
- Clones comments and attributes them to the original author
- Optionally closes the source issue after cloning
- Securely handles GitHub API tokens using environment variables
-
GitHub Token Setup:
- Generate a Personal Access Token from GitHub Settings > Developer settings > Personal access tokens
- Give it
repopermissions for private repositories
-
Create a
.envfile in the root directory:FromRepo: Source repository in formatowner/repo-nameToRepo: Target repository in formatowner/repo-nameDeleteAfterClone: Set totrueto close issues in source repo after cloning
GitHubToken=ghp_yourpersonalaccesstoken FromRepo=owner/source-repo ToRepo=owner/target-repo DeleteAfterClone=false
-
Running the GitHub Issue Cloner
npm install npm run dev
This will execute the issue cloning process using the configuration from .env.