Skip to content

fix: changelog ignored branch's commits before merge - #4

Merged
iberflow merged 4 commits into
mainfrom
fix/changelog-branch-commits
Jul 16, 2026
Merged

fix: changelog ignored branch's commits before merge#4
iberflow merged 4 commits into
mainfrom
fix/changelog-branch-commits

Conversation

@iberflow

Copy link
Copy Markdown
Member

If you ran care changelog on a feature branch before merging, it only listed the commits that were already on main. A branch with 15 commits past the last tag would show the 1 that had landed.

The reason is that care asked the git host for the commit list instead of reading your local checkout. The host can't see an unmerged branch, and when you pass HEAD it assumes you mean its default branch, so you got main's history back no matter where you were standing. That same mistake stripped author handles and pointed the compare link and contributor list at main.

Now care gets the commit list from local git and only asks the host to fill in author handles. When it does talk to the host, it sends the real branch name instead of HEAD.

Nothing changes about how you call it. One thing to know: on a branch you haven't pushed, the compare link will 404 instead of quietly pointing at main.

iberflow added 3 commits July 16, 2026 14:54
Signed-off-by: Ignas Bernotas <ignas@toawe.me>
Signed-off-by: Ignas Bernotas <ignas@toawe.me>
Signed-off-by: Ignas Bernotas <ignas@toawe.me>
@github-actions github-actions Bot added the needs-triage Awaiting maintainer triage label Jul 16, 2026
Signed-off-by: Ignas Bernotas <ignas@toawe.me>
@iberflow iberflow changed the title fix: changelog ignored your branch's commits before merge fix: changelog ignored branch's commits before merge Jul 16, 2026
@iberflow
iberflow merged commit 531f78c into main Jul 16, 2026
3 checks passed
@iberflow
iberflow deleted the fix/changelog-branch-commits branch July 16, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-triage Awaiting maintainer triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant