Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
test3
Browse files Browse the repository at this point in the history
  • Loading branch information
omerfcngr committed Jan 15, 2024
1 parent 969478d commit d36d97c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 26 deletions.
18 changes: 5 additions & 13 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 4 additions & 13 deletions src/commenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
'<!-- This is an auto-generated comment by OSS CodeRabbit -->'

Expand Down Expand Up @@ -66,9 +64,7 @@ export class Commenter {
tag = COMMENT_TAG
}

const body = `${COMMENT_GREETING}
${message}
const body = `${message}
${tag}`

Expand Down Expand Up @@ -183,9 +179,7 @@ ${tag}`
endLine: number,
message: string
) {
message = `${COMMENT_GREETING}
${message}
message = `${message}
${COMMENT_TAG}`
this.reviewCommentsBuffer.push({
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -365,9 +358,7 @@ ${COMMENT_TAG}`
topLevelComment: any,
message: string
) {
const reply = `${COMMENT_GREETING}
${message}
const reply = `${message}
${COMMENT_REPLY_TAG}
`
Expand Down

0 comments on commit d36d97c

Please sign in to comment.