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 939a146 commit e1d7e79Copy full SHA for e1d7e79
index.js
@@ -24,7 +24,12 @@ async function run() {
24
25
const failMessages = []
26
27
- const prLabels = context.payload.pull_request.labels.map(item => item.name)
+ const { data: labelsOnIssue } = await octokit.issues.listLabelsOnIssue({
28
+ ...context.repo,
29
+ issue_number: context.payload.pull_request.number
30
+ })
31
+
32
+ const prLabels = labelsOnIssue.map(item => item.name)
33
34
const hasSomeResult = !hasSomeInput || hasSomeLabels.some((label) =>
35
prLabels.includes(label)
0 commit comments