mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 22:58:37 +00:00
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.
1.3 KiB
1.3 KiB
Claimed in the coordination issue as:
Depends on:
Fixes:
What and why
Tested
GPUs tested:
AI-assisted:
Checklist
- Based on current
mainand merges cleanly (a conflicting pull request is labeledneeds rebase). - One topic; follow-up work goes in a new pull request.
- No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
- A new translator rule is in the contract table of
docs/design.md, with how it was confirmed.