From 72fd1e610965d1c6cc86ae32dbee1a4245799a73 Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Wed, 13 Nov 2019 15:02:16 -0800 Subject: [PATCH] Make some minor changes to README --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index eb5f5de..ea6c8c6 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ jobs: comment: runs-on: ubuntu-latest steps: - - uses: actions/github-script@0.2.0 + - uses: actions/github-script@0.3.0 with: github-token: ${{github.token}} script: | @@ -98,7 +98,7 @@ jobs: You can use the `github` object to access the Octokit API. For instance, `github.request` -``` +```yaml on: pull_request @@ -111,9 +111,8 @@ jobs: github-token: ${{github.token}} script: | const diff_url = context.payload.pull_request.diff_url - const result = await github.request( diff_url ) - console.log( result ) - + const result = await github.request(diff_url) + console.log(result) ``` This will print the full diff object in the screen; `result.data` will