From b5b53c0dce138823d6e68f22102978920ad574ac Mon Sep 17 00:00:00 2001 From: taskylizard <75871323+taskylizard@users.noreply.github.com> Date: Mon, 3 Jun 2024 07:21:28 +0000 Subject: [PATCH] update workflow --- .github/workflows/labeler.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 35b5665a9..eb224ea2f 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -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