Merge pull request #1137 from mikepenz/feature/update_default_categories
Include `uncategorized` category in default categories
This commit is contained in:
@@ -100,7 +100,7 @@ Below is a complete example showcasing how to define a build, which is executed
|
|||||||
- Build changelog, given the tag
|
- Build changelog, given the tag
|
||||||
- Create release on GitHub - specifying body with constructed changelog
|
- Create release on GitHub - specifying body with constructed changelog
|
||||||
|
|
||||||
> Note: PRs will only show up in the changelog if assigned one of the default label categories "feature", "fix" or "test"
|
> Note: Pre v4 PRs will only show up in the changelog if assigned one of the default label categories "feature", "fix" or "test". Starting with v4 these PRs will be in the `Uncategorized` section.
|
||||||
|
|
||||||
<details><summary><b>Example</b></summary>
|
<details><summary><b>Example</b></summary>
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -144,6 +144,7 @@ it('Should fill `template` placeholders', async () => {
|
|||||||
|
|
||||||
it('Should fill `template` placeholders, ignore', async () => {
|
it('Should fill `template` placeholders, ignore', async () => {
|
||||||
const configuration = mergeConfiguration(undefined, resolveConfiguration('', 'configs_test/configuration_empty_all_placeholders.json'))
|
const configuration = mergeConfiguration(undefined, resolveConfiguration('', 'configs_test/configuration_empty_all_placeholders.json'))
|
||||||
|
configuration.categories.pop() // drop `uncategorized` category
|
||||||
const releaseNotesBuilder = new ReleaseNotesBuilder(
|
const releaseNotesBuilder = new ReleaseNotesBuilder(
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
|
|||||||
@@ -133,6 +133,7 @@ nhoelzl
|
|||||||
|
|
||||||
it('Should match ordered ASC', async () => {
|
it('Should match ordered ASC', async () => {
|
||||||
const configuration = mergeConfiguration(undefined, resolveConfiguration('', 'configs_test/configuration_asc.json'))
|
const configuration = mergeConfiguration(undefined, resolveConfiguration('', 'configs_test/configuration_asc.json'))
|
||||||
|
configuration.categories.pop() // drop `uncategorized` category
|
||||||
const options = {
|
const options = {
|
||||||
owner: 'mikepenz',
|
owner: 'mikepenz',
|
||||||
repo: 'release-changelog-builder-action',
|
repo: 'release-changelog-builder-action',
|
||||||
@@ -155,6 +156,7 @@ it('Should match ordered ASC', async () => {
|
|||||||
|
|
||||||
it('Should match ordered DESC', async () => {
|
it('Should match ordered DESC', async () => {
|
||||||
const configuration = mergeConfiguration(undefined, resolveConfiguration('', 'configs_test/configuration_desc.json'))
|
const configuration = mergeConfiguration(undefined, resolveConfiguration('', 'configs_test/configuration_desc.json'))
|
||||||
|
configuration.categories.pop() // drop `uncategorized` category
|
||||||
const options = {
|
const options = {
|
||||||
owner: 'mikepenz',
|
owner: 'mikepenz',
|
||||||
repo: 'release-changelog-builder-action',
|
repo: 'release-changelog-builder-action',
|
||||||
|
|||||||
@@ -376,6 +376,7 @@ it('Match multiple labels exhaustive for category', async () => {
|
|||||||
|
|
||||||
it('Deduplicate duplicated PRs', async () => {
|
it('Deduplicate duplicated PRs', async () => {
|
||||||
const customConfig = Object.assign({}, DefaultConfiguration)
|
const customConfig = Object.assign({}, DefaultConfiguration)
|
||||||
|
customConfig.categories.pop() // drop `uncategorized` category
|
||||||
customConfig.duplicate_filter = {
|
customConfig.duplicate_filter = {
|
||||||
pattern: '\\[ABC-....\\]',
|
pattern: '\\[ABC-....\\]',
|
||||||
on_property: 'title',
|
on_property: 'title',
|
||||||
@@ -388,6 +389,7 @@ it('Deduplicate duplicated PRs', async () => {
|
|||||||
|
|
||||||
it('Deduplicate duplicated PRs DESC', async () => {
|
it('Deduplicate duplicated PRs DESC', async () => {
|
||||||
const customConfig = Object.assign({}, DefaultConfiguration)
|
const customConfig = Object.assign({}, DefaultConfiguration)
|
||||||
|
customConfig.categories.pop() // drop `uncategorized` category
|
||||||
customConfig.sort = 'DESC'
|
customConfig.sort = 'DESC'
|
||||||
customConfig.duplicate_filter = {
|
customConfig.duplicate_filter = {
|
||||||
pattern: '\\[ABC-....\\]',
|
pattern: '\\[ABC-....\\]',
|
||||||
|
|||||||
+8577
-23884
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+3
-3
@@ -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.
|
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
github-pr-collector
|
|
||||||
Apache 2.0
|
|
||||||
|
|
||||||
has-flag
|
has-flag
|
||||||
MIT
|
MIT
|
||||||
MIT License
|
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.
|
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
pr-collector
|
||||||
|
Apache 2.0
|
||||||
|
|
||||||
semver
|
semver
|
||||||
ISC
|
ISC
|
||||||
The ISC License
|
The ISC License
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "release-changelog-builder-action",
|
"name": "release-changelog-builder-action",
|
||||||
"version": "v3.0.0",
|
"version": "v4.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "A GitHub action that builds your release notes / changelog fast, easy and exactly the way you want.",
|
"description": "A GitHub action that builds your release notes / changelog fast, easy and exactly the way you want.",
|
||||||
"main": "lib/main.js",
|
"main": "lib/main.js",
|
||||||
|
|||||||
@@ -85,6 +85,10 @@ export const DefaultConfiguration: Configuration = {
|
|||||||
{
|
{
|
||||||
title: '## 🧪 Tests',
|
title: '## 🧪 Tests',
|
||||||
labels: ['test']
|
labels: ['test']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '## 📦 Uncategorized',
|
||||||
|
labels: []
|
||||||
}
|
}
|
||||||
], // the categories to support for the ordering
|
], // the categories to support for the ordering
|
||||||
ignore_labels: ['ignore'], // list of lables being ignored from the changelog
|
ignore_labels: ['ignore'], // list of lables being ignored from the changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user