From 415189ab4b3dae2e7edc57542b88bb6abd333d0b Mon Sep 17 00:00:00 2001 From: Johan X Lindqvist Date: Thu, 7 Oct 2021 12:30:39 +0200 Subject: [PATCH] docs(readme): fix README example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 182466f0..bc7e1895 100644 --- a/README.md +++ b/README.md @@ -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}`