diff options
| author | Mouad-Scriptz-0 <mouadscriptz@gmail.com> | 2026-11-24 02:30:12 +0000 |
|---|---|---|
| committer | Mouad-Scriptz-0 <mouadscriptz@gmail.com> | 2026-11-24 02:30:45 +0000 |
| commit | 4f7a34777532930b2fe3f9c8b5d65afe04a480e4 (patch) | |
| tree | 8bbec86fe225f3425333cdd50b31fe32ac7bb2cf /.github/pull_request_template.md | |
| parent | da60a36159a74620192a366180423386760f52fb (diff) | |
ci: label pull requests that conflict with main `needs rebase` (PR-CONFLICT-LABEL)
Every pull request is reviewed by hand, and with over a hundred open the
reviewer has no quick way to skip the ones that cannot merge as they
stand. tools/pr_conflict_label.py asks the GitHub API for each open pull
request's `mergeable` and labels the conflicting ones `needs rebase`,
removing the label once they merge cleanly again; an answer GitHub has
not computed yet is asked again a few times and otherwise left for the
next run. .github/workflows/conflict-label.yml runs it on a push to main
(all open pull requests), on a pull request being opened, reopened or
pushed to (that one), and hourly.
The job uses pull_request_target so a fork's pull request can be
labeled, and is safe with it: it checks out main, never the pull
request, and the tool reads only the API, so no pull request code runs.
Its token can read contents and write pull requests, nothing else;
tests/test_pr_conflict_label.py checks that, and the tool against a fake
API.
The pull request template also asks for `Fixes: #N` and `GPUs tested:`
lines and has checklist items for "based on current main" and "one
topic"; tests/test_docs_pr_template.py checks the new prompts, and
CONTRIBUTING.md gets a short Pull requests section. The process is
modelled on AnyPS5's (boykopovar/AnyPS5); the code is written here, not
copied.
Diffstat (limited to '.github/pull_request_template.md')
| -rw-r--r-- | .github/pull_request_template.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 7005bd738..8eca32651 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md | |||
| @@ -4,6 +4,8 @@ Claimed in the coordination issue as: <!-- the item ID from the open "Coordinati | |||
| 4 | Depends on: <!-- #N for every pull request this one builds on or conflicts with (the coordination issue's | 4 | Depends on: <!-- #N for every pull request this one builds on or conflicts with (the coordination issue's |
| 5 | Commands section, AGENTS.md); delete the line if it builds on none and conflicts with none --> | 5 | Commands section, AGENTS.md); delete the line if it builds on none and conflicts with none --> |
| 6 | 6 | ||
| 7 | Fixes: <!-- #N for each issue this closes (GitHub closes it on merge); delete the line if it closes none --> | ||
| 8 | |||
| 7 | ### What and why | 9 | ### What and why |
| 8 | 10 | ||
| 9 | <!-- What this changes and the problem it solves. --> | 11 | <!-- What this changes and the problem it solves. --> |
| @@ -13,9 +15,13 @@ Depends on: <!-- #N for every pull request this one builds on or conflicts with | |||
| 13 | <!-- What you ran and on which GPU and driver (CONTRIBUTING.md). For the shader translator: how many shaders | 15 | <!-- What you ran and on which GPU and driver (CONTRIBUTING.md). For the shader translator: how many shaders |
| 14 | translate and pass spirv-val, before and after. --> | 16 | translate and pass spirv-val, before and after. --> |
| 15 | 17 | ||
| 18 | GPUs tested: <!-- vendor, model, driver and OS of each GPU the GPU tests ran on, or n/a --> | ||
| 19 | |||
| 16 | AI-assisted: <!-- yes or no (AGENTS.md asks a coding agent to say so) --> | 20 | AI-assisted: <!-- yes or no (AGENTS.md asks a coding agent to say so) --> |
| 17 | 21 | ||
| 18 | ### Checklist | 22 | ### Checklist |
| 19 | 23 | ||
| 24 | - [ ] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). | ||
| 25 | - [ ] One topic; follow-up work goes in a new pull request. | ||
| 20 | - [ ] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. | 26 | - [ ] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. |
| 21 | - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. | 27 | - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. |