Merge pull request #201 from johan-lindqvist/fix-readme-example

docs(readme): fix README example
This commit is contained in:
Josh Gross 2021-10-08 13:46:06 -04:00 committed by GitHub
commit 9bb3853081
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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}`