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

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