This repository was archived by the owner on Feb 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
* @author Igor Minar (igor@angularjs.org)
4
4
* @copyright (c) 2013 Google, Inc
5
5
* @license MIT
6
- * @version 1.1.2
6
+ * @version 1.1.3
7
7
* @description
8
8
*
9
9
* This Google App Script app that automatically verifies whether PRs in a given project where authored by developers who signed
@@ -98,15 +98,15 @@ function checkCla() {
98
98
99
99
if ( claRepo . containsEmail ( email ) ) {
100
100
log ( " ->> CLA found!" ) ;
101
- if ( ! github . isLabeledAsClaNo ( prNumber ) ) {
101
+ if ( github . isLabeledAsClaNo ( prNumber ) ) {
102
102
log ( " ->> This PR was previously checked and didn't have CLA, posting a 'thank you' comment" ) ;
103
103
github . postComment ( prNumber , THANKS_FOR_SIGNING_CLA_COMMENT ) ;
104
104
}
105
105
log ( " ->> Applying CLA label to the PR" ) ;
106
106
github . labelPrAsClaYes ( prNumber ) ;
107
107
newClaPrs . push ( prNumber ) ;
108
108
} else {
109
- if ( github . isLabeledAsClaNo ( prNumber ) ) {
109
+ if ( ! github . isLabeledAsClaNo ( prNumber ) ) {
110
110
log ( " ->> CLA not found, posting CLA request comment" , prNumber ) ;
111
111
github . postComment ( prNumber , CLA_NOT_FOUND_COMMENT ) ;
112
112
}
You can’t perform that action at this time.
0 commit comments