Repository navigation
tools: mirror upstream issues into the fork - #39
Open
fffluffy-dev wants to merge 1 commit into
Open
fffluffy-dev wants to merge 1 commit into
fffluffy-dev wants to merge 1 commit into
Conversation
tools/dev/mirror_upstream_issues.py reads omonkeyz/xbox-emulator issues through the GitHub search API (gh api), finds the fork issues that already mirror them (the "Mirrored from `owner/repo#N`" line or an "[upstream #N]" title) and plans the open ones that are missing. It is a dry run unless --apply; --json writes the plan, --only/--skip/--search/--upstream-label narrow it, --sync-state also closes mirrors whose upstream issue is closed. Mentions, issue references and issue URLs in the copied text become code spans (outside code blocks), so a mirror notifies nobody and adds no back-links to upstream issues; --live-links keeps them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014vTZArnDeG1xtBcLprpoCq
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tools/dev/mirror_upstream_issues.pycopiesomonkeyz/xbox-emulatorissues into the fork as[upstream #N] …issues.What it does
gh api).Mirrored from `owner/repo#N`or by an[upstream #N]title.Options
--apply.--json FILEwrites the plan.--only N,--skip N,--search TERMSand--upstream-label Lnarrow the set.--labelsets the labels on created mirrors (defaultupstream).--sync-statecloses a mirror once its upstream issue is closed.--live-linkskeeps references and links live. By default, mentions,#N/owner/repo#Nreferences and issue URLs become code spans outside code blocks, so a mirror notifies nobody and adds no back-links upstream.Examples
Tests and first use
python3 tools/dev/test_mirror_upstream_issues.py: 10 tests pass. They cover neutralising, dedupe, the plan, paging and the POST/PATCH calls.#142) and [upstream #293] GTA VI 1.0.2.1 Scarlett: Wine bring-up notes #35 (#293) were created from its plan.Generated by Claude Code