fix(gitops): make github structurally unable to accept a pull request #212
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "land/github-mirror-pr-guard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Root cause of the recurring "merged but not deployed" problem, closed off at the source.
The mirror pushes
refs/heads/*with--force --prune. So a PR merged on github is not merely undeployed - it is erased by the next push to forgejo master, silently. The mirror also replicates all 132 forgejo branches to github, which is what gives a straygh pr createsomething to target.Guards:
has_issues=false, verified)docs/gitops.md-> Canonical RemoteAlready cleaned up alongside this: github #51/#52 closed as stale duplicates of forgejo #33/#37, and forgejo #141 closed (its branch was zero commits ahead). Both PR queues are now empty.
The workflow cannot be tested without opening a PR on the mirror, which is the thing it exists to prevent - so it is unverified until it first fires. YAML parses;
pull_request_target+pull-requests: writeis the standard shape for closing a PR from the base-repo context.