Skip to content

Commit 9b7870f

Browse files
Refactor: Update regex for conventional commit types
The regular expression used to identify and remove conventional commit prefixes (like `feat:`, `fix:`, etc.) in `post-discord-release.js` and `generate-changelog.js` has been updated. This change adds "fixed" and "deprecated" to the list of recognized commit types.
1 parent 250afcf commit 9b7870f

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@ All notable changes to this project will be documented in this file. See [conven
44

55
## [Coming Soon](https://github.com/DroidWorksStudio/mLauncher/tree/main) - TBD
66

7+
### Enhancements:
8+
9+
* Add Discord commit notification script ([59ab18ec](https://github.com/DroidWorksStudio/mLauncher/commit/59ab18ec))
10+
711
### Bug Fixes:
812

913
* Hide Private Apps button when mLauncher is not default ([1c7a5ae7](https://github.com/DroidWorksStudio/mLauncher/commit/1c7a5ae7))
1014

1115
### Code Quality:
1216

17+
* Move Discord notification to changelog workflow ([327f2c33](https://github.com/DroidWorksStudio/mLauncher/commit/327f2c33))
18+
* Update regex for conventional commit types ([10efe4d4](https://github.com/DroidWorksStudio/mLauncher/commit/10efe4d4))
1319
* Update commit parsing rules for changelog generation ([15ac2606](https://github.com/DroidWorksStudio/mLauncher/commit/15ac2606))
1420
* Implement caching and optimize data loading in MainViewModel ([9318ffa0](https://github.com/DroidWorksStudio/mLauncher/commit/9318ffa0))
1521

@@ -31,7 +37,7 @@ All notable changes to this project will be documented in this file. See [conven
3137

3238
### Bug Fixes:
3339

34-
* Fixed: Hide profile icons in App Drawer when not needed. ([68282a9c](https://github.com/DroidWorksStudio/mLauncher/commit/68282a9c))
40+
* Hide profile icons in App Drawer when not needed. ([68282a9c](https://github.com/DroidWorksStudio/mLauncher/commit/68282a9c))
3541
* Fixed fontColor parameter to PageHeader ([99381074](https://github.com/DroidWorksStudio/mLauncher/commit/99381074))
3642
* Fixed fontColor parameter for TopMainHeader composable ([e6d2f212](https://github.com/DroidWorksStudio/mLauncher/commit/e6d2f212))
3743
* Ensure proper dismissal of Device Stats BottomSheet ([f3b100f5](https://github.com/DroidWorksStudio/mLauncher/commit/f3b100f5))

generate-changelog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function classifyCommit(msg) {
114114

115115
function cleanMessage(message) {
116116
// Remove conventional commit type (feat, fix, etc.), with optional scope (...) and colon
117-
return message.replace(/^(feat|fix|bug|lang|i18n|doc|docs|perf|refactor|style|ui|ux|security|revert|release|dependency|deps|build|ci|pipeline|chore|housekeeping|version|versioning|config|configuration|cleanup|clean\(up\)|drop|remove|deprecated|hotfix|emergency|test|infra|infrastructure|ops|asset|content|exp|experiment|prototype)\s*(\(.+?\))?:\s*/i,"");
117+
return message.replace(/^(feat|fix|fixed|bug|lang|i18n|doc|docs|perf|refactor|style|ui|ux|security|revert|release|dependency|deps|build|ci|pipeline|chore|housekeeping|version|versioning|config|configuration|cleanup|clean\(up\)|drop|remove|deprecated|hotfix|emergency|test|infra|infrastructure|ops|asset|content|exp|experiment|prototype)\s*(\(.+?\))?:\s*/i,"");
118118
}
119119

120120
function linkPR(message) {

post-discord-release.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ function run(cmd) {
6666
}
6767

6868
function cleanMessage(message) {
69-
return message.replace(/^(feat|fix|bug|lang|i18n|doc|docs|perf|refactor|style|ui|ux|security|revert|release|dependency|deps|build|ci|pipeline|chore|housekeeping|version|versioning|config|configuration|cleanup|clean\(up\)|drop|remove|hotfix|emergency|test|infra|infrastructure|ops|asset|content|exp|experiment|prototype)\s*(\(.+?\))?:\s*/i, "");
69+
// Remove conventional commit type (feat, fix, etc.), with optional scope (...) and colon
70+
return message.replace(/^(feat|fix|fixed|bug|lang|i18n|doc|docs|perf|refactor|style|ui|ux|security|revert|release|dependency|deps|build|ci|pipeline|chore|housekeeping|version|versioning|config|configuration|cleanup|clean\(up\)|drop|remove|deprecated|hotfix|emergency|test|infra|infrastructure|ops|asset|content|exp|experiment|prototype)\s*(\(.+?\))?:\s*/i,"");
7071
}
7172

7273
function linkPR(message) {

0 commit comments

Comments
 (0)