Skip to content

ci: fail a pull request that closes an issue a spec still cites as not met - #291

Open
Moep90 wants to merge 2 commits into
kapicorp:mainfrom
Moep90:ci/spec-status
Open

Moep90 wants to merge 2 commits into
kapicorp:mainfrom
Moep90:ci/spec-status

Conversation

@Moep90

@Moep90 Moep90 commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Replaces #270, which closed when main was force-pushed. Same commits, replayed onto the new main.

Today 22 requirements stayed Since: not met yet (#n) after the pull requests that implemented them merged and closed their issues. #290 fixes the data. This PR stops it from happening again.

The new Spec status job runs on every pull request. It asks GitHub which issues the pull request closes (closingIssuesReferences, the same list a Closes #n line produces). It then fails when docs/specs still cites one of them as not met yet (#n), and names the file and line. It only checks issues that this pull request closes. An issue closed by hand does not block unrelated pull requests.

The spec comes first, as its own commit: CLI-63, the new job in CLI-33 and in the job-paths table, and one sentence in docs/specs/README.md.

Verified

I extracted the job's script from the YAML and ran it against real data:

Specs from Pull request Expected Result
main #248, the fix for issue 247, while CLI-61 still says "not met yet (#247)" fail exit 1, names cli-and-release.md:474
#290's branch #248 pass exit 0
main #265, closes nothing pass exit 0

zizmor 1.30.1 reports no findings.

This touches ci.yml and cli-and-release.md. So does #290, which edits different lines, and I'll check the two together before asking for review.

…requirement

22 requirements stayed "not met yet" after the pull requests that implemented them merged and closed their issues. CI checks it from now on.

Signed-off-by: moep90 <3042152+Moep90@users.noreply.github.com>
…t met

The Spec status job reads the issues the pull request closes (closingIssuesReferences) and fails when docs/specs still says "Since: not met yet (#n)" for one of them (CLI-63).

Signed-off-by: moep90 <3042152+Moep90@users.noreply.github.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation area: packaging Crates, release binaries, CI labels Oct 29, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 16, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 16, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 16, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 16, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 17, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 17, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 17, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 18, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 18, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 18, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 19, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 19, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 19, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 20, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 20, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 20, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 20, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 21, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 21, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 21, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 22, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 22, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 22, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 22, 2026
kadet-hub-kapitan-next Bot pushed a commit to kadet-hub/krab that referenced this pull request Nov 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: packaging Crates, release binaries, CI documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant