Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit b536b0e

Browse files
committed
Update order of fields in payment receipt message.
1 parent 894a229 commit b536b0e

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

services/GithubService.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,15 +248,14 @@ async function markIssueAsPaid(copilot, repoFullName, number, challengeId, exist
248248
.push(config.FIX_ACCEPTED_ISSUE_LABEL, config.PAID_ISSUE_LABEL).value();
249249
try {
250250
await github.issues.edit({owner, repo, number, labels});
251-
let commentMessage = '```\n';
251+
let commentMessage = '';
252+
commentMessage += `Payment task has been updated: ${config.TC_OR_DETAIL_LINK}${challengeId}\n`;
252253
commentMessage += '*Payments Complete*\n';
253254
commentMessage += `Winner: ${winner}\n`;
254255
if (createCopilotPayments) {
255256
commentMessage += `Copilot: ${copilot.topcoderUsername}\n`;
256257
}
257-
commentMessage += '```\n';
258-
commentMessage += `Payment task has been updated: ${config.TC_OR_DETAIL_LINK}${challengeId}`;
259-
258+
260259
const body = helper.prepareAutomatedComment(commentMessage, copilot);
261260
await github.issues.createComment({owner, repo, number, body});
262261
} catch (err) {

services/GitlabService.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,15 +209,15 @@ async function markIssueAsPaid(copilot, projectId, issueId, challengeId, existLa
209209
.push(config.FIX_ACCEPTED_ISSUE_LABEL, config.PAID_ISSUE_LABEL).value();
210210
try {
211211
await gitlab.projects.issues.edit(projectId, issueId, {labels: labels.join(',')});
212-
let commentMessage = '```\n';
212+
let commentMessage = '';
213+
214+
commentMessage += `Payment task has been updated: ${config.TC_OR_DETAIL_LINK}${challengeId}\n`;
213215
commentMessage += '*Payments Complete*\n';
214216
commentMessage += `Winner: ${winner}\n`;
215217
if (createCopilotPayments) {
216218
commentMessage += `Copilot: ${copilot.topcoderUsername}\n`;
217219
}
218-
commentMessage += '```\n';
219-
commentMessage += `Payment task has been updated: ${config.TC_OR_DETAIL_LINK}${challengeId}`;
220-
220+
221221
const body = helper.prepareAutomatedComment(commentMessage, copilot);
222222
await gitlab.projects.issues.notes.create(projectId, issueId, {body});
223223
} catch (err) {

0 commit comments

Comments
 (0)