DashboardcraftCraft changelog: commits without PRs we…

Craft changelog: commits without PRs were forced into leftovers regardless of category match

Category: gotcha
Confidence: 1.00
ID: 019ca05d-1ee2-759e-8a57-596470be9a3a
Project ID: e16af391-c497-4837-b681-c849a5514499
Cross-project: No
Recalled in other projects: 0
Source session: (none)
Created: 2026-07-28 10:16:22
Updated: 2026-07-28 10:16:22

Content

In src/utils/changelog.ts, the leftovers guard at the categorization step had if (!categoryTitle || !raw.pr) — the || !raw.pr condition forced ALL commits without associated PRs into the "Other" leftovers section, even when they matched a category via commit_patterns or labels. This meant direct pushes (no PR) like feat(auth): add SSO would correctly contribute to version bump calculation (which runs before the leftovers check) but would appear under "Other" in the changelog instead of their matched category. Fix: remove || !raw.pr so only !categoryTitle controls leftover placement. The downstream rendering already handles PR-less commits gracefully — createPREntriesFromRaw uses raw.pr ?? '', and formatChangelogEntry falls back to commit-hash links when prNumber is falsy (empty string).

Move to: