Skip to content

chore: drop the develop branch from CI triggers - #160

Merged
cayossarian merged 1 commit into
mainfrom
chore/drop-develop-refs
Aug 23, 2026
Merged

chore: drop the develop branch from CI triggers#160
cayossarian merged 1 commit into
mainfrom
chore/drop-develop-refs

Conversation

@cayossarian

Copy link
Copy Markdown
Member

Why

develop is deleted. It carried zero commits that main did not already have, everything ships from main through tags, and no open PR targeted it.

It was also the one branch no rule covered. protect_main scopes itself with:

include: ["~DEFAULT_BRANCH"]

That is a pointer to the default branch, so it could never match develop no matter how the repository evolved — and rules/branches/develop (which reports org-inherited rules too) came back empty. Every collaborator with write could push directly, force-push to rewrite history, or delete the branch, and none of it would produce a notification.

What changes

Only the trigger block. push and pull_request named a ref that can no longer exist, and the dispatch example told a reader to run against it.

The example now points at main, and mentions that a tag works too — which is the case actually worth reaching for, since it answers "what did that release really build?"

Verification

20/20 hooks passed
936 passed, 11 skipped

The develop branch is deleted. It carried no commits that main did not
already have, everything ships from main through tags, and it was the one
branch no ruleset covered -- push, force-push and delete were all
unrestricted on it for every collaborator with write, silently, because
`protect_main` targets `~DEFAULT_BRANCH` and can never match anything
else.

That leaves the push and pull_request triggers naming a ref that cannot
exist, and a dispatch example telling a reader to run against it. Point
the example at main and note that a tag works too, which is the case
worth reaching for anyway -- checking what a release actually built.
@cayossarian
cayossarian merged commit 5b244ed into main Aug 23, 2026
6 checks passed
@cayossarian
cayossarian deleted the chore/drop-develop-refs branch August 23, 2026 16:36
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