Skip to content

Commit

Permalink
fix: add newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Nov 25, 2020
1 parent 686598e commit 7159a6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ export async function run(): Promise<void> {
const logURL = `${process.env['GITHUB_SERVER_URL']}/${process.env['GITHUB_REPOSITORY']}/actions/runs/${process.env['GITHUB_RUN_ID']}`;

// Merge comment body
const commentMain = config.labels[labelIndex][`${labelEvent}`][`${eventType}`].body;
const commentHeader = config.comment.header;
const commentFooter = config.comment.footer;
const commentMain = config.labels[labelIndex][`${labelEvent}`][`${eventType}`].body + '\n\n';
const commentHeader = config.comment.header + '\n\n';
const commentFooter = config.comment.footer + '\n\n';
const commentFooterLinks =
`\n\n<div align="right">` +
`<div align="right">` +
`<a href="${logURL}">Log</a>` +
` | ` +
`<a href="https://github.com/peaceiris/actions-label-commenter#readme">Bot Usage</a>` +
Expand Down

0 comments on commit 7159a6f

Please sign in to comment.