Skip to content

CI is the pull-request gate, and the nightly builds what merged - #18

Merged
Hawkynt merged 1 commit into
mainfrom
ci/pr-gated
Aug 29, 2026
Merged

Hawkynt merged 1 commit into
mainfrom
ci/pr-gated

Conversation

@Hawkynt

@Hawkynt Hawkynt commented Aug 29, 2026

Copy link
Copy Markdown
Owner

CI no longer runs on a push to main. A pull request has to be green to merge, so re-running the same matrix on the merge commit proves nothing a green pull request has not already proved — and it was costing a machine every time.

  • ci.yml triggers on pull_request only. workflow_call stays, because release.yml runs it as its own first gate; workflow_dispatch is there for when you want it by hand.
  • nightly.yml moves from workflow_run: CI completed to push: main, and builds what just landed rather than testing it again. The old chain would never have fired again anyway, since CI no longer runs on main.

The trade-off, stated plainly: a squash merge produces a commit no run ever saw — the pull request's tree on a base that may have moved. A semantic conflict between two separately green pull requests would first surface as a failed nightly build rather than a failed CI run.

Canonical in RepositoryTemplate; every C# repo gets the same shape.

CI no longer runs on a push to main. A pull request has to be green to merge, so re-running the same matrix on the merge commit proves nothing and costs a machine. nightly.yml moves from 'workflow_run: CI completed' to 'push: main' and builds what just landed rather than testing it again — the old chain would never have fired again anyway.

Named rather than hidden: a squash merge produces a commit no run ever saw, so a semantic conflict between two separately green pull requests first surfaces as a failed nightly build.
@Hawkynt
Hawkynt merged commit 567bccb into main Aug 29, 2026
8 checks passed
@Hawkynt
Hawkynt deleted the ci/pr-gated branch August 29, 2026 13:34
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