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 /tests/test_run_gpu_tests_python_assembler.py | |
| 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 'tests/test_run_gpu_tests_python_assembler.py')
0 files changed, 0 insertions, 0 deletions