Skip to content

Commit b257e53

Browse files
committed
More logs
1 parent 19c21b5 commit b257e53

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,11 @@ async function mergeIfLGTMAndHasAccess() {
9696
core.info(`\n\nLooking at PR: '${issue.title}' to see if we can merge`)
9797

9898
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 - ")}`)
100100

101101
const filesWhichArentOwned = getFilesNotOwnedByCodeOwner("@" + context.payload.sender.login, changedFiles, cwd)
102102
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 - ")}`)
106104
process.exit(0)
107105
}
108106

0 commit comments

Comments
 (0)