- introduce experimental (light) commit based changelog generation mode

- FIX https://github.com/mikepenz/release-changelog-builder-action/issues/141
  - this is not fully supported and not documented as it lacks big amounts of the features we know and love
- npm install
- recompile dist
This commit is contained in:
Mike Penz
2021-01-07 15:31:18 +01:00
parent cb75836b8d
commit d66aa0a4e5
10 changed files with 11116 additions and 4265 deletions
+33
View File
@@ -14,6 +14,7 @@ it('Should match generated changelog (unspecified fromTag)', async () => {
'v0.0.3',
false,
false,
false,
configuration
)
@@ -38,6 +39,7 @@ it('Should use empty placeholder', async () => {
'v0.0.3',
false,
false,
false,
configuration
)
@@ -60,6 +62,7 @@ it('Should fill empty placeholders', async () => {
'v0.0.3',
false,
false,
false,
configuration
)
@@ -84,6 +87,7 @@ it('Should fill `template` placeholders', async () => {
'v0.0.3',
false,
false,
false,
configuration
)
@@ -108,6 +112,7 @@ it('Should fill `template` placeholders, ignore', async () => {
'v0.9.5',
false,
false,
false,
configuration
)
@@ -132,6 +137,7 @@ it('Uncategorized category', async () => {
'v0.9.5',
false,
false,
false,
configuration
)
@@ -141,3 +147,30 @@ it('Uncategorized category', async () => {
`## 🚀 Features\n\n- Enhance sorting by using proper semver\n - PR: #51\n\n## 📦 Uncategorized\n\n- Bump @types/node from 14.11.8 to 14.11.10\n - PR: #47\n- Adjust code to move fromTag resolving to main.ts\n - PR: #48\n- Improve test cases\n - PR: #49\n- dev -> main\n - PR: #52\n- Update package.json to updated description\n - PR: #53\n- dev -> main\n - PR: #54\n\n\n\nUncategorized:\n- Bump @types/node from 14.11.8 to 14.11.10\n - PR: #47\n- Adjust code to move fromTag resolving to main.ts\n - PR: #48\n- Improve test cases\n - PR: #49\n- dev -> main\n - PR: #52\n- Update package.json to updated description\n - PR: #53\n- dev -> main\n - PR: #54\n\n\nIgnored:\n- New additional placeholders for \`template\` and \`empty_template\`\n - PR: #50\n\n\n6\n1`
)
})
it('Verify commit based changelog', async () => {
const configuration = resolveConfiguration(
'',
'configs_test/configuration_commits.json'
)
const releaseNotesBuilder = new ReleaseNotesBuilder(
null,
'.',
'mikepenz',
'release-changelog-builder-action',
'v0.0.1',
'v0.0.3',
false,
false,
true,
configuration
)
const changeLog = await releaseNotesBuilder.build()
console.log(changeLog)
expect(changeLog).toStrictEqual(
`## 📦 Uncategorized\n\n- - introduce proper approach to retrieve tag before a given tag\n\n- - configure test case\n\n- Merge pull request #10 from mikepenz/feature/specify_test\n\n\n\n\nUncategorized:\n- - introduce proper approach to retrieve tag before a given tag\n\n- - configure test case\n\n- Merge pull request #10 from mikepenz/feature/specify_test\n\n\n\nIgnored:\n\n\n3\n0`
)
})