Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Commit

Permalink
Merge pull request #24 from etcdigital/v2.2
Browse files Browse the repository at this point in the history
v2.2
  • Loading branch information
etc-tiago authored Jul 14, 2020
2 parents ea96def + 3cdab62 commit 2c2e59a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pull-request-changelog",
"version": "2.1.0",
"version": "2.2.0",
"description": "Github action that automatically generates changelog when PR is opened/updated",
"main": "dist/index.js",
"scripts": {
Expand Down
7 changes: 4 additions & 3 deletions src/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ const prepareOutput = (sha, contentObject) => {
scope: heading || 'no-scope',
message: `<details>
<summary>${sha.substr(0, 7)} - ${showPrefix}${message}</summary>
${breakline}#### Changed files${breakline}
${contentObject.files.map((file) => `- ${file}`).join('\n')}
${breakline}#### Changed files${breakline}${contentObject.files
.map((file) => `- ${file}`)
.join('\n')}
</details>`,
});
};
Expand All @@ -62,7 +63,7 @@ export default function MakeTemplate(commits): string {

let testLogs = changes['test'];
if (testLogs) {
changesTemplate.push(getMarkdownOfHead('## 🧪 Tests$', testLogs));
changesTemplate.push(getMarkdownOfHead('## 🧪 Tests', testLogs));
}

const ciLogs = changes['ci'];
Expand Down

0 comments on commit 2c2e59a

Please sign in to comment.