File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -96,13 +96,11 @@ async function mergeIfLGTMAndHasAccess() {
96
96
core . info ( `\n\nLooking at PR: '${ issue . title } ' to see if we can merge` )
97
97
98
98
const changedFiles = await getPRChangedFiles ( octokit , thisRepo , issue . number )
99
- core . info ( `Changed files: \n\n - ${ changedFiles . join ( "\n - " ) } ` )
99
+ core . info ( `Changed files: \n - ${ changedFiles . join ( "\n - " ) } ` )
100
100
101
101
const filesWhichArentOwned = getFilesNotOwnedByCodeOwner ( "@" + context . payload . sender . login , changedFiles , cwd )
102
102
if ( filesWhichArentOwned . length !== 0 ) {
103
- const missing = new Intl . ListFormat ( ) . format ( filesWhichArentOwned ) ;
104
-
105
- console . log ( `${ issue . user . login } does not have access to merge ${ missing } ` )
103
+ console . log ( `@${ context . payload . sender . login } does not have access to merge \n - ${ filesWhichArentOwned . join ( "\n - " ) } ` )
106
104
process . exit ( 0 )
107
105
}
108
106
You can’t perform that action at this time.
0 commit comments