Skip to content

ci: skip the stamp only on the bot's own subject line, not on any mention - #36

Merged
mmcky merged 2 commits into
mainfrom
ci-skip-stamp-guard
Sep 14, 2026
Merged

mmcky merged 2 commits into
mainfrom
ci-skip-stamp-guard

Conversation

@mmcky

@mmcky mmcky commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

When #35 merged, the stamp job was skipped: the squash commit carried the PR body, which mentioned the bot's marker in prose (the sentence about a manual run starting from the bot's own commit), and the guard uses contains over the whole message. So the stamp that PR shipped did not run on its own merge and had to be dispatched by hand.

This changes the guard to startsWith on the bot's exact subject line. The stamp script's own equivalent check already reads the subject only. Any PR whose description discusses the marker no longer skips its own stamp.

Assisted-by: Claude Code (Claude Fable 5.1)

🤖 Generated with Claude Code

…tion

#35's squash commit carried its PR body, which mentioned "[skip-stamp]"
in prose, so the guard skipped the very stamp run that PR shipped; the
backfill had to be dispatched by hand. Match the bot's subject line
with startsWith instead of contains on the whole message.

Assisted-by: Claude Code (Claude Fable 5.1)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 14, 2026 01:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is narrowly scoped to the workflow guard logic and aligns the workflow behavior with the intended “skip only on the bot’s subject line” semantics.

Pull request overview

Updates the stamp-version GitHub Actions workflow guard so the post-merge stamping job is skipped only for the bot’s own stamp commit subject line, avoiding accidental skips when a squash-merge commit body merely mentions [skip-stamp].

Changes:

  • Replace contains(...) on the full commit message with startsWith(...) on the bot’s exact stamp commit subject line.
  • Add inline workflow comments documenting the squash-merge body behavior that caused #35’s stamp run to be skipped.
File summaries
File Description
.github/workflows/stamp-version.yml Narrows the “skip stamp” guard to match only the bot’s stamp commit subject line, preventing PR-body mentions from skipping the job.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/stamp-version.yml Outdated
A workflow_dispatch payload has no head_commit, so the guard was already
inert on manual runs; say so in the expression rather than relying on
the missing field.

Assisted-by: Claude Code (Claude Fable 5.1)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@mmcky
mmcky merged commit cfa1cfa into main Sep 14, 2026
@mmcky
mmcky deleted the ci-skip-stamp-guard branch September 14, 2026 01:28
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.

2 participants