Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Improves changelog classification so dependency-only updates (e.g. chore(deps): ...) remain under Chore instead of being miscategorized under Changed, addressing issue #77.
Changes:
- Add dependency-update title detection and use it to keep dependency bumps in Chore during category tuning and markdown postprocessing.
- Refactor section postprocessing to reduce repeated section-handling logic and centralize the bullet-prefix regex in shared markdown constants.
- Update Jest tests/mocks to be more type-correct around
fetchmocking.
Reviewed changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/utils/section-postprocess.test.ts | Adds/updates test to verify dependency bullets are moved from Changed to Chore. |
| tests/utils/github-auth.test.ts | Refactors fetch mocking to better match global.fetch typing. |
| tests/utils/dependency-update.test.ts | Adds unit tests for dependency-update title detection heuristics. |
| tests/utils/category-tune.test.ts | Adds test ensuring dependency-only updates stay in Chore after tuning. |
| src/utils/section-postprocess.ts | Adds logic to move dependency-update bullets from Changed to Chore and refactors section parsing/assembly. |
| src/utils/release.ts | Uses shared bullet-prefix regex constant instead of a local regex. |
| src/utils/dependency-update.ts | Introduces dependency-update title detection utility. |
| src/utils/category-tune.ts | Applies dependency-update detection so those titles remain in Chore during tuning. |
| src/constants/markdown.ts | Centralizes BULLET_PREFIX_RE for reuse across utilities. |
| package.json | Adds @jest/globals dev dependency. |
| pnpm-lock.yaml | Lockfile updates reflecting new Jest-related dependency resolution. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Close #77
Keep dependency updates in Chore during categorization
Description