From d449236379cb8c7585d015ea6dd3d433c0de1b14 Mon Sep 17 00:00:00 2001 From: Niclas Thobaben Date: Sat, 9 Jul 2022 12:31:23 +0200 Subject: [PATCH] cleanup issue PR ref --- src/hooks/issuePrRef.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/issuePrRef.js b/src/hooks/issuePrRef.js index 434411b..10143dd 100644 --- a/src/hooks/issuePrRef.js +++ b/src/hooks/issuePrRef.js @@ -17,7 +17,7 @@ module.exports = { let body = pull_request.body if(body.includes('> ')) { - body = body.replaceAll(/\*\*ISS .+\*\*/g, `**ISS #${issueId}**`) + body = body.replaceAll(/\*\*ISS #\d+\*\*/g, `**ISS #${issueId}**`) }else { body += '\n\n' body += `**ISS #${issueId}**`