Skip to content

Commit 250afcf

Browse files
Refactor: Update commit parsing rules for changelog generation
This commit updates the commit parsing rules in `post-discord-release.js` and `generate-changelog.js` for improved changelog generation. The following changes were made: - In `post-discord-release.js`: - Updated group names to include "###" prefix and ":" suffix for markdown H3 formatting. - Separated "Documentation" and "Localization" into distinct groups. - Added "deprecated" to the "Feature Removals" group. - Renamed "Improvements" group to "Code Quality". - In `generate-changelog.js`: - Separated "Documentation & Language" into "Documentation" and "Localization" groups. - Added "deprecated" to the "Feature Removals" group. - Renamed "Refactors" group to "Code Quality". - Reordered "Feature Removals" group to appear after "Security".
1 parent ead38b5 commit 250afcf

File tree

3 files changed

+86
-51
lines changed

3 files changed

+86
-51
lines changed

CHANGELOG.md

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ All notable changes to this project will be documented in this file. See [conven
88

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

11-
### Refactors:
11+
### Code Quality:
1212

13+
* Update commit parsing rules for changelog generation ([15ac2606](https://github.com/DroidWorksStudio/mLauncher/commit/15ac2606))
1314
* Implement caching and optimize data loading in MainViewModel ([9318ffa0](https://github.com/DroidWorksStudio/mLauncher/commit/9318ffa0))
1415

1516
## [1.11.1.3](https://github.com/DroidWorksStudio/mLauncher/tree/1.11.1.3) - (21, September 2025)
@@ -18,7 +19,7 @@ All notable changes to this project will be documented in this file. See [conven
1819

1920
* Simplify icon loading and caching logic ([0ecf511b](https://github.com/DroidWorksStudio/mLauncher/commit/0ecf511b))
2021

21-
### Documentation & Language:
22+
### Localization:
2223

2324
* Updated Language Files. ([#903](https://github.com/DroidWorksStudio/mLauncher/pull/903)) ([2b126639](https://github.com/DroidWorksStudio/mLauncher/commit/2b126639))
2425

@@ -35,11 +36,11 @@ All notable changes to this project will be documented in this file. See [conven
3536
* Fixed fontColor parameter for TopMainHeader composable ([e6d2f212](https://github.com/DroidWorksStudio/mLauncher/commit/e6d2f212))
3637
* Ensure proper dismissal of Device Stats BottomSheet ([f3b100f5](https://github.com/DroidWorksStudio/mLauncher/commit/f3b100f5))
3738

38-
### Refactors:
39+
### Code Quality:
3940

4041
* Rename screen time string resource ([44a17131](https://github.com/DroidWorksStudio/mLauncher/commit/44a17131))
4142

42-
### Documentation & Language:
43+
### Localization:
4344

4445
* Updated Language Files. ([#901](https://github.com/DroidWorksStudio/mLauncher/pull/901)) ([803eb93a](https://github.com/DroidWorksStudio/mLauncher/commit/803eb93a))
4546
* Updated Language Files. ([#899](https://github.com/DroidWorksStudio/mLauncher/pull/899)) ([703ced86](https://github.com/DroidWorksStudio/mLauncher/commit/703ced86))
@@ -54,19 +55,19 @@ All notable changes to this project will be documented in this file. See [conven
5455

5556
* Enhance Profile Handling and App List Filtering ([2cdb6900](https://github.com/DroidWorksStudio/mLauncher/commit/2cdb6900))
5657

57-
### Refactors:
58+
### Code Quality:
5859

5960
* Improve Home Apps Widget Layout and Logic ([b3a917cc](https://github.com/DroidWorksStudio/mLauncher/commit/b3a917cc))
6061
* Standardize widget update and FAB action handling ([66641117](https://github.com/DroidWorksStudio/mLauncher/commit/66641117))
6162

62-
### Build:
63-
64-
* Bump rexml in the bundler group across 1 directory ([#897](https://github.com/DroidWorksStudio/mLauncher/pull/897)) ([abc9f006](https://github.com/DroidWorksStudio/mLauncher/commit/abc9f006))
65-
6663
### Feature Removals:
6764

6865
* Remove unused onStatusChanged method ([dbf85b34](https://github.com/DroidWorksStudio/mLauncher/commit/dbf85b34))
6966

67+
### Build:
68+
69+
* Bump rexml in the bundler group across 1 directory ([#897](https://github.com/DroidWorksStudio/mLauncher/pull/897)) ([abc9f006](https://github.com/DroidWorksStudio/mLauncher/commit/abc9f006))
70+
7071
## [1.11.1.0](https://github.com/DroidWorksStudio/mLauncher/tree/1.11.1.0) - (15, September 2025)
7172

7273
### Enhancements:
@@ -77,7 +78,7 @@ All notable changes to this project will be documented in this file. See [conven
7778

7879
* Correct app label display in HomeAppsWidgetProvider ([43c169f1](https://github.com/DroidWorksStudio/mLauncher/commit/43c169f1))
7980

80-
### Refactors:
81+
### Code Quality:
8182

8283
* Remove package attribute from AndroidManifest.xml ([3d35e4a6](https://github.com/DroidWorksStudio/mLauncher/commit/3d35e4a6))
8384
* Improve Discord release message formatting ([1eaa194b](https://github.com/DroidWorksStudio/mLauncher/commit/1eaa194b))
@@ -87,11 +88,14 @@ All notable changes to this project will be documented in this file. See [conven
8788
* Update cleanMessage regex to include 'docs' ([1bedc196](https://github.com/DroidWorksStudio/mLauncher/commit/1bedc196))
8889
* Simplify Discord release message ([840197f7](https://github.com/DroidWorksStudio/mLauncher/commit/840197f7))
8990

90-
### Documentation & Language:
91+
### Documentation:
9192

92-
* Updated Language Files. ([#893](https://github.com/DroidWorksStudio/mLauncher/pull/893)) ([a4943d6c](https://github.com/DroidWorksStudio/mLauncher/commit/a4943d6c))
9393
* Update Discord invite link ([04db3aca](https://github.com/DroidWorksStudio/mLauncher/commit/04db3aca))
9494

95+
### Localization:
96+
97+
* Updated Language Files. ([#893](https://github.com/DroidWorksStudio/mLauncher/pull/893)) ([a4943d6c](https://github.com/DroidWorksStudio/mLauncher/commit/a4943d6c))
98+
9599
### Build:
96100

97101
* Update Kotlin and KSP versions and increment patch version ([b9814bb2](https://github.com/DroidWorksStudio/mLauncher/commit/b9814bb2))
@@ -109,13 +113,13 @@ All notable changes to this project will be documented in this file. See [conven
109113

110114
* Correct Language Enum Order ([2121c458](https://github.com/DroidWorksStudio/mLauncher/commit/2121c458))
111115

112-
### Refactors:
116+
### Code Quality:
113117

114118
* Reorganize commit groups in changelog ([ea6309c3](https://github.com/DroidWorksStudio/mLauncher/commit/ea6309c3))
115119
* Order changelog groups by commit type ([7f41df17](https://github.com/DroidWorksStudio/mLauncher/commit/7f41df17))
116120
* Move UI adapters to dedicated package ([c2ac5fc4](https://github.com/DroidWorksStudio/mLauncher/commit/c2ac5fc4))
117121

118-
### Documentation & Language:
122+
### Localization:
119123

120124
* Updated Language Files. ([#885](https://github.com/DroidWorksStudio/mLauncher/pull/885)) ([c6f46f39](https://github.com/DroidWorksStudio/mLauncher/commit/c6f46f39))
121125

@@ -132,7 +136,7 @@ All notable changes to this project will be documented in this file. See [conven
132136
* Add haptic feedback for UI interactions ([efc8715f](https://github.com/DroidWorksStudio/mLauncher/commit/efc8715f))
133137
* Add SecurityService to detect debug mode and set FLAG_SECURE ([5637c5da](https://github.com/DroidWorksStudio/mLauncher/commit/5637c5da))
134138

135-
### Refactors:
139+
### Code Quality:
136140

137141
* Centralize search engine URLs and logging ([62dbf6cc](https://github.com/DroidWorksStudio/mLauncher/commit/62dbf6cc))
138142
* Consolidate permission requests and remove unused code ([f30016f9](https://github.com/DroidWorksStudio/mLauncher/commit/f30016f9))
@@ -141,7 +145,7 @@ All notable changes to this project will be documented in this file. See [conven
141145
* Update changelog script path in workflow ([8738766d](https://github.com/DroidWorksStudio/mLauncher/commit/8738766d))
142146
* Automate changelog generation with custom script ([5634945d](https://github.com/DroidWorksStudio/mLauncher/commit/5634945d))
143147

144-
### Documentation & Language:
148+
### Localization:
145149

146150
* Updated Language Files. ([#883](https://github.com/DroidWorksStudio/mLauncher/pull/883)) ([4c8a3260](https://github.com/DroidWorksStudio/mLauncher/commit/4c8a3260))
147151

@@ -160,12 +164,12 @@ All notable changes to this project will be documented in this file. See [conven
160164

161165
* Conditional private space receiver unregistration ([cdb88c1c](https://github.com/DroidWorksStudio/mLauncher/commit/cdb88c1c))
162166

163-
### Refactors:
167+
### Code Quality:
164168

165169
* Enhance Contact List and App Drawer Functionality ([fab60dc8](https://github.com/DroidWorksStudio/mLauncher/commit/fab60dc8))
166170
* Use app name for label in app drawer ([58be2d44](https://github.com/DroidWorksStudio/mLauncher/commit/58be2d44))
167171

168-
### Documentation & Language:
172+
### Localization:
169173

170174
* Updated Language Files. ([#878](https://github.com/DroidWorksStudio/mLauncher/pull/878)) ([c63c99a1](https://github.com/DroidWorksStudio/mLauncher/commit/c63c99a1))
171175

@@ -175,13 +179,13 @@ All notable changes to this project will be documented in this file. See [conven
175179

176180
* Add null check for view in HomeFragment.onResume ([66425a6a](https://github.com/DroidWorksStudio/mLauncher/commit/66425a6a))
177181

178-
### Refactors:
182+
### Code Quality:
179183

180184
* Add manual location and temperature unit settings for weather ([858c38be](https://github.com/DroidWorksStudio/mLauncher/commit/858c38be))
181185
* Extract weather logic to WeatherHelper ([0928fe69](https://github.com/DroidWorksStudio/mLauncher/commit/0928fe69))
182186
* Optimize HomeFragment lifecycle and receivers ([fe430ad3](https://github.com/DroidWorksStudio/mLauncher/commit/fe430ad3))
183187

184-
### Documentation & Language:
188+
### Localization:
185189

186190
* Updated Language Files. ([#874](https://github.com/DroidWorksStudio/mLauncher/pull/874)) ([631a5fd2](https://github.com/DroidWorksStudio/mLauncher/commit/631a5fd2))
187191

@@ -191,12 +195,12 @@ All notable changes to this project will be documented in this file. See [conven
191195

192196
* Improve app tag handling for multi-user support ([ffe8e4b4](https://github.com/DroidWorksStudio/mLauncher/commit/ffe8e4b4))
193197

194-
### Refactors:
198+
### Code Quality:
195199

196200
* Enhance multi-profile support for app tags ([dccfa472](https://github.com/DroidWorksStudio/mLauncher/commit/dccfa472))
197201
* Improve Fuzzy Finder and Search Logic ([63ce32da](https://github.com/DroidWorksStudio/mLauncher/commit/63ce32da))
198202

199-
### Documentation & Language:
203+
### Localization:
200204

201205
* Updated Language Files. ([#871](https://github.com/DroidWorksStudio/mLauncher/pull/871)) ([6cc7db96](https://github.com/DroidWorksStudio/mLauncher/commit/6cc7db96))
202206

generate-changelog.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,21 @@ const commitParsers = [
4545
// Bug fixes & hotfixes
4646
{ message: /^fix|^bug|^hotfix|^emergency/i, group: "### Bug Fixes:" },
4747

48-
// Refactors (own category after Bug Fixes)
49-
{ message: /^refactor/i, group: "### Refactors:" },
48+
// Code quality (refactors, cleanup without changing behavior)
49+
{ message: /^refactor/i, group: "### Code Quality:" },
5050

51-
// Documentation & language/i18n
52-
{ message: /^doc|^lang|^i18n/i, group: "### Documentation & Language:" },
51+
// Documentation
52+
{ message: /^doc/i, group: "### Documentation:" },
53+
54+
// Localization & internationalization
55+
{ message: /^(lang|i18n)/i, group: "### Localization:" },
5356

5457
// Security
5558
{ message: /^security/i, group: "### Security:" },
5659

60+
// Feature removal / drops
61+
{ message: /^drop|^remove|^deprecated/i, group: "### Feature Removals:" },
62+
5763
// Reverts
5864
{ message: /^revert/i, group: "### Reverts:" },
5965

@@ -64,8 +70,7 @@ const commitParsers = [
6470
{ message: /^dependency|^deps/i, group: "### Dependencies:" },
6571

6672
// Meta: configuration, CI/CD, versioning, releases
67-
{ message: /^config|^configuration|^ci|^pipeline|^release|^version|^versioning/i,
68-
group: "### Meta:" },
73+
{ message: /^config|^configuration|^ci|^pipeline|^release|^version|^versioning/i, group: "### Meta:" },
6974

7075
// Tests
7176
{ message: /^test/i, group: "### Tests:" },
@@ -75,9 +80,6 @@ const commitParsers = [
7580

7681
// Chore & cleanup
7782
{ message: /^chore|^housekeeping|^cleanup|^clean\(up\)/i, group: "### Maintenance & Cleanup:" },
78-
79-
// Feature removal / drops
80-
{ message: /^drop|^remove|^deprecated/i, group: "### Feature Removals:" },
8183
];
8284

8385
// Build group order directly from commitParsers

post-discord-release.js

Lines changed: 49 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,55 @@ const REPO_URL = "https://github.com/DroidWorksStudio/mLauncher";
88

99
// Commit parsing rules
1010
const commitParsers = [
11-
{ message: /^chore\(release\): prepare for/i, skip: true },
12-
{ message: /^chore\(deps.*\)/i, skip: true },
13-
{ message: /^chore\(change.*\)/i, skip: true },
14-
{ message: /^chore\(pr\)/i, skip: true },
15-
{ message: /^chore\(pull\)/i, skip: true },
16-
{ message: /^fixes/i, skip: true },
17-
{ message: /^feat|^perf|^style|^ui|^ux/i, group: "Enhancements" },
18-
{ message: /^fix|^bug|^hotfix|^emergency/i, group: "Bug Fixes" },
19-
{ message: /^refactor/i, group: "Improvements" },
20-
{ message: /^doc/i, group: "Documentation" },
21-
{ message: /^(lang|i18n)/i, group: "Localization" },
22-
{ message: /^drop|^remove/i, group: "Feature Removals" },
23-
{ message: /^security/i, group: "Security" },
24-
{ message: /^revert/i, group: "Reverts" },
25-
{ message: /^build/i, group: "Build" },
26-
{ message: /^dependency|^deps/i, group: "Dependencies" },
27-
{ message: /^config|^configuration|^ci|^pipeline|^release|^version|^versioning/i, group: "Meta" },
28-
{ message: /^test/i, group: "Tests" },
29-
{ message: /^infra|^infrastructure|^ops/i, group: "Infrastructure & Ops" },
30-
{ message: /^chore|^housekeeping|^cleanup|^clean\(up\)/i, group: "Maintenance & Cleanup" }
11+
// Skip some "noise" commits
12+
{ message: /^chore\(release\): prepare for/i, skip: true },
13+
{ message: /^chore\(deps.*\)/i, skip: true },
14+
{ message: /^chore\(change.*\)/i, skip: true },
15+
{ message: /^chore\(pr\)/i, skip: true },
16+
{ message: /^chore\(pull\)/i, skip: true },
17+
{ message: /^fixes/i, skip: true },
18+
19+
// Enhancements (new features, improvements, UX, performance)
20+
{ message: /^feat|^perf|^style|^ui|^ux/i, group: "### Enhancements:" },
21+
22+
// Bug fixes & hotfixes
23+
{ message: /^fix|^bug|^hotfix|^emergency/i, group: "### Bug Fixes:" },
24+
25+
// Code quality (refactors, cleanup without changing behavior)
26+
{ message: /^refactor/i, group: "### Code Quality:" },
27+
28+
// Documentation
29+
{ message: /^doc/i, group: "### Documentation:" },
30+
31+
// Localization & internationalization
32+
{ message: /^(lang|i18n)/i, group: "### Localization:" },
33+
34+
// Security
35+
{ message: /^security/i, group: "### Security:" },
36+
37+
// Feature removal / drops
38+
{ message: /^drop|^remove|^deprecated/i, group: "### Feature Removals:" },
39+
40+
// Reverts
41+
{ message: /^revert/i, group: "### Reverts:" },
42+
43+
// Build-related
44+
{ message: /^build/i, group: "### Build:" },
45+
46+
// Dependencies-related
47+
{ message: /^dependency|^deps/i, group: "### Dependencies:" },
48+
49+
// Meta: configuration, CI/CD, versioning, releases
50+
{ message: /^config|^configuration|^ci|^pipeline|^release|^version|^versioning/i, group: "### Meta:" },
51+
52+
// Tests
53+
{ message: /^test/i, group: "### Tests:" },
54+
55+
// Infrastructure & Ops
56+
{ message: /^infra|^infrastructure|^ops/i, group: "### Infrastructure & Ops:" },
57+
58+
// Chore & cleanup
59+
{ message: /^chore|^housekeeping|^cleanup|^clean\(up\)/i, group: "### Maintenance & Cleanup:" },
3160
];
3261

3362
const GROUP_ORDER = commitParsers.filter((p) => !p.skip).map((p) => p.group);

0 commit comments

Comments
 (0)