Skip to content

Server-side release gate: required check on pull requests (shared gate, pr mode) - #45

Merged
jurczykpawel merged 1 commit into
mainfrom
feat/open-items-gate
Nov 28, 2026
Merged

jurczykpawel merged 1 commit into
mainfrom
feat/open-items-gate

Conversation

@jurczykpawel

Copy link
Copy Markdown
Owner

StackPilot releases by merging to main, so the shared "nothing left open" gate (PostStack pilot, GITHUB_TOKEN only, no PAT) runs as a check on every pull request to main (.github/workflows/open-items.yml, job Nothing left open).

  • New pr mode in .github/scripts/open-items-gate.sh: skips the pull request itself and the issues its description closes (Closes/Fixes/Resolves #N); any other open pull request, issue, code scanning or Dependabot alert blocks the merge. The rest of the script is the shared version 1:1.
  • Secret scanning alerts and draft advisories: GITHUB_TOKEN cannot read them, so they are checked locally with open-items-gate.sh start (admin gh login) at cycle start.
  • After merge the check becomes required on main (branch protection).

Test plan

  • tests/unit/test-open-items-gate.sh: shared cases + pr mode (red first)
  • open-items-gate.sh start against this repository with an admin login: nothing open
  • ./tests/run.sh: 467 passed
  • the new check passes on this pull request

🤖 Generated with Claude Code

Adopts the shared "nothing left open" gate (PostStack pilot, no PAT) and adds a
`pr` mode for repositories that release by merging to main: the check skips
the pull request itself and the issues its description closes, and blocks on
any other open pull request, issue, code scanning or Dependabot alert.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jurczykpawel
jurczykpawel merged commit 5c54597 into main Nov 28, 2026
2 checks passed
@jurczykpawel
jurczykpawel deleted the feat/open-items-gate branch November 28, 2026 08:29
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