Skip to content

Instantly share code, notes, and snippets.

@beerose
Created December 21, 2021 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beerose/f14688320ff76f57d79af562a6a97650 to your computer and use it in GitHub Desktop.
Save beerose/f14688320ff76f57d79af562a6a97650 to your computer and use it in GitHub Desktop.
import {execSync} from 'child_process';
const destinationRepo = "https://github.com/??/??.git"
const issues = execSync(`gh issue list --json url --jq '[.[].url] | join(",")'`).toString().trim()
for (const issue of issues.split(',')) {
execSync(`gh issue transfer ${issue} ${destinationRepo}`).toString()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment