From 2225a45aca78955cc59c78fd98ea546d4076de14 Mon Sep 17 00:00:00 2001 From: 0xcodercrane <108444211+0xcodercrane@users.noreply.github.com> Date: Sun, 24 Sep 2023 22:11:01 +0800 Subject: [PATCH] feat: assignee comment --- src/handlers/payout/action.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/payout/action.ts b/src/handlers/payout/action.ts index 2ec46ad28..3f50b4c40 100644 --- a/src/handlers/payout/action.ts +++ b/src/handlers/payout/action.ts @@ -498,11 +498,11 @@ export const handleIssueClosed = async ( logger.info(`Skipping to generate a permit url for missing accounts. fallback: ${JSON.stringify(pullRequestReviewersReward.fallbackReward)}`); } + if (assigneeComment) await addCommentToIssue(assigneeComment + comments.promotionComment, issueNumber); if (commentersComment && !isEmpty(commentersReward)) await addCommentToIssue(commentersComment, issueNumber); if (creatorComment) await addCommentToIssue(creatorComment, issueNumber); if (pullRequestReviewerComment && !isEmpty(prReviewersReward)) await addCommentToIssue(pullRequestReviewerComment, issueNumber); if (mergedComment) await addCommentToIssue(mergedComment, issueNumber); - if (assigneeComment) await addCommentToIssue(assigneeComment + comments.promotionComment, issueNumber); await deleteLabel(incentivesCalculation.issueDetailed.priceLabel); await addLabelToIssue("Permitted");