Skip to content

Commit 415189a

Browse files
author
Johan X Lindqvist
committed
docs(readme): fix README example
1 parent 441359b commit 415189a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ And then export an async function from your module:
298298
```javascript
299299
module.exports = async ({github, context, core}) => {
300300
const {SHA} = process.env
301-
const commit = await github.repos.getCommit({
301+
const commit = await github.rest.repos.getCommit({
302302
owner: context.repo.owner,
303303
repo: context.repo.repo,
304304
ref: `${SHA}`

0 commit comments

Comments
 (0)