From 598a43e118cab4871e22c491256c90a3aaea6b34 Mon Sep 17 00:00:00 2001 From: Niclas Thobaben Date: Sat, 9 Jul 2022 12:27:58 +0200 Subject: [PATCH] cleanup issue PR ref --- src/hooks/issuePrRef.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/issuePrRef.js b/src/hooks/issuePrRef.js index 572f4a8..434411b 100644 --- a/src/hooks/issuePrRef.js +++ b/src/hooks/issuePrRef.js @@ -17,10 +17,10 @@ module.exports = { let body = pull_request.body if(body.includes('> ')) { - body = body.replaceAll(/> .+<\/code>/g, `> issue #${issueId}`) + body = body.replaceAll(/\*\*ISS .+\*\*/g, `**ISS #${issueId}**`) }else { body += '\n\n' - body += `> issue #${issueId}` + body += `**ISS #${issueId}**` } const path = `/repos/${repository.full_name}/pulls/${pull_request.number}`