Commit 81aebe95 authored by Balázs Orbán's avatar Balázs Orbán

chore: fix issue verifier

parent faaba0f8
This diff is collapsed.
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment