Skip to content

Commit

Permalink
Update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
sbimochan committed Dec 27, 2021
1 parent e474dc6 commit 24aebf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}`;
Expand Down

0 comments on commit 24aebf0

Please sign in to comment.