Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9bb3853

Browse files
authored
Merge pull request actions#201 from johan-lindqvist/fix-readme-example
docs(readme): fix README example
2 parents 441359b + 415189a commit 9bb3853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
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)