diff --git a/packages/cli/src/run.ts b/packages/cli/src/run.ts index 46a8688d6c..b885e62758 100644 --- a/packages/cli/src/run.ts +++ b/packages/cli/src/run.ts @@ -13,7 +13,6 @@ import { githubCreatePullRequestReviews, githubUpdatePullRequestDescription, githubParseEnv, - githubQueryEnvUsingCli, } from "../../core/src/github" import { HTTPS_REGEX, diff --git a/packages/core/src/github.ts b/packages/core/src/github.ts index 61256f91ea..3131bd3408 100644 --- a/packages/core/src/github.ts +++ b/packages/core/src/github.ts @@ -162,15 +162,17 @@ export function mergeDescription( const start = body.indexOf(tag) const end = body.indexOf(endTag) + const header = "
" if (start > -1 && end > -1 && start < end) { body = body.slice(0, start + tag.length) + + header + sep + text + sep + body.slice(end) } else { - body = body + sep + tag + sep + text + sep + endTag + sep + body = body + sep + tag + header + sep + text + sep + endTag + sep } return body } @@ -190,7 +192,7 @@ export function appendGeneratedComment( ) { const { message, code, severity } = annotation return prettifyMarkdown( - `
+ ` ${message} ${generatedByFooter(script, info, code)}` )