Skip to content

Commit

Permalink
Merge branch 'main' into test-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
taskylizard authored Jun 3, 2024
2 parents b15da08 + b5b53c0 commit 5af655c
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 5af655c

Please sign in to comment.