Skip to content

Document the commit-subject convention for version.gradle.kts - #41

Merged
alexander-yevsyukov merged 2 commits into
masterfrom
document-version-commit-subject
Aug 7, 2026
Merged

Document the commit-subject convention for version.gradle.kts#41
alexander-yevsyukov merged 2 commits into
masterfrom
document-version-commit-subject

Conversation

@alexander-yevsyukov

Copy link
Copy Markdown
Contributor

What

Documents the team convention that every commit touching the root version.gradle.kts uses the subject Bump version -> `<version>` — even when the edit is syntax-only (e.g., migrating by extra(...) to extra.set(...)) and the version number does not change.

  • guidelines/version-policy.md — new section Commit messages for version.gradle.kts stating the rule, the rationale, and explicit guidance that reviewers (human and agent) must not flag repeated bump subjects on one branch, or a subject "claiming" an already-happened bump, as findings for this file.
  • skills/bump-version/SKILL.md — reconciles the skill with the convention:
    • One bump per branch now constrains commits that advance the version, noting the subject itself is legitimately reused by syntax-only edits.
    • Step 4 states the subject applies to every commit touching the file, with the rationale.
    • Step 7's validation no longer reports >1 bump subjects as over-bumped outright; it now checks how many of the counted commits actually advance the version value, expecting exactly one.

Why

GitHub's repository tree view shows, next to each file, the subject of the last commit that touched it. Keeping the bump-style subject "afloat" beside version.gradle.kts lets anyone read the current version of master straight from the file listing, without opening the file. Product-owner decision (2026-08-05), after a review flagged a syntax-only migration commit as a "duplicate bump".

Reviewer notes

  • spine-code-review/SKILL.md needs no change: it enumerates no commit-message checks (its version gate compares version values, not subjects). The only subject-count check in the skill set lived in bump-version step 7 and is fixed here.
  • Consumer repos pick this up when ./config/pull next floats .agents/shared.
  • Pre-PR ran with review-docs: APPROVE WITH CHANGES — no Must-fix; four Should-fix prose points (colon before the fence, a widow, a runt, one restrictive "which") noted in the session for follow-up.

🤖 Generated with Claude Code

Every commit touching the root `version.gradle.kts` uses the subject
"Bump version -> `<version>`" — even a syntax-only edit, such as the
`by extra(...)` -> `extra.set(...)` migration, which repeats the
unchanged current version. GitHub's tree view shows the last-touching
commit's subject next to each file, so the convention keeps the current
version of `master` readable straight from the file listing.

`guidelines/version-policy.md` gains a section stating the rule, the
rationale, and what reviewers must not flag for this file.
`skills/bump-version/SKILL.md` is reconciled with the convention:
"one bump per branch" and the step-7 validation now count commits that
advance the version value, not commits merely reusing the subject.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 5, 2026 23:30

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.

Pull request overview

Documents a team convention for commit subjects when editing the root version.gradle.kts, so GitHub’s tree view reliably shows the current version next to the file. Updates the bump-version skill documentation to align its “one bump per branch” guidance and validation steps with this convention.

Changes:

  • Add a new “Commit messages for version.gradle.kts” section to the version policy, including rationale and reviewer guidance.
  • Clarify in bump-version that “one bump per branch” refers to version advancement, not uniqueness of the Bump version -> subject.
  • Adjust the validation step to treat repeated bump-subject commits as potentially valid and to focus on counting version-advancing commits.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
guidelines/version-policy.md Defines the commit-subject convention for version.gradle.kts, plus rationale and reviewer expectations.
skills/bump-version/SKILL.md Aligns the skill’s commit guidance and validation narrative with the new policy.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread guidelines/version-policy.md Outdated
Comment thread guidelines/version-policy.md Outdated
Comment thread skills/bump-version/SKILL.md

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: db8873ee62

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread skills/bump-version/SKILL.md
@alexander-yevsyukov alexander-yevsyukov self-assigned this Aug 6, 2026
@alexander-yevsyukov alexander-yevsyukov moved this to 🏗 In progress in v2.0 Aug 6, 2026
Apply the `review-docs` findings from the pre-PR pass: add the colon
before the subject example, absorb a widow and a runt, use restrictive
"that", align the subject placeholder on `<version>` in both files,
cite the policy section as a single code span, unify the tree-view
phrasing, and use underscore italics per the file's own style.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings August 6, 2026 23:38

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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Suppressed comments (2)

skills/bump-version/SKILL.md:301

  • With the new convention, count is the number of commits that use the subject, so 1 is not inherently the expected/only correct value (a syntax-only version.gradle.kts edit can make it >1 even with exactly one advancing commit). Update this bullet so it doesn’t imply count == 1 is the expected baseline.
   - **1** — expected. The branch carries exactly one bump.

skills/bump-version/SKILL.md:295

  • The count calculation scans all branch commit subjects, so it can be inflated by unrelated commits that happen to reuse the same subject. Since this step is about version.gradle.kts, scope git log to commits that touched that file to avoid false positives.
   # Count commits using the bump subject. `|| true` keeps the zero-match case
   # (grep exits 1) from aborting under `set -e`.
   count="$(git log --format=%s "origin/$BASE..HEAD" | grep -c '^Bump version ->' || true)"

@alexander-yevsyukov alexander-yevsyukov moved this from 🏗 In progress to In Review in v2.0 Aug 6, 2026
@alexander-yevsyukov
alexander-yevsyukov merged commit cd7c275 into master Aug 7, 2026
1 check passed
@alexander-yevsyukov
alexander-yevsyukov deleted the document-version-commit-subject branch August 7, 2026 10:02
@github-project-automation github-project-automation Bot moved this from In Review to ✅ Done in v2.0 Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants