Verify branch protection on main requires the Check workflow before merge #180
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
mainis protected and.gitea/workflows/check.ymlrunsscript/cibuild(docker build, which runsmake check) on every pushand pull request targeting
main. What has not been verified iswhether the branch protection rule actually lists the
Checkjob as arequired status check — i.e. whether a PR with a red build is blocked
from merging, or merely decorated.
TODO.mdcalls this out under Future Steps: "Confirm.gitea/workflows/check.ymlgates merges on make check so main cannotregress."
Steps:
mainin the Gitea reposettings (requires repo admin)
checkjob of the
Checkworkflow to the required checks listthe merge button is blocked until the workflow passes
Definition of done:
mainrequires theCheckworkflow to passbefore merge
blocked/unblocked state)