Skip to content

Commit 6db8f73

Browse files
committed
fix(ci): update release-sync workflow and enhance commitPartial
- Updated `release-sync.yml` to use `devmasx/merge-branch@master` for branch syncing. - Migrated workflow syntax to use `from_branch` and `target_branch` for clarity. - Improved `commitPartial` in `shared.cjs` by adjusting templates and ensuring better alignment. - Enabled `hidden` attribute for all Semantic Release type presets.
1 parent fc88ee3 commit 6db8f73

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/release-sync.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release Sync main → develop
1+
name: Release Sync
22

33
on:
44
workflow_run:
@@ -14,9 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Merge main → develop
17-
uses: tibdex/merge-branch@v3
17+
uses: devmasx/merge-branch@master
1818
with:
19-
source: main
20-
target: develop
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
from_branch: main
20+
target_branch: develop
21+
type: now
22+
github_token: ${{ secrets.GITHUB_TOKEN }}

release/shared.cjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ const commonPlugins = [
2020
preset: "conventionalcommits",
2121
presetConfig: {
2222
types: [
23-
{type: "feat", section: "Features"},
24-
{type: "fix", section: "Bug Fixes"},
25-
{type: "perf", section: "Performance Improvements"},
26-
{type: "refactor", section: "Refactoring"},
27-
{type: "chore", section: "Chores"},
23+
{type: "feat", section: "Features", hidden: false},
24+
{type: "fix", section: "Bug Fixes", hidden: false},
25+
{type: "perf", section: "Performance Improvements", hidden: false},
26+
{type: "refactor", section: "Refactoring", hidden: false},
27+
{type: "chore", section: "Chores", hidden: false},
2828
],
2929
},
3030
writerOpts: {
3131
commitPartial:
32-
"{{#if type}}{{#if scope}}**{{scope}}:** {{/if}}{{subject}}\n\n{{#if body}}{{body}}\n{{/if}}{{/if}}",
32+
"* {{#if scope}}**{{scope}}:** {{/if}}{{subject}}\n\n{{~#if body}}{{body}}\n{{/if}}",
3333
},
3434
},
3535
],

0 commit comments

Comments
 (0)