Skip to content

auto-release: skip releases for docs-only merges [skip release]#11

Merged
johncarmack1984 merged 1 commit into
mainfrom
ci/skip-release-for-docs
Jun 17, 2026
Merged

auto-release: skip releases for docs-only merges [skip release]#11
johncarmack1984 merged 1 commit into
mainfrom
ci/skip-release-for-docs

Conversation

@johncarmack1984

Copy link
Copy Markdown
Owner

Docs-only merges now skip the auto-release even without a [skip release] marker: if every file the merge changed is documentation (*.md, docs/, or an image asset .gif/.png/.jpg/.jpeg/.webp/.svg), there is no app change to version, so no patch release is cut.

Belt-and-suspenders follow-up to the v0.1.6 incident (a docs-only GIF merge cut a release because a PR-title [skip release] did not reach the squash subject). The squash subject is now PR_TITLE, which makes the marker reliable; this makes the common case (README / screenshot / GIF merges) safe even if the marker is forgotten.

Notes:

  • Placed right after the existing [skip release] subject check; non-doc or mixed changes release exactly as before.
  • Uses a line-count comparison (wc -l vs grep -Ec), not grep -qv, because grep -qv exit codes differ between BSD and GNU grep — tested both paths locally.
  • [skip release] in this PR title so adding the guard does not itself cut a release.

@johncarmack1984 johncarmack1984 merged commit 2f14879 into main Jun 17, 2026
7 checks passed
@johncarmack1984 johncarmack1984 deleted the ci/skip-release-for-docs branch June 18, 2026 21:37
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