Skip to content

Commit

Permalink
chore(ci): fix release-it arg; (#6032)
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalBrainJS authored Oct 26, 2023
1 parent 96ee232 commit 9917e67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:
- name: Prepare release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TYPE_ARG: ${{ fromJSON('{"auto":"", "patch":"--patch", "minor":"--minor", "major":"--major"}')[github.event.inputs.type] }}
TYPE_ARG: ${{ fromJSON('{"auto":"", "patch":"patch", "minor":"minor", "major":"major"}')[github.event.inputs.type] }}
BETA_ARG: ${{ github.event.inputs.beta == 'true' && '--preRelease=beta' || '' }}
run: npm run release -- --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github $TYPE_ARG $BETA_ARG $DRY_ARG
run: npm run release -- $TYPE_ARG --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github $BETA_ARG $DRY_ARG
- name: Show git status
if: failure()
run: git status && git diff
Expand Down
8 changes: 6 additions & 2 deletions bin/contributors.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,12 @@ const renderPRsList = async (tag, template, {comments_threshold= 5, awesome_thre

pr.messages = [];

if (body && (match = /```+changelog(.+)?```/gms.exec(body)) && match[1]) {
pr.messages.push(match[1]);
if (body) {
const reg = /```+changelog\n*(.+?)?\n*```/gms;

while((match = reg.exec(body))) {
match[1] && pr.messages.push(match[1]);
}
}
}
}
Expand Down

0 comments on commit 9917e67

Please sign in to comment.