From 75cdfec2fe37dbd60b3fcff0e369006197f73f25 Mon Sep 17 00:00:00 2001 From: Den Delimarsky <53200638+localden@users.noreply.github.com> Date: Thu, 1 Aug 2024 10:04:03 -0700 Subject: [PATCH] Update label-issues.yml (#4872) --- .github/workflows/label-issues.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/label-issues.yml b/.github/workflows/label-issues.yml index 11b366a4cc..fd0d283529 100644 --- a/.github/workflows/label-issues.yml +++ b/.github/workflows/label-issues.yml @@ -3,6 +3,7 @@ name: Label Client Issues on: issues: types: [opened, edited] + workflow_dispatch: permissions: issues: write @@ -19,7 +20,7 @@ jobs: github-token: ${{secrets.GITHUB_TOKEN}} script: | // Fetch the issue details using the GitHub API - const { data: issue } = await github.issues.get({ + const { data: issue } = await github.rest.issues.get({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number @@ -63,7 +64,7 @@ jobs: script: | const labels = JSON.parse('${{ steps.check_label.outputs.result }}'); if (labels.length > 0) { - await github.issues.addLabels({ + await github.rest.issues.addLabels({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number,