Skip to content

Commit

Permalink
Make some minor changes to README
Browse files Browse the repository at this point in the history
  • Loading branch information
jclem committed Nov 13, 2019
1 parent 470a4bf commit 72fd1e6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
You can use the `github` object to access the Octokit API. For
instance, `github.request`

```
```yaml
on:
pull_request

Expand All @@ -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
Expand Down

0 comments on commit 72fd1e6

Please sign in to comment.