8000 Make some minor changes to README · pierluigi/github-script@72fd1e6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 72fd1e6

Browse files
committed
Make some minor changes to README
1 parent 470a4bf commit 72fd1e6

File tree 8000

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
comment:
3434
runs-on: ubuntu-latest
3535
steps:
36-
- uses: actions/github-script@0.2.0
36+
- uses: actions/github-script@0.3.0
3737
with:
3838
github-token: ${{github.token}}
3939
script: |
@@ -98,7 +98,7 @@ jobs:
9898
You can use the `github` object to access the Octokit API. For
9999
instance, `github.request`
100100

101-
```
101+
```yaml
102102
on:
103103
pull_request
104104
@@ -111,9 +111,8 @@ jobs:
111111
github-token: ${{github.token}}
112112
script: |
113113
const diff_url = context.payload.pull_request.diff_url
114-
const result = await github.request( diff_url )
115-
console.log( result )
116-
114+
const result = await github.request(diff_url)
115+
console.log(result)
117116
```
118117

1191 37BB 18
This will print the full diff object in the screen; `result.data` will

0 commit comments

Comments
 (0)
0