From fa45fa493d4ecb461f958657434f6d8731b2d71b Mon Sep 17 00:00:00 2001 From: Kaushik Malapati Date: Thu, 19 Dec 2024 16:51:18 -0800 Subject: [PATCH] Updating github rest api calls --- .github/workflows/makecomment.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/makecomment.yml b/.github/workflows/makecomment.yml index c0fdff8..dc66aab 100644 --- a/.github/workflows/makecomment.yml +++ b/.github/workflows/makecomment.yml @@ -16,7 +16,7 @@ jobs: uses: actions/github-script@v7 with: script: | - var artifacts = await github.actions.listWorkflowRunArtifacts({ + var artifacts = await github.rest.actions.listWorkflowRunArtifacts({ owner: context.repo.owner, repo: context.repo.repo, run_id: ${{ github.event.workflow_run.id }}, @@ -24,7 +24,7 @@ jobs: var matchArtifact = artifacts.data.artifacts.filter((artifact) => { return artifact.name == "diff" })[0]; - var download = await github.actions.downloadArtifact({ + var download = await github.rest.actions.downloadArtifact({ owner: context.repo.owner, repo: context.repo.repo, artifact_id: matchArtifact.id, @@ -43,7 +43,7 @@ jobs: var issue_number = Number(fs.readFileSync('./NR')); var diff_text = String(fs.readFileSync('./diff.txt')); - await github.issues.createComment({ + await github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo, issue_number: issue_number,