Skip to content

Commit

Permalink
fix: add chores to not notable types
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Cesarato committed Jan 19, 2021
1 parent 8970d4e commit 2c4d1cd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .changelog
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

return [
// Enable docs type
'excludedTypes' => ['refactor', 'style', 'build', 'ci', 'revert', 'test'],
// Disable not notables except docs type
'excludedTypes' => ['build', 'chore', 'ci', 'refactor', 'revert', 'style', 'test'],
// Ignore changelogs
'ignorePatterns' => [
'/chore\(changelog\)[:].*/i'
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Create a file named `.changelog` on the root of your project or on the working d

> **Note:** If you don't need to customize some settings just omit it from the configuration file
> **Note:** The default excluded types are: `build`, `ci`, `docs`, `refactor`, `revert`, `style`, `test`
> **Note:** The default excluded types are: `build`, `chore`, `ci`, `docs`, `refactor`, `revert`, `style`, `test`
Create your configuration settings with the help of the following example.

Expand All @@ -78,7 +78,7 @@ return [
],
],
// Exclude not notables types (following types are the default excluded types)
'excludedTypes' => ['docs', 'refactor', 'style', 'build', 'ci', 'revert', 'test'],
'excludedTypes' => ['build', 'chore', 'ci', 'docs', 'refactor', 'revert', 'style', 'test'],
// File changelog (relative to the working dir)
'fileName' => 'docs/CHANGELOG.md',
'ignorePatterns' => [
Expand Down
12 changes: 2 additions & 10 deletions src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Configuration
'fix' => ['label' => 'Bug Fixes', 'description' => 'Issues resolution'],
'refactor' => ['label' => 'Code Refactoring', 'description' => 'A code change that neither fixes a bug nor adds a feature'],
'style' => ['label' => 'Styles', 'description' => 'Changes that do not affect the meaning of the code'],
'tests' => ['label' => 'Tests', 'description' => 'Adding missing tests or correcting existing tests'],
'test' => ['label' => 'Tests', 'description' => 'Adding missing tests or correcting existing tests'],
'build' => ['label' => 'Builds', 'description' => 'Changes that affect the build system or external dependencies '],
'ci' => ['label' => 'Continuous Integrations', 'description' => 'Changes to CI configuration files and scripts'],
'docs' => ['label' => 'Documentation', 'description' => 'Documentation changes'],
Expand Down Expand Up @@ -77,15 +77,7 @@ public function fromArray(array $array)
'headerDescription' => $this->headerDescription,
'fileName' => $this->fileName,
'types' => $this->types,
'excludedTypes' => [
'refactor',
'style',
'build',
'ci',
'revert',
'test',
'docs',
],
'excludedTypes' => ['build', 'chore', 'ci', 'docs', 'refactor', 'revert', 'style', 'test'],
];

$params = array_replace_recursive($defaults, $array);
Expand Down

0 comments on commit 2c4d1cd

Please sign in to comment.