File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -14,15 +14,16 @@ async function setOutputs(files) {
14
14
15
15
const main = async ( ) => {
16
16
try {
17
- const path = core . getInput ( 'path' , { required : false } ) || "./" ;
18
- const token = core . getInput ( 'token' , { required : true } ) ;
17
+ const path = core . getInput ( 'path' , { required : false } ) || "./"
18
+ const token = core . getInput ( 'token' , { required : true } )
19
+ const pr = github . context . payload . pull_request
19
20
const regExp = RegExp ( path )
20
21
const octokit = new github . getOctokit ( token ) ;
21
22
22
23
const response = await octokit . rest . pulls . listFiles ( {
23
24
owner : github . context . repo . owner ,
24
25
repo : github . context . repo . repo ,
25
- pull_number : "13"
26
+ pull_number : pr . number
26
27
} )
27
28
28
29
const filteredFiles = ( response . data || [ ] ) . filter ( file => {
You can’t perform that action at this time.
0 commit comments