docs(readme): fix README example

This commit is contained in:
Johan X Lindqvist
2021-10-07 12:30:39 +02:00
parent 441359b1a3
commit 415189ab4b

View File

@@ -298,7 +298,7 @@ And then export an async function from your module:
```javascript
module.exports = async ({github, context, core}) => {
const {SHA} = process.env
const commit = await github.repos.getCommit({
const commit = await github.rest.repos.getCommit({
owner: context.repo.owner,
repo: context.repo.repo,
ref: `${SHA}`