Skip to content

Instantly share code, notes, and snippets.

@zolotokrylin
Created April 7, 2026 04:12
Show Gist options
  • Select an option

  • Save zolotokrylin/6b81eee7eb7ad22154cdde1186316f45 to your computer and use it in GitHub Desktop.

Select an option

Save zolotokrylin/6b81eee7eb7ad22154cdde1186316f45 to your computer and use it in GitHub Desktop.
Transfer all issues from SOURCE into DEST repo
SOURCE_REPO="holdex/wizard-browser-extension"
DEST_REPO="holdex/wizard"
# Pipe the list directly into a while loop
gh issue list --repo "$SOURCE_REPO" --limit 1000 --state all --json number --jq '.[].number' | while read -r issue_num; do
if [ -n "$issue_num" ]; then
echo "Transferring issue #$issue_num..."
gh issue transfer "$issue_num" "$DEST_REPO" --repo "$SOURCE_REPO"
sleep 1
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment