Skip to content

Commit 9917e67

Browse files
chore(ci): fix release-it arg; (#6032)
1 parent 96ee232 commit 9917e67

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
- name: Prepare release
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
TYPE_ARG: ${{ fromJSON('{"auto":"", "patch":"--patch", "minor":"--minor", "major":"--major"}')[github.event.inputs.type] }}
38+
TYPE_ARG: ${{ fromJSON('{"auto":"", "patch":"patch", "minor":"minor", "major":"major"}')[github.event.inputs.type] }}
3939
BETA_ARG: ${{ github.event.inputs.beta == 'true' && '--preRelease=beta' || '' }}
40-
run: npm run release -- --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github $TYPE_ARG $BETA_ARG $DRY_ARG
40+
run: npm run release -- $TYPE_ARG --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github $BETA_ARG $DRY_ARG
4141
- name: Show git status
4242
if: failure()
4343
run: git status && git diff

bin/contributors.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,12 @@ const renderPRsList = async (tag, template, {comments_threshold= 5, awesome_thre
201201

202202
pr.messages = [];
203203

204-
if (body && (match = /```+changelog(.+)?```/gms.exec(body)) && match[1]) {
205-
pr.messages.push(match[1]);
204+
if (body) {
205+
const reg = /```+changelog\n*(.+?)?\n*```/gms;
206+
207+
while((match = reg.exec(body))) {
208+
match[1] && pr.messages.push(match[1]);
209+
}
206210
}
207211
}
208212
}

0 commit comments

Comments
 (0)