Skip to content

Commit 81aebe9

Browse files
committed
chore: fix issue verifier
1 parent faaba0f commit 81aebe9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/actions/issue-validator/index.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

.github/actions/issue-validator/src/index.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ const __dirname =
2424
* }} Label
2525
*
2626
* @typedef {{
27-
* labels: Label[]
2827
* pull_request: any
29-
* issue?: {body: string, number: number}
28+
* issue?: {body: string, number: number, labels: Label[]}
3029
* label: Label
3130
* }} Payload
3231
*
@@ -48,7 +47,7 @@ async function run() {
4847

4948
if (pull_request || !issue?.body || !process.env.GITHUB_TOKEN) return
5049

51-
const labels = payload.labels.map((l) => l.name)
50+
const labels = issue.labels.map((l) => l.name)
5251
const isBugReport =
5352
labels.includes(bugLabel) || newLabel === bugLabel || !labels.length
5453

0 commit comments

Comments
 (0)