Skip to content

fix(ci): check live release prerequisites before merge - #5

Merged
Llewellynvdm merged 2 commits into
mainfrom
fix/live-release-prerequisites
Sep 7, 2026
Merged

fix(ci): check live release prerequisites before merge#5
Llewellynvdm merged 2 commits into
mainfrom
fix/live-release-prerequisites

Conversation

@Llewellynvdm

Copy link
Copy Markdown
Contributor

The merged repair passed every package test and release fixture, but publication still failed because the live default branch is unprotected. The previous gate did not test that prerequisite before merge. Current main has exactly the previously tested PR tree, so this is not a rebase regression.

This change requires a read-only Release prerequisites job in the same reusable CI used by PRs and post-rebase releases. It verifies the dynamically selected default branch is protected and its effective rules require Package gate from GitHub Actions. The aggregate rejects any failed or skipped prerequisite. It adds 23 offline fixtures and removes the obsolete checked-in ruleset that required only PHP 8.5 on a hardcoded main branch.

This PR is deliberately a draft. Code does not activate repository settings, and the connected GitHub app cannot administer them. From any updated package checkout, an administrator must run:

bash tools/configure-release-repositories.sh --apply
bash tools/configure-release-repositories.sh --check

These commands cover all thirteen package repositories. Apply settings first, then rerun PR checks and rebase only after the complete gate passes. Contents-only CI cannot inspect the immutable-release setting; the administrator audit remains required. Actual publication must then succeed and be verified as immutable.

Validation: all 23 new offline fixtures pass; existing package and release tests passed on the merged commit. This PR's live CI is expected to report the real unprotected-branch blocker until setup is applied. Runtime code, release versions, tags and published releases are unchanged.

@Llewellynvdm
Llewellynvdm marked this pull request as ready for review September 7, 2026 16:52
@Llewellynvdm
Llewellynvdm merged commit 73e1e3c into main Sep 7, 2026
5 checks passed
@Llewellynvdm
Llewellynvdm deleted the fix/live-release-prerequisites branch September 7, 2026 16:53
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