chore: Merge branch '2.x' into main (#1558)

pull/1540/head
贤心 11 months ago committed by GitHub
commit 3bced33798
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -22,11 +22,12 @@ jobs:
};
const issue = await github.rest.issues.get(config);
// 是否带有 `bug` 标签
// 是否带有 `bug`, `wontfix` 标签
const hasBugLabel = issue.data.labels.some(label => label.name === 'bug');
const hasWontfixLabel = issue.data.labels.some(label => label.name === 'wontfix');
// 对带有 `bug` 标签的 issue 追加 `resolved` 标签,表示 bug 已解决。
if (hasBugLabel) {
if (hasBugLabel && !hasWontfixLabel) {
github.rest.issues.addLabels({
...config,
labels: ['resolved']

Loading…
Cancel
Save