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 1f1a3e8 commit e88f228Copy full SHA for e88f228
.github/workflows/deploy.yml
@@ -41,7 +41,12 @@ jobs:
41
uses: actions/github-script@v6
42
with:
43
script: |
44
- const hasDocumentationLabel = contains(github.event.pull_request.labels.*.name, 'documentation')
+ const { data: labels } = await github.rest.issues.listLabelsOnIssue({
45
+ owner: context.repo.owner,
46
+ repo: context.repo.repo,
47
+ issue_number: context.issue.number
48
+ });
49
+ const hasDocumentationLabel = labels.some(label => label.name === 'documentation');
50
return hasDocumentationLabel;
51
52
- name: Find Existing Comment
0 commit comments