Compare commits

..

No commits in common. "main" and "review-comments" have entirely different histories.

2 changed files with 2 additions and 9 deletions

View File

@ -32,4 +32,4 @@ import { something } from "@workshop/WHATEVER_YOU_WANT"
## How do I run the tests?
😂😂😂😂😂
😂😂😂

View File

@ -106,7 +106,7 @@ export class PRHandler {
static formatPrBody(pullRequest: Gitea.PullRequest, repositoryFullName: string): string {
const body = pullRequest.body || "_empty_"
let message = `
return `
> ### [${pullRequest.title}](<${pullRequest.html_url}>)
> **${repositoryFullName}**
>
@ -115,13 +115,6 @@ export class PRHandler {
.map((line) => `> ${line}`)
.join("\n")}
`
const maxMessageSize = 2000
const truncateMessage = `\n_message truncated. View full PR on Gitea_`
if (message.length < maxMessageSize) return message
return message.slice(0, maxMessageSize - 1 - truncateMessage.length) + truncateMessage
}
}