Label pull requests that conflict with main #4203

Closed
Ondra97 wants to merge 11 commits from upstream-pr/4203 into main
Ondra97 commented 2026-11-30 17:22:23 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Ondra97 on 2026-11-30T17:22:23Z.


Refs #4152 (item 4). Extracted from #2904.

What it changes

  • Add needs-rebase when GitHub confirms that an open PR conflicts with main. Remove the label when the conflict clears or the PR is retargeted.
  • Reconcile on PR events and run an hourly sweep to catch mergeability changes after updates to main.
  • Reserve needs-rebase in the title-label workflow so a title tag cannot assign it.

How it was tested

  • Base revision 84bd61e2. Before this change, GitHub PR labels were not reconciled against mergeability.
  • actionlint 1.7.12 passed for both workflows. The staged asset-policy check passed for both files with stable Cargo. git diff --check passed.
  • Ran 11 local Node.js scenarios against the embedded workflow scripts with mocked GitHub calls. They cover adding and removing the label, retargeting, delayed mergeability, concurrent removal, paginated sweeps, the 200-update cap, and reserved title tags.
  • Live reconciliation can be exercised when the workflow is on upstream main.

Checked for overlap

  • Searched open PRs for needs-rebase. The overlapping workflows are in #2904 and are extracted here as requested in #4152.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5570226804 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4203). Originally posted by [Ondra97](https://github.com/Ondra97) on 2026-11-30T17:22:23Z. --- Refs #4152 (item 4). Extracted from #2904. ## What it changes - Add `needs-rebase` when GitHub confirms that an open PR conflicts with `main`. Remove the label when the conflict clears or the PR is retargeted. - Reconcile on PR events and run an hourly sweep to catch mergeability changes after updates to `main`. - Reserve `needs-rebase` in the title-label workflow so a title tag cannot assign it. ## How it was tested - Base revision `84bd61e2`. Before this change, GitHub PR labels were not reconciled against mergeability. - `actionlint` 1.7.12 passed for both workflows. The staged asset-policy check passed for both files with stable Cargo. `git diff --check` passed. - Ran 11 local Node.js scenarios against the embedded workflow scripts with mocked GitHub calls. They cover adding and removing the label, retargeting, delayed mergeability, concurrent removal, paginated sweeps, the 200-update cap, and reserved title tags. - Live reconciliation can be exercised when the workflow is on upstream `main`. ## Checked for overlap - [x] Searched open PRs for `needs-rebase`. The overlapping workflows are in #2904 and are extracted here as requested in #4152.
trustno1-coder commented 2026-12-01 18:45:43 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:45:43Z.


Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7321492457 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4203#issuecomment-7321492457). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-12-01T18:45:43Z. --- Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!4203
No description provided.