Skip to content

Commit

Permalink
Merge pull request #57 from KaushikMalapati/makecomment
Browse files Browse the repository at this point in the history
Updating github rest api calls
  • Loading branch information
tangkong authored Dec 20, 2024
2 parents a22628d + fa45fa4 commit 96981e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/makecomment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ 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 }},
});
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,
Expand All @@ -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,
Expand Down

0 comments on commit 96981e3

Please sign in to comment.