From e10f52fd4138281db303171da7743c3cf8e9db4f Mon Sep 17 00:00:00 2001 From: Josephasafg Date: Fri, 5 Jul 2024 20:00:05 +0300 Subject: [PATCH] fix: rest call --- .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 28e927f6..b64d2fde 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -75,7 +75,7 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - const { data: labels } = await github.issues.listLabelsOnIssue({ + const { data: labels } = await github.rest.issues.listLabelsOnIssue({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number, @@ -92,7 +92,7 @@ jobs: const currentLabels = '${{ steps.fetch_labels.outputs.result }}'.split(','); const labelsToRemove = currentLabels.filter(label => sizeLabels.includes(label)); for (const label of labelsToRemove) { - await github.issues.removeLabel({ + await github.rest.issues.removeLabel({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number,