Commit 4314a9b
authored
Add sync-label check: PRs need the maintainer-applied 'sync' label (#1473)
## What
A required-check candidate that fails unless the PR carries the `sync`
label. The label needs triage+ permission, so external contributors
can't self-apply it — and maintainers must perform one deliberate act
before a PR becomes mergeable, which is exactly the accidental-merge
failure mode this guards against. Replaces the old `[sync]`-in-title
convention (titles are author-controlled, i.e. spoofable).
The error message routes non-sync PRs to CONTRIBUTING.md's mirror flow.
Temporary: goes away once release automation owns merging.
## Try it
This PR itself is the test: the `sync-label` check should be failing
right now. Applying the `sync` label should turn it green (the `labeled`
event re-runs it); removing the label flips it back.
## Follow-ups (not this PR)
- Add `sync-label` to the required status checks in the repo ruleset
(eng-dev-ecosystem) so it actually blocks.
- Sync the workflow file into the Universe subtree so the next release
sync doesn't delete it.
This pull request and its description were written by Isaac.
---------
Signed-off-by: Hector Castejon Diaz <hector.castejon@databricks.com>1 parent 8de8d38 commit 4314a9b
1 file changed
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments