Skip to content

Commit 5f3c132

Browse files
authored
Add missed condition checks
1 parent 354057c commit 5f3c132

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/pullrequest/pullRequestCommentContent.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ function dco(signed: boolean, committerMap: CommitterMap): string {
5151
text += ' You need a GitHub account to be able to sign the DCO. If you have already a GitHub account, please [add the email address used for this commit to your account](https://help.github.com/articles/why-are-my-commits-linked-to-the-wrong-user/#commits-are-not-linked-to-any-user).<br/>'
5252
}
5353

54-
text += '<sub>You can retrigger this bot by commenting **recheck** in this Pull Request. Posted by the ****DCO Assistant Lite bot****.</sub>'
54+
if (input.suggestRecheck() == 'true') {
55+
text += '<sub>You can retrigger this bot by commenting **recheck** in this Pull Request. Posted by the ****DCO Assistant Lite bot****.</sub>'
56+
}
5557
return text
5658
}
5759

@@ -93,6 +95,8 @@ function cla(signed: boolean, committerMap: CommitterMap): string {
9395
text += ' You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please [add the email address used for this commit to your account](https://help.github.com/articles/why-are-my-commits-linked-to-the-wrong-user/#commits-are-not-linked-to-any-user).<br/>'
9496
}
9597

96-
text += '<sub>You can retrigger this bot by commenting **recheck** in this Pull Request. Posted by the **CLA Assistant Lite bot**.</sub>'
98+
if (input.suggestRecheck() == 'true') {
99+
text += '<sub>You can retrigger this bot by commenting **recheck** in this Pull Request. Posted by the **CLA Assistant Lite bot**.</sub>'
100+
}
97101
return text
98102
}

0 commit comments

Comments
 (0)