Skip to content

Commit 4e15393

Browse files
committed
Simplify logic for documentation tag Check
1 parent 981ee2c commit 4e15393

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,7 @@ jobs:
4141
uses: actions/github-script@v6
4242
with:
4343
script: |
44-
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');
44+
const hasDocumentationLabel = contains(github.event.pull_request.labels.*.name, 'documentation')
5045
return hasDocumentationLabel;
5146
5247
- name: Find Existing Comment

0 commit comments

Comments
 (0)