Skip to content

feat(rules): ci-shape makes CI run on merge_group and sum its jobs up in one ci status - #52

Draft
PiquelChips wants to merge 1 commit into
feat/rule-t3-setupfrom
feat/rule-ci-shape
Draft

PiquelChips wants to merge 1 commit into
feat/rule-t3-setupfrom
feat/rule-ci-shape

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Stacked on #51; part of a stack adding the standard's rules over manifests, config files, workflows, recipes and docs. Rebased onto #13's head c4a57df.

What and why

C2: CI sums its jobs up in one ci job, and the merge queue is a must, so CI runs on merge_group. A repository has two required checks: ci for the code, and standard / pr-checks for the pull request's metadata. check-changed's drift check already requires the changes job and its paths-filter on .github/filters.yml, and every job in its table, so this rule doesn't repeat that.

  • .github/workflows/ci.yml runs on merge_group.
  • It has a ci job that needs every other job and runs if: always().
  • --fix adds merge_group: under a block on: (a Fix::line edit).
  • This repository's CI now runs on merge_group, and its header names the two required checks.

Measured

piqueld sourceorigin DirkEngine
Violations 2 0 1

Measured read-only at origin/main: piqueld a17710f52, sourceorigin e99cc0e6b, DirkEngine 07e8ba44.

  • piqueld: ci doesn't need fail-fast and report.
  • DirkEngine: no merge_group.

Inline filters, which this rule flagged before, are the drift check's.

Testing

  • New fixture test: a conforming workflow passes; one without merge_group, if: always() or two needs gives each violation, and the fix leaves the rest.
  • At this commit: Clippy with -D warnings, cargo nextest run --workspace and cargo xtask standard pass with a clean tree; just readme regenerated the rules list.
  • At the stack's tip: just check-changed origin/feat/readme-standard passes (fmt-check, audit, unused, standard, lint, doc, test, doc-test, package).

Checklist

  • The crate's README (its documentation on docs.rs) shows the change, and a repository's xtask can still follow it.
  • A change to the public API is noted for the next release, with what each repository's xtask must change. (A new rule: each repository fixes its violations (cargo xtask standard --fix where a fix exists) or adds a deviation with its reason. This repository's own CI gains the merge_group trigger.)
  • just check-changed passes.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@PiquelChips PiquelChips changed the title feat(rules): ci-shape gives CI a changes job and one status the merge queue waits on feat(rules): ci-shape makes CI run on merge_group and sum its jobs up in one ci status Nov 22, 2026
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