Skip to content

ci: fail pull requests that target master - #11

Merged
alexsavio merged 1 commit into
devfrom
ci/guard-master
Aug 10, 2026
Merged

alexsavio merged 1 commit into
devfrom
ci/guard-master

Conversation

@alexsavio

Copy link
Copy Markdown
Collaborator

master mirrors yandex-cloud/geesefs and must never carry a dectris change. A PR against it is always a mistake: the content ends up absent from dev, and a release cut afterwards silently ships without it. That is what happened with #7, and nothing failed to signal it.

Adds a workflow that runs only on PRs targeting master and fails immediately with a message pointing at dev.

This is a stand-in, not real enforcement. Branch protection on master is the proper fix but needs org admin, which I do not have. Without a required-status-check rule this cannot block a merge, only make the mistake visible as a red check. Worth replacing with branch protection when an admin is available.

Upstream syncs push to master directly rather than through a PR, so this does not interfere with them.

master mirrors yandex-cloud/geesefs and must never carry a dectris change.
A PR against it is always a mistake: the content ends up absent from dev,
and a release cut afterwards silently ships without it, which is what
happened with #7 and was only caught by chance.

Branch protection is the real enforcement but needs org admin, which is
not available here. This at least makes the mistake loud at PR time.

Upstream syncs push to master directly rather than through a PR, so this
does not interfere with them.
@alexsavio
alexsavio merged commit e13dd85 into dev Aug 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant