Auto-merge package PRs that bring their own test (#868)
#867 auto-merged only PRs changing nothing outside pkgbuilds/, so it would have left #854 open too: like voxtype-bin and the IPU7 camera before it, Superwhisper added tests/superwhisper-bin-install.sh and one test.yml line running it. Count those as package changes: a new file under tests/, and a test.yml change whose every line adds a ./tests/*.sh call. test.yml runs on PRs only. Editing an existing test still needs a maintainer, since builder-images.yml runs tests/build-isolation.sh on master with packages: write.
This commit is contained in:
1 parent
5d9783b85e
commit
93b1655ca8
3 files changed
+53
-13
No files matched your search
@@ -923,10 +923,12 @@ artifacts, so a long aarch64 build is not restarted by every sync.
|
||||
Package PRs that are trusted to build also merge themselves.
|
||||
`auto-merge-pr.yml` enables auto-merge (with `PKGS_BOT_TOKEN`, so the merge
|
||||
publishes) on any open, non-draft PR whose author is a collaborator, vouched,
|
||||
or a bot, or that carries **`build-approved`**, and that changes nothing
|
||||
outside `pkgbuilds/`. The PR lands once `result`, `self-tests` and
|
||||
or a bot, or that carries **`build-approved`**, and that changes only
|
||||
packages: anything under `pkgbuilds/`, plus the test a package PR brings with
|
||||
it (a new file under `tests/`, and `test.yml` lines that only run new
|
||||
`./tests/*.sh`). The PR lands once `result`, `self-tests` and
|
||||
`build-isolation` pass; a red build stays open. PRs that also touch
|
||||
workflows, scripts or build tooling still need a maintainer to merge, as does
|
||||
workflows, scripts, build tooling or existing tests still need a maintainer, as does
|
||||
the upstream sync (`auto/sync-upstream`), which labels itself. Removing
|
||||
`build-approved` withdraws the auto-merge it armed. For a PR opened before
|
||||
the workflow existed, run it by hand: `gh workflow run auto-merge-pr.yml -f pr=<number>`.
|
||||
|
||||
Reference in new issue
Block a user