diff --git a/dist/index.js b/dist/index.js index da993166..b941650b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3898,7 +3898,7 @@ IMPORTANT: Entire response must be in the language with ISO code: ${options.lang /* harmony export */ "oi": () => (/* binding */ RAW_SUMMARY_START_TAG), /* harmony export */ "rV": () => (/* binding */ RAW_SUMMARY_END_TAG) /* harmony export */ }); -/* unused harmony exports COMMENT_GREETING, IN_PROGRESS_START_TAG, IN_PROGRESS_END_TAG, DESCRIPTION_START_TAG, DESCRIPTION_END_TAG, COMMIT_ID_START_TAG, COMMIT_ID_END_TAG */ +/* unused harmony exports IN_PROGRESS_START_TAG, IN_PROGRESS_END_TAG, DESCRIPTION_START_TAG, DESCRIPTION_END_TAG, COMMIT_ID_START_TAG, COMMIT_ID_END_TAG */ /* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(2186); /* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(_actions_core__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _actions_github__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(5438); @@ -3911,7 +3911,6 @@ IMPORTANT: Entire response must be in the language with ISO code: ${options.lang // eslint-disable-next-line camelcase const context = _actions_github__WEBPACK_IMPORTED_MODULE_1__.context; const repo = context.repo; -const COMMENT_GREETING = `${(0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput)('bot_icon')} CodeRabbit`; const COMMENT_TAG = ''; const COMMENT_REPLY_TAG = ''; const SUMMARIZE_TAG = ''; @@ -3950,9 +3949,7 @@ class Commenter { if (!tag) { tag = COMMENT_TAG; } - const body = `${COMMENT_GREETING} - -${message} + const body = `${message} ${tag}`; if (mode === 'create') { @@ -4027,9 +4024,7 @@ ${tag}`; } reviewCommentsBuffer = []; async bufferReviewComment(path, startLine, endLine, message) { - message = `${COMMENT_GREETING} - -${message} + message = `${message} ${COMMENT_TAG}`; this.reviewCommentsBuffer.push({ @@ -4070,8 +4065,7 @@ ${COMMENT_TAG}`; } } async submitReview(pullNumber, commitId) { - const body = `${COMMENT_GREETING} -`; + const body = ``; if (this.reviewCommentsBuffer.length === 0) { // Submit empty review with statusMsg (0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.info)(`Submitting empty review for PR #${pullNumber}`); @@ -4175,9 +4169,7 @@ ${COMMENT_TAG}`; } } async reviewCommentReply(pullNumber, topLevelComment, message) { - const reply = `${COMMENT_GREETING} - -${message} + const reply = `${message} ${COMMENT_REPLY_TAG} `; diff --git a/src/commenter.ts b/src/commenter.ts index cbf1f3b7..9c109076 100644 --- a/src/commenter.ts +++ b/src/commenter.ts @@ -7,8 +7,6 @@ import {octokit} from './octokit' const context = github_context const repo = context.repo -export const COMMENT_GREETING = `${getInput('bot_icon')} CodeRabbit` - export const COMMENT_TAG = '' @@ -66,9 +64,7 @@ export class Commenter { tag = COMMENT_TAG } - const body = `${COMMENT_GREETING} - -${message} + const body = `${message} ${tag}` @@ -183,9 +179,7 @@ ${tag}` endLine: number, message: string ) { - message = `${COMMENT_GREETING} - -${message} + message = `${message} ${COMMENT_TAG}` this.reviewCommentsBuffer.push({ @@ -232,8 +226,7 @@ ${COMMENT_TAG}` } async submitReview(pullNumber: number, commitId: string) { - const body = `${COMMENT_GREETING} -` + const body = `` if (this.reviewCommentsBuffer.length === 0) { // Submit empty review with statusMsg @@ -365,9 +358,7 @@ ${COMMENT_TAG}` topLevelComment: any, message: string ) { - const reply = `${COMMENT_GREETING} - -${message} + const reply = `${message} ${COMMENT_REPLY_TAG} `