File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -52,14 +52,6 @@ async function commentOnMergablePRs() {
52
52
core . info ( `Code-owners: \n - ${ codeowners . users . join ( "\n - " ) } ` )
53
53
core . info ( `Labels: \n - ${ codeowners . labels . join ( "\n - " ) } ` )
54
54
55
- if ( ! codeowners . users . length ) {
56
- console . log ( "This PR does not have any code-owners" )
57
- process . exit ( 0 )
58
- }
59
-
60
-
61
-
62
-
63
55
// Determine who has access to merge every file in this PR
64
56
const ownersWhoHaveAccessToAllFilesInPR = [ ]
65
57
codeowners . users . forEach ( owner => {
@@ -86,6 +78,11 @@ async function commentOnMergablePRs() {
86
78
process . exit ( 0 )
87
79
}
88
80
81
+ if ( ! codeowners . users . length ) {
82
+ console . log ( "This PR does not have any code-owners" )
83
+ process . exit ( 0 )
84
+ }
85
+
89
86
const ourSignature = "<!-- Message About Merging -->"
90
87
const comments = await octokit . issues . listComments ( { ...thisRepo , issue_number : pr . number } )
91
88
const existingComment = comments . data . find ( c => c . body . includes ( ourSignature ) )
You can’t perform that action at this time.
0 commit comments