File tree
8000
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 33
33
comment :
34
34
runs-on : ubuntu-latest
35
35
steps :
36
- - uses : actions/github-script@0.2 .0
36
+ - uses : actions/github-script@0.3 .0
37
37
with :
38
38
github-token : ${{github.token}}
39
39
script : |
98
98
You can use the ` github` object to access the Octokit API. For
99
99
instance, `github.request`
100
100
101
- ```
101
+ ` ` ` yaml
102
102
on:
103
103
pull_request
104
104
@@ -111,9 +111,8 @@ jobs:
111
111
github-token: ${{github.token}}
112
112
script: |
113
113
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)
117
116
` ` `
118
117
119
1
37BB
18
This will print the full diff object in the screen; `result.data` will
You can’t perform that action at this time.
0 commit comments