Skip to content

Commit 1eaa194

Browse files
Refactor: Improve Discord release message formatting
This commit updates the `post-discord-release.js` script to enhance the formatting of release messages sent to Discord. - Removed the rule to skip "chore(changelog)" commits. - Added an extra newline after the release title for better readability. - Removed an unnecessary newline before the download link. - Adjusted indentation for the `content` property in the Discord payload. Signed-off-by: CreativeCodeCat <wayne6324@gmail.com>
1 parent 56066cf commit 1eaa194

File tree

4 files changed

+7
-18
lines changed

4 files changed

+7
-18
lines changed

.github/workflows/android-release_ci.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,3 @@ jobs:
9090
asset_name: MultiLauncher-${{ github.ref_name }}-Signed.aab
9191
tag: ${{ github.ref }}
9292
overwrite: true
93-
94-
- name: Set up Node.js
95-
uses: actions/setup-node@v5
96-
with:
97-
node-version: '20' # or whatever version you need
98-
99-
- name: Post Release to Discord
100-
env:
101-
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
102-
run: |
103-
# Run your Discord release script
104-
node post-discord-release.js

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,20 @@
22

33
All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
44

5-
## [1.11.0.3](https://github.com/DroidWorksStudio/mLauncher/tree/1.11.0.3) - (15, September 2025)
5+
## [test](https://github.com/DroidWorksStudio/mLauncher/tree/test) - (15, September 2025)
66

77
### Enhancements:
88

99
* Introduce BaseFragment and SystemBarObserver ([8be5be4f](https://github.com/DroidWorksStudio/mLauncher/commit/8be5be4f))
1010

1111
### Bug Fixes:
1212

13+
* Correct typo in advanced settings description ([08961432](https://github.com/DroidWorksStudio/mLauncher/commit/08961432))
1314
* Correct app label display in HomeAppsWidgetProvider ([43c169f1](https://github.com/DroidWorksStudio/mLauncher/commit/43c169f1))
1415

1516
### Refactors:
1617

18+
* Improve Discord release message formatting ([21d650d7](https://github.com/DroidWorksStudio/mLauncher/commit/21d650d7))
1719
* Improve app list sorting ([98ece2ba](https://github.com/DroidWorksStudio/mLauncher/commit/98ece2ba))
1820
* Replace Word of the Day AlarmManager with WorkManager ([a61c988d](https://github.com/DroidWorksStudio/mLauncher/commit/a61c988d))
1921
* Remove SecurityService and FLAG_SECURE ([ca71b87d](https://github.com/DroidWorksStudio/mLauncher/commit/ca71b87d))

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949

5050
<string name="settings_advanced_title">Advanced</string>
51-
<string name="settings_advanced_description">Access app info, default launcher , backup tools and more.</string>
51+
<string name="settings_advanced_description">Access app info, default launcher, backup tools and more.</string>
5252

5353
<string name="settings_expert_title">Expert</string>
5454
<string name="settings_expert_description">Unlock hidden options, and advanced tweaks.</string>

post-discord-release.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const REPO_URL = "https://github.com/DroidWorksStudio/mLauncher";
88

99
// Commit parsing rules
1010
const commitParsers = [
11-
{ message: /^chore\(changelog\):/i, skip: true },
1211
{ message: /^chore\(release\): prepare for/i, skip: true },
1312
{ message: /^chore\(deps.*\)/i, skip: true },
1413
{ message: /^chore\(change.*\)/i, skip: true },
@@ -80,7 +79,7 @@ for (const c of commits) {
8079
}
8180

8281
// Build plain message
83-
let discordMessage = `## Multi Launcher ${latestTag}\n`;
82+
let discordMessage = `## Multi Launcher ${latestTag}\n\n`;
8483

8584
for (const group of GROUP_ORDER) {
8685
if (!groups[group] || groups[group].length === 0) continue;
@@ -91,11 +90,11 @@ for (const group of GROUP_ORDER) {
9190
if (!commits.length) discordMessage += "No commits found.";
9291

9392
// Append download link
94-
discordMessage += `\n[Download Multi Launcher](<${REPO_URL}/releases/tag/${latestTag}>)`;
93+
discordMessage += `[Download Multi Launcher](<${REPO_URL}/releases/tag/${latestTag}>)`;
9594

9695
// Send to Discord
9796
const payload = JSON.stringify({
98-
content: discordMessage,
97+
content: discordMessage,
9998
username: "Multi Launcher Updates!",
10099
avatar_url: "https://github.com/DroidWorksStudio/mLauncher/blob/main/fastlane/metadata/android/en-US/images/icon.png?raw=true",
101100
});

0 commit comments

Comments
 (0)