Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 04bfa13

Browse files
committed
fix: take two - fixing the 'thank you' comment
1 parent 5015127 commit 04bfa13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: cla-verifier.gs

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Igor Minar ([email protected])
44
* @copyright (c) 2013 Google, Inc
55
* @license MIT
6-
* @version 1.1.2
6+
* @version 1.1.3
77
* @description
88
*
99
* 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() {
9898

9999
if (claRepo.containsEmail(email)) {
100100
log(" ->> CLA found!");
101-
if (!github.isLabeledAsClaNo(prNumber)) {
101+
if (github.isLabeledAsClaNo(prNumber)) {
102102
log(" ->> This PR was previously checked and didn't have CLA, posting a 'thank you' comment");
103103
github.postComment(prNumber, THANKS_FOR_SIGNING_CLA_COMMENT);
104104
}
105105
log(" ->> Applying CLA label to the PR");
106106
github.labelPrAsClaYes(prNumber);
107107
newClaPrs.push(prNumber);
108108
} else {
109-
if (github.isLabeledAsClaNo(prNumber)) {
109+
if (!github.isLabeledAsClaNo(prNumber)) {
110110
log(" ->> CLA not found, posting CLA request comment", prNumber);
111111
github.postComment(prNumber, CLA_NOT_FOUND_COMMENT);
112112
}

0 commit comments

Comments
 (0)