update action script methods (#5062)
authorJay Cho <chojoong@gmail.com>
Wed, 8 Mar 2023 01:44:14 +0000 (10:44 +0900)
committerGitHub <noreply@github.com>
Wed, 8 Mar 2023 01:44:14 +0000 (10:44 +0900)
.github/workflows/check-api-level.yml
.github/workflows/postback-pull-request.yml

index 33c1565..a0c52f6 100644 (file)
@@ -26,7 +26,7 @@ jobs:
       with:
         script: |
           var metadata = JSON.parse(process.env.BRANCH_METADATA)
-          github.issues.addLabels({
+          github.rest.issues.addLabels({
             issue_number: context.issue.number,
             owner: context.repo.owner,
             repo: context.repo.repo,
index 202a321..f9f952e 100644 (file)
@@ -26,7 +26,7 @@ jobs:
         WORKFLOW_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
       with:
         script: |
-          const res = await github.pulls.list({
+          const res = await github.rest.pulls.list({
             owner: context.repo.owner,
             repo: context.repo.repo,
             state: 'open'