You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varNO_COLAB="None of the owners of this pull request are repo collaborators. Please reach out on W3C's irc server (irc.w3.org, port 6665) on channel #testing ([web client](http://irc.w3.org/?channels=testing)) to get someone to merge this or get added as a collaborator. Thank you!";
8
-
9
-
varNO_OWNERS="There are no owners for this pull request. Please reach out on W3C's irc server (irc.w3.org, port 6665) on channel #testing ([web client](http://irc.w3.org/?channels=testing)) to get help with this. Thank you!";
10
5
11
6
functionpromise(value){
12
7
vardeferred=q.defer();
@@ -15,66 +10,32 @@ function promise(value) {
15
10
}
16
11
17
12
module.exports=function(number,metadata){
18
-
if(metadata.reviewers.length||metadata.reviewedUpstream){// If there are reviewers we abord early. They know best.
return"Notifying owners who are not repo collaborators: "+join(handles)+".";
65
-
}
66
-
67
-
module.exports.join=join;
68
-
functionjoin(owners){
69
-
if(owners.length==0){
70
-
return"";
71
-
}
72
-
if(owners.length==1){
73
-
returnowners[0];
74
-
}
75
-
if(owners.length==2){
76
-
returnowners[0]+" and "+owners[1];
77
-
}
78
-
varlast=owners.pop();
79
-
returnowners.join(", ")+", and "+last;
80
-
}
36
+
functionlabelAndComment(label,msg){
37
+
msg+=" Please reach out on W3C's irc server (irc.w3.org, port 6665) on channel #testing ([web client](http://irc.w3.org/?channels=testing)) to get help with this. Thank you!";
0 commit comments