Skip to content

docs(contributing): the scope that counts is the one in the PR title - #178

Merged
kkukielka merged 1 commit into
mainfrom
docs/scope-lives-in-the-pr-title
Aug 28, 2026
Merged

docs(contributing): the scope that counts is the one in the PR title#178
kkukielka merged 1 commit into
mainfrom
docs/scope-lives-in-the-pr-title

Conversation

@kkukielka

Copy link
Copy Markdown
Contributor

The per-chart colors PR was split into one commit per package so each would get
its own bump. The squash merge threw the split away: the editor and the plugin
landed as an indirect patch under a chartkit-core subject, and the release
needed overrides to correct them - the hand-correction this repo has been
trying to stop needing.

main takes squash merges only (allow_merge_commit and allow_rebase_merge
are both false), so one commit lands per PR with the title as its subject. The
split was never going to survive.

nx splits a scope on commas, so a multi-package feature names them all in the PR
title:

feat(chartkit-core,chartkit-editor,strapi-plugin-chartkit): per-chart colors

Verified with a dry run on a throwaway branch: both named packages take a minor
from one commit.

The section this amends was written this morning and is what led me straight
into the trap - it says to scope per package without saying which scope
survives.

Today's per-chart colors PR was split into one commit per package precisely so
each would get its own bump, and the squash merge threw the split away - the
editor and the plugin landed as an indirect patch under a `chartkit-core`
subject and had to be corrected with `overrides` at release time. `main` takes
squash merges only, so that was never going to work rather than being bad luck.

nx splits a scope on commas, verified against its matcher, so a multi-package
feature names them all in the PR title. That is the whole fix.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Aug 26, 2026
@kkukielka
kkukielka merged commit d43baee into main Aug 28, 2026
3 checks passed
@kkukielka
kkukielka deleted the docs/scope-lives-in-the-pr-title branch August 28, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant