Created
December 21, 2021 14:13
-
-
Save beerose/f14688320ff76f57d79af562a6a97650 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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