chore: fix issue verifier
This commit is contained in:
parent
faaba0f8ec
commit
81aebe953b
2 changed files with 3 additions and 4 deletions
2
.github/actions/issue-validator/index.mjs
vendored
2
.github/actions/issue-validator/index.mjs
vendored
File diff suppressed because one or more lines are too long
|
@ -24,9 +24,8 @@ const __dirname =
|
|||
* }} Label
|
||||
*
|
||||
* @typedef {{
|
||||
* labels: Label[]
|
||||
* pull_request: any
|
||||
* issue?: {body: string, number: number}
|
||||
* issue?: {body: string, number: number, labels: Label[]}
|
||||
* label: Label
|
||||
* }} Payload
|
||||
*
|
||||
|
@ -48,7 +47,7 @@ async function run() {
|
|||
|
||||
if (pull_request || !issue?.body || !process.env.GITHUB_TOKEN) return
|
||||
|
||||
const labels = payload.labels.map((l) => l.name)
|
||||
const labels = issue.labels.map((l) => l.name)
|
||||
const isBugReport =
|
||||
labels.includes(bugLabel) || newLabel === bugLabel || !labels.length
|
||||
|
||||
|
|
Loading…
Reference in a new issue