Skip to content

Commit 23a6d51

Browse files
committed
Add the .rest. when querying via actions/github-script
1 parent 5bd7f36 commit 23a6d51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/debug-me.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
}
2525
core.info(`Getting PR #${request.pull_number} from ${request.owner}/${request.repo}`)
2626
try {
27-
const result = await github.pulls.get(request)
27+
const result = await github.rest.pulls.get(request)
2828
return result.data
2929
} catch (err) {
3030
core.setFailed(`Request failed with error ${err}`)

0 commit comments

Comments
 (0)