Skip to content

ci: changelog breaking-change workflow, version-bump docs, and keywords#51

Merged
takaebato merged 3 commits into
masterfrom
docs/updates
Jun 30, 2026
Merged

ci: changelog breaking-change workflow, version-bump docs, and keywords#51
takaebato merged 3 commits into
masterfrom
docs/updates

Conversation

@takaebato

@takaebato takaebato commented Jun 30, 2026

Copy link
Copy Markdown
Owner

Repository / release tooling and docs — no library or CLI behaviour change.

Changelog (breaking-change workflow)

  • Render each breaking change as a #### heading plus an optional free-form block, sliced from the PR description between `**▼ changelog ▼**` / `**▲ changelog ▲**` markers (read from commit.raw_message, so a **label:** line isn't parsed away as a commit footer). The block may span paragraphs and code fences and carry **sql-insight:** / **sql-insight-cli:** labels for a cross-cutting PR — the same range lands in both crates' changelogs, since the per-crate changelog template can't route content per crate.
  • Add .github/pull_request_template.md (the marker block is commented out by default; uncomment it for a breaking change) and document the convention in CLAUDE.md.

Versioning

  • Document in sql-insight-cli/Cargo.toml when to bump the CLI version by hand: an output-format change is a minor (pre-1.0 breaking), a value-only change is a patch. This is manual because neither release-plz nor cargo-semver-checks detects output/behavioural changes (they see the API surface only), and a dependency-only bump cascades just a patch.

Metadata

  • Add a normalization keyword to both crates so the normalizer / query-fingerprinting feature surfaces in crate discovery (the keyword cap is 5, so the weakest existing keyword is dropped from each).

🤖 Generated with Claude Code

takaebato and others added 2 commits June 30, 2026 20:48
The CLI is versioned independently from sql-insight, and neither release-plz nor
cargo-semver-checks can detect output/behavioural changes (they see the API
surface only). Document the manual rule in sql-insight-cli/Cargo.toml: bump the
CLI minor when its output *format* changes (own code or adopting a breaking
sql-insight the caret requirement won't accept); a value-only change is a patch,
and compatible sql-insight bumps flow via the caret without a CLI release.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Surface the normalizer / query-fingerprinting feature in crate discovery.
keywords cap at 5, so drop the weakest from each: "query" (overlaps "sql") on
sql-insight, "analysis" (generic) on sql-insight-cli.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ PR title follows the Conventional Commits spec.

@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.87%. Comparing base (a1d319d) to head (24f7e1f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #51   +/-   ##
=======================================
  Coverage   94.87%   94.87%           
=======================================
  Files          27       27           
  Lines        5486     5486           
  Branches     5486     5486           
=======================================
  Hits         5205     5205           
  Misses        203      203           
  Partials       78       78           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

A breaking change now renders as a `####` heading plus an optional free-form
block — the text the author wraps between `**▼ changelog ▼**` / `**▲ changelog ▲**`
markers in the PR description, sliced from `commit.raw_message` (not `commit.body`,
whose footer parsing would eat a `**label:**` line). The block may span paragraphs
and code fences and carry `**sql-insight:**` / `**sql-insight-cli:**` labels for a
PR that breaks both crates; the same range lands in both changelogs, since the
per-crate changelog template cannot route content per crate.

Add .github/pull_request_template.md (the block is commented out by default;
uncomment it for a breaking change) and document the convention in CLAUDE.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@takaebato takaebato changed the title docs: note the CLI version-bump rule and add a normalization keyword ci: changelog breaking-change workflow, version-bump docs, and keywords Jun 30, 2026
@takaebato takaebato merged commit 4c12cc9 into master Jun 30, 2026
15 checks passed
@takaebato takaebato deleted the docs/updates branch June 30, 2026 14:25
@github-actions github-actions Bot mentioned this pull request Jun 30, 2026
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