Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
taskylizard committed Jun 3, 2024
1 parent 1ad9417 commit b5b53c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
with:
script: |
const prNumber = context.payload.pull_request.number;
const labels = await github.issues.listLabelsOnIssue({
const { data: labels } = await github.rest.issues.listLabelsOnIssue({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
});
const hasCoreLabel = labels.data.some(label => label.name === 'core');
const hasCoreLabel = labels.some(label => label.name === 'core');
return hasCoreLabel;
- name: Auto-assign to PR
Expand Down

0 comments on commit b5b53c0

Please sign in to comment.