diff --git a/.changelog b/.changelog index 5568ab0..59564bc 100644 --- a/.changelog +++ b/.changelog @@ -1,8 +1,8 @@ ['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' diff --git a/README.md b/README.md index a01fb22..e943782 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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' => [ diff --git a/src/Configuration.php b/src/Configuration.php index 6e4aa36..e7b7519 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -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'], @@ -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);