Skip to content

Commit

Permalink
ci(test-acion): skip issue_comment event (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 authored Nov 6, 2024
1 parent 1f0ea6f commit 93a7e3b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: test dist
name: TEST_ACTION
on:
pull_request:
branches: [develop]
paths:
- dist/index.js
issue_comment:
types: [edited]

jobs:
generator:
Expand Down
5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30057,8 +30057,9 @@ function renderMarkdown(pullRequestList) {
(0, core_1.startGroup)(`[renderer] pullRequestList`);
pullRequestList.forEach((pr) => {
pr.body = pr.body ? pr.body : '';
// 跳过机器人PR
// pr 用户类型是 Bot 不纳入 Changelog
if (pr.user.type === 'Bot') {
(0, core_1.info)(`pr ${pr.number} 用户类型是 Bot 不纳入 Changelog`);
return;
}
// 不需要纳入 changelog 的 label
Expand All @@ -30068,7 +30069,7 @@ function renderMarkdown(pullRequestList) {
}
// 在 pr body 明确填了 跳过 label
if (exports.SKIP_CHANGELOG_REG.test(pr.body)) {
(0, core_1.info)(`pr ${pr.number} 显示不需要纳入 changelog`);
(0, core_1.info)(`pr ${pr.number} 显示不需要纳入 Changelog`);
return;
}
if (pr.body.includes('### 📝 更新日志')) {
Expand Down
5 changes: 3 additions & 2 deletions src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ export function renderMarkdown(pullRequestList: PullsData[]) {
startGroup(`[renderer] pullRequestList`)
pullRequestList.forEach((pr) => {
pr.body = pr.body ? pr.body : ''
// 跳过机器人PR
// pr 用户类型是 Bot 不纳入 Changelog
if (pr.user.type === 'Bot') {
info(`pr ${pr.number} 用户类型是 Bot 不纳入 Changelog`)
return
}
// 不需要纳入 changelog 的 label
Expand All @@ -57,7 +58,7 @@ export function renderMarkdown(pullRequestList: PullsData[]) {
}
// 在 pr body 明确填了 跳过 label
if (SKIP_CHANGELOG_REG.test(pr.body)) {
info(`pr ${pr.number} 显示不需要纳入 changelog`)
info(`pr ${pr.number} 显示不需要纳入 Changelog`)
return
}

Expand Down

0 comments on commit 93a7e3b

Please sign in to comment.