-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
๐ fix(changelog): fix subCommitScope default value and reduceHeadingLevel #670
Conversation
The commit includes changes in the packages/changelog/.changelogrc.js, packages/changelog/src/finalizeContext/index.ts, and packages/changelog/src/templates files. It fixes the default value of subCommitScope from an empty string to null when it is not defined in customConfig.scopeDisplayName. The change ensures that commits with no scope are appropriately sorted in commitGroups.
Codecov Report
@@ Coverage Diff @@
## master #670 +/- ##
==========================================
+ Coverage 76.59% 86.55% +9.96%
==========================================
Files 26 26
Lines 282 305 +23
Branches 73 81 +8
==========================================
+ Hits 216 264 +48
+ Misses 61 36 -25
Partials 5 5
๐ฃ Weโre building smart automated test selection to slash your CI/CD build times. Learn more |
This commit updates the display names for `build`, `chore`, and `ci` commit types in the `typeDisplayName` module of the changelog transformer. The emojis used to represent these types have been changed from ๐ฆ, ๐ง, and ๐ท to ๐ท, ๐ซ, and ๐ง respectively. This change applies to both English and Chinese display names. The update only affects style and does not impact the functionality of the code.
โฆdisplay name This commit adds support for a custom type display map and scope display name to the changelog package. The `customTypeMap` property in the `ChangelogConfig` interface allows users to define a custom type display map, while the `scopeDisplayName` property allows users to specify a default display name for all scopes. These new features can be configured in the `customConfig.ts` file. This commit also includes some code refactoring and dependency updates.
โฆtScope in finalizeContext test This commit refactors the code in finalizeContext index.test.ts file by using null instead of an empty string for subCommitScope. This change is done to fix a bug related to custom configuration scopeDisplayName. The commit does not add any new features nor affect performance.
โฆtTypes in customTypeMap parameter
This commit refactors the finalizeContext test in the changelog package by removing unused imports, variables, and commented-out code. It also improves readability by removing unnecessary ternary operations and renaming variables for clarity.
โฆtemplate This commit adds an option to show authors' avatars in the summary template of the changelog package. The new functionality is achieved by introducing a new handlebar partial called "summary-avatar," which contains the code that generates avatars for each author. The mainTemplate variable is updated to include this new partial and replace the {{gitUserInfo}} placeholder with the appropriate code based on the showAuthor and showAuthorAvatar options from the customConfig object.
done |
@@ -33,13 +33,16 @@ | |||
"test": "jest" | |||
}, | |||
"dependencies": { | |||
"@ardatan/sync-fetch": "^0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ๅพๅๆ ^0.x
^0 ไธไผๅปๆพๆๆฐ็็ๆฌ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ไปฅๅไธบๅฅๆฏ็จ่ฟไธชๅ ็ fetch ๏ผๆฏๆไปไน็นๆฎ็ไน๏ผ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ๆ่ฏไธๆฅ 0 ไผๅปๆพๆๆฐ็ๆฌ่ฏถ....?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ไปฅๅไธบๅฅๆฏ็จ่ฟไธชๅ ็ fetch ๏ผๆฏๆไปไน็นๆฎ็ไน๏ผ
fetch ็ๅๆญฅ็ๆฌ
close #156 |
### [Version 1.5.2](https://github.com/arvinxx/gitmoji-commit-workflow/compare/conventional-changelog-gitmoji-config@[email protected]) <sup>Released on **2023-06-12**</sup> #### ๐ Bug Fixes - **changelog**: Fix subCommitScope default value and reduceHeadingLevel. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **changelog**: Fix subCommitScope default value and reduceHeadingLevel, closes [#670](#670) ([e4da993](e4da993)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
๐ This PR is included in version 1.5.3 ๐ The release is available on npm package (@latest dist-tag) Your semantic-release bot ๐ฆ๐ |
๐ This PR is included in version 1.5.2 ๐ The release is available on npm package (@latest dist-tag) Your semantic-release bot ๐ฆ๐ |
The commit includes changes in the packages/changelog/.changelogrc.js, packages/changelog/src/finalizeContext/index.ts, and packages/changelog/src/templates files. It fixes the default value of subCommitScope from an empty string to null when it is not defined in customConfig.scopeDisplayName. The change ensures that commits with no scope are appropriately sorted in commitGroups.