We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faaba0f commit 81aebe9Copy full SHA for 81aebe9
.github/actions/issue-validator/index.mjs
.github/actions/issue-validator/src/index.mjs
@@ -24,9 +24,8 @@ const __dirname =
24
* }} Label
25
*
26
* @typedef {{
27
- * labels: Label[]
28
* pull_request: any
29
- * issue?: {body: string, number: number}
+ * issue?: {body: string, number: number, labels: Label[]}
30
* label: Label
31
* }} Payload
32
@@ -48,7 +47,7 @@ async function run() {
48
47
49
if (pull_request || !issue?.body || !process.env.GITHUB_TOKEN) return
50
51
- const labels = payload.labels.map((l) => l.name)
+ const labels = issue.labels.map((l) => l.name)
52
const isBugReport =
53
labels.includes(bugLabel) || newLabel === bugLabel || !labels.length
54
0 commit comments