From 24aebf0de03e79a9d6b7c8fd7ec21485373e999b Mon Sep 17 00:00:00 2001 From: Bimochan Shrestha Date: Mon, 27 Dec 2021 00:31:15 -0800 Subject: [PATCH] Update dist --- dist/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index ab0fd21..9a865b6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -8474,12 +8474,13 @@ function grabTicket(title) { * @returns {string} Updated body string. */ function appendLinkInDescription(context) { - const prevBody = context.payload.pull_request.body; + const prevBody = context.payload.pull_request.body || ''; const ticketNumber = grabTicket(context.payload.pull_request.title); if (!ticketNumber) { return; } + const updatedBody = `${prevBody} \n\n ----- \nJira link: ${ jirProjectUrl + '/' + ticketNumber }`;