From 3ed3302285906c8638b45dad8549965b35e9a8c2 Mon Sep 17 00:00:00 2001 From: sophia-guo Date: Fri, 2 Dec 2022 19:00:18 -0500 Subject: [PATCH] Update to github.rest.* to get the Octokit context (#4180) Signed-off-by: Sophia Guo Signed-off-by: Sophia Guo --- .github/workflows/runAqa.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/runAqa.yml b/.github/workflows/runAqa.yml index 1635f236e8..618e48020f 100644 --- a/.github/workflows/runAqa.yml +++ b/.github/workflows/runAqa.yml @@ -58,7 +58,7 @@ jobs: \`\`\` No builds were started. `; - github.issues.createComment({ + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, @@ -87,7 +87,7 @@ jobs: Workflow Run ID: [${{ steps.workflow_run_info.outputs.id }}](${{ steps.workflow_run_info.outputs.url }}) `; - github.issues.createComment({ + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, @@ -174,7 +174,7 @@ jobs: @${{ github.actor }} Build(s) failed. Workflow Run ID: [${{ needs.parseComment.outputs.workflow_id }}](${{ needs.parseComment.outputs.workflow_url }}) `; - github.issues.createComment({ + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, @@ -195,7 +195,7 @@ jobs: @${{ github.actor }} Build(s) cancelled. Workflow Run ID: [${{ needs.parseComment.outputs.workflow_id }}](${{ needs.parseComment.outputs.workflow_url }}) `; - github.issues.createComment({ + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, @@ -216,7 +216,7 @@ jobs: @${{ github.actor }} Build(s) successful. Workflow Run ID: [${{ needs.parseComment.outputs.workflow_id }}](${{ needs.parseComment.outputs.workflow_url }}) `; - github.issues.createComment({ + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo,