Skip to content

Commit 5160ea2

Browse files
committed
Move bot signature outside of recheck text
1 parent 0fb6942 commit 5160ea2

File tree

2 files changed

+8
-43
lines changed

2 files changed

+8
-43
lines changed

dist/index.js

Lines changed: 4 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -700,8 +700,9 @@ function dco(signed, committerMap) {
700700
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/>';
701701
}
702702
if (input.suggestRecheck() == 'true') {
703-
text += '<sub>You can retrigger this bot by commenting **recheck** in this Pull Request. Posted by the ****DCO Assistant Lite bot****.</sub>';
703+
text += '<sub>You can retrigger this bot by commenting **recheck** in this Pull Request. </sub>';
704704
}
705+
text += '<sub>Posted by the ****DCO Assistant Lite bot****.</sub>';
705706
return text;
706707
}
707708
function cla(signed, committerMap) {
@@ -736,8 +737,9 @@ function cla(signed, committerMap) {
736737
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/>';
737738
}
738739
if (input.suggestRecheck() == 'true') {
739-
text += '<sub>You can retrigger this bot by commenting **recheck** in this Pull Request. Posted by the **CLA Assistant Lite bot**.</sub>';
740+
text += '<sub>You can retrigger this bot by commenting **recheck** in this Pull Request.</sub> ';
740741
}
742+
text += '<sub>Posted by the **CLA Assistant Lite bot**.</sub>';
741743
return text;
742744
}
743745

@@ -1135,45 +1137,6 @@ function getPrSignComment() {
11351137
exports.getPrSignComment = getPrSignComment;
11361138

11371139

1138-
/***/ }),
1139-
1140-
/***/ 6718:
1141-
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
1142-
1143-
"use strict";
1144-
1145-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1146-
if (k2 === undefined) k2 = k;
1147-
var desc = Object.getOwnPropertyDescriptor(m, k);
1148-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1149-
desc = { enumerable: true, get: function() { return m[k]; } };
1150-
}
1151-
Object.defineProperty(o, k2, desc);
1152-
}) : (function(o, m, k, k2) {
1153-
if (k2 === undefined) k2 = k;
1154-
o[k2] = m[k];
1155-
}));
1156-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
1157-
Object.defineProperty(o, "default", { enumerable: true, value: v });
1158-
}) : function(o, v) {
1159-
o["default"] = v;
1160-
});
1161-
var __importStar = (this && this.__importStar) || function (mod) {
1162-
if (mod && mod.__esModule) return mod;
1163-
var result = {};
1164-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
1165-
__setModuleDefault(result, mod);
1166-
return result;
1167-
};
1168-
Object.defineProperty(exports, "__esModule", ({ value: true }));
1169-
exports.getPrSignComment = void 0;
1170-
const input = __importStar(__nccwpck_require__(3611));
1171-
function getPrSignComment() {
1172-
return input.getCustomPrSignComment() || "I have read the CLA Document and I hereby sign the CLA";
1173-
}
1174-
exports.getPrSignComment = getPrSignComment;
1175-
1176-
11771140
/***/ }),
11781141

11791142
/***/ 7351:

src/pullrequest/pullRequestCommentContent.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ function dco(signed: boolean, committerMap: CommitterMap): string {
5252
}
5353

5454
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>'
55+
text += '<sub>You can retrigger this bot by commenting **recheck** in this Pull Request. </sub>'
5656
}
57+
text += '<sub>Posted by the ****DCO Assistant Lite bot****.</sub>'
5758
return text
5859
}
5960

@@ -96,7 +97,8 @@ function cla(signed: boolean, committerMap: CommitterMap): string {
9697
}
9798

9899
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+
text += '<sub>You can retrigger this bot by commenting **recheck** in this Pull Request.</sub> '
100101
}
102+
text += '<sub>Posted by the **CLA Assistant Lite bot**.</sub>'
101103
return text
102104
}

0 commit comments

Comments
 (0)