File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- uses : actions/checkout@v3
14
+ if : !(github.event_name == 'pull_request' && (github.event.pull_request.user.id == 49699333 || contains(github.event.pull_request.labels.*.name, 'dependencies')))
15
+ - uses : actions/checkout@v3
16
+ if : github.event_name == 'pull_request' && (github.event.pull_request.user.id == 49699333 || contains(github.event.pull_request.labels.*.name, 'dependencies'))
14
17
with :
15
18
fetch-depth : 0
16
19
ref : ${{ github.event.pull_request.head.ref }}
20
+
17
21
- run : |
18
22
npm install
19
23
npm run all
Original file line number Diff line number Diff line change @@ -33,12 +33,15 @@ async function fetchPatch(): Promise<string> {
33
33
core . info ( `Not fetching patch for showing only new issues because it's not a pull request context: event name is ${ ctx . eventName } ` )
34
34
return ``
35
35
}
36
+
36
37
const pull = ctx . payload . pull_request
37
38
if ( ! pull ) {
38
39
core . warning ( `No pull request in context` )
39
40
return ``
40
41
}
42
+
41
43
const octokit = github . getOctokit ( core . getInput ( `github-token` , { required : true } ) )
44
+
42
45
let patch : string
43
46
try {
44
47
const patchResp = await octokit . rest . pulls . get ( {
You can’t perform that action at this time.
0 commit comments