- update the default categories to include the uncategorized category

This commit is contained in:
Mike Penz
2023-06-11 20:07:14 +00:00
committed by GitHub
parent 2486bf97f4
commit 48896744b7
7 changed files with 8590 additions and 23889 deletions
+1
View File
@@ -144,6 +144,7 @@ it('Should fill `template` placeholders', async () => {
it('Should fill `template` placeholders, ignore', async () => {
const configuration = mergeConfiguration(undefined, resolveConfiguration('', 'configs_test/configuration_empty_all_placeholders.json'))
configuration.categories.pop() // drop `uncategorized` category
const releaseNotesBuilder = new ReleaseNotesBuilder(
null,
null,
+3
View File
@@ -376,6 +376,7 @@ it('Match multiple labels exhaustive for category', async () => {
it('Deduplicate duplicated PRs', async () => {
const customConfig = Object.assign({}, DefaultConfiguration)
customConfig.categories.pop() // drop `uncategorized` category
customConfig.duplicate_filter = {
pattern: '\\[ABC-....\\]',
on_property: 'title',
@@ -388,6 +389,7 @@ it('Deduplicate duplicated PRs', async () => {
it('Deduplicate duplicated PRs DESC', async () => {
const customConfig = Object.assign({}, DefaultConfiguration)
customConfig.categories.pop() // drop `uncategorized` category
customConfig.sort = 'DESC'
customConfig.duplicate_filter = {
pattern: '\\[ABC-....\\]',
@@ -439,6 +441,7 @@ it('Use empty_content for empty category', async () => {
it('Commit SHA-1 in commitMode', async () => {
const customConfig = Object.assign({}, DefaultConfiguration)
customConfig.categories.pop() // drop `uncategorized` category
customConfig.sort = 'DESC'
customConfig.pr_template = '${{MERGE_SHA}}'
Generated Vendored
+8577 -23884
View File
File diff suppressed because one or more lines are too long
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
Generated Vendored
+3 -3
View File
@@ -541,9 +541,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
github-pr-collector
Apache 2.0
has-flag
MIT
MIT License
@@ -700,6 +697,9 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
pr-collector
Apache 2.0
semver
ISC
The ISC License
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "release-changelog-builder-action",
"version": "v3.0.0",
"version": "v4.0.0",
"private": true,
"description": "A GitHub action that builds your release notes / changelog fast, easy and exactly the way you want.",
"main": "lib/main.js",
+4
View File
@@ -85,6 +85,10 @@ export const DefaultConfiguration: Configuration = {
{
title: '## 🧪 Tests',
labels: ['test']
},
{
title: '## 📦 Uncategorized',
labels: []
}
], // the categories to support for the ordering
ignore_labels: ['ignore'], // list of lables being ignored from the changelog