Skip to content

feat(template): treat perf commits as patch-bump-worthy - #62

Merged
hugoh merged 1 commit into
mainfrom
perf-bump-cog
Aug 3, 2026
Merged

feat(template): treat perf commits as patch-bump-worthy#62
hugoh merged 1 commit into
mainfrom
perf-bump-cog

Conversation

@hugoh

@hugoh hugoh commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • cog bump --auto only bumps on fix/feat/breaking-change by default, so a PR containing only perf: commits currently lands on main without triggering an automatic release.
  • Sets commit_types.perf.bump_patch = true in template/cog.toml so perf-only changes trigger a patch release like fix does.

Verified against a scratch repo: without this config, cog bump --auto on a repo with only a perf: commit since the last tag reports "No conventional commits ... required a bump"; with it, it correctly proposes a patch bump.

Test plan

  • cog bump --auto --dry-run in a scratch repo confirms patch bump is now proposed for a perf:-only commit range
  • hk check --all passes (pre-existing renovate_config_validator native-module error is unrelated to this change)

🤖 Generated with Claude Code

cocogitto's default ruleset only bumps on fix/feat/breaking-change,
so a PR containing only perf: commits lands on main without
triggering an automatic release. Verified with a scratch cog.toml:
cog bump --auto goes from "no bump" to a patch bump once
commit_types.perf.bump_patch is set.
@hugoh
hugoh enabled auto-merge August 3, 2026 23:28
@hugoh
hugoh merged commit efb5297 into main Aug 3, 2026
2 checks passed
@hugoh
hugoh deleted the perf-bump-cog branch August 3, 2026 23: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