Skip to content

Commit

Permalink
Update github rest
Browse files Browse the repository at this point in the history
  • Loading branch information
weiting-chen committed Aug 19, 2024
1 parent 34b6ca9 commit ffb9af9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev_cron/issues_link.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function haveComment(github, context, pullRequestNumber, body) {
issue_number: pullRequestNumber
};
while (true) {
const response = await github.issues.listComments(options);
const response = await github.rest.issues.listComments(options);
if (response.data.some(comment => comment.body === body)) {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev_cron/title_check.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function haveISSUESID(title) {
}

async function commentOpenISSUESIssue(github, context, pullRequestNumber) {
const {data: comments} = await github.issues.listComments({
const {data: comments} = await github.rest.issues.listComments({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: pullRequestNumber
Expand Down

0 comments on commit ffb9af9

Please sign in to comment.