Skip to content

Commit fe4b578

Browse files
committed
ci: Fix the access to GH rest API
github-script v5 no longer offers the rest methods directly on the github object, instead they are available only in github.rest. https://github.com/actions/github-script#breaking-changes-in-v5
1 parent acb84c5 commit fe4b578

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/check-upstream-ed25519.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ jobs:
3131
console.log("ed25519 upstream main has changed!")
3232
console.log("${{ steps.test_ed25519.outputs.output }}")
3333
const repo = context.repo.owner + "/" + context.repo.repo
34-
const issues = await github.search.issuesAndPullRequests({
34+
const issues = await github.rest.search.issuesAndPullRequests({
3535
q: "ed25519+upstream+has+new+commits+in:title+state:open+type:issue+repo:" + repo,
3636
})
3737
3838
if (issues.data.total_count > 0) {
3939
console.log("Issue is already open, not creating.")
4040
} else {
4141
console.log("Creating a new issue...")
42-
await github.issues.create({
42+
await github.rest.issues.create({
4343
owner: context.repo.owner,
4444
repo: context.repo.repo,
4545
title: "ed25519 upstream has new commits",

0 commit comments

Comments
 (0)