Skip to content

Commit

Permalink
fix: User Defined Body Should Not Be Undefined (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
therynamo committed Mar 1, 2021
1 parent b127cbd commit b4fb65d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/handlers/postToPRHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ const customBody = config.get('github:pr_text');

module.exports = async function postReleaseVersionToPR({ owner, repo, number, head }) {
const url = `${head}](${ghUrl}/${owner}/${repo}/releases/tag/${head}`;
const userDefinedBody = customBody || '';

const body = `:rocket: Posted by [**Captain's Log**](https://target.github.io/captains-log/):
${customBody}
${userDefinedBody}
This pull request was released as a part of [Release: ${url}).
`;
Expand Down

0 comments on commit b4fb65d

Please sign in to comment.