From 7db6dea08cba7c72f936ac946cbc6ef47271e6a6 Mon Sep 17 00:00:00 2001 From: Ardalan Amini Date: Sun, 30 Apr 2023 02:06:18 +0330 Subject: [PATCH] refactor!: use conventional commit types by default Signed-off-by: Ardalan Amini --- README.md | 32 ++++++++++++++------------------ action.yml | 15 ++++++--------- 2 files changed, 20 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index a4ff805..90100bb 100644 --- a/README.md +++ b/README.md @@ -67,23 +67,22 @@ ${{ github.token }} Commit types. +> The default value is based on the [Conventional Commits Specification](https://www.conventionalcommits.org/en/v1.0.0) + _Default:_ ```yaml -breaking: Breaking Changes feat: New Features fix: Bug Fixes -revert: Reverts +build: Build System & Dependencies perf: Performance Improvements -refactor: Refactors -deps: Dependencies -docs: Documentation Changes -style: Code Style Changes -build: Build System -ci: Continuous Integration +docs: Documentation test: Tests +refactor: Refactors chore: Chores -other: Other Changes +ci: CI +style: Code Style +revert: Reverts ``` #### `default-commit-type` @@ -243,20 +242,17 @@ Using with custom inputs: with: github-token: ${{ github.token }} commit-types: | - breaking: Breaking Changes feat: New Features fix: Bug Fixes - revert: Reverts + build: Build System & Dependencies perf: Performance Improvements - refactor: Refactors - deps: Dependencies - docs: Documentation Changes - style: Code Style Changes - build: Build System - ci: Continuous Integration + docs: Documentation test: Tests + refactor: Refactors chore: Chores - other: Other Changes + ci: CI + style: Code Style + revert: Reverts default-commit-type: Other Changes release-name: v1.0.0 mention-authors: true diff --git a/action.yml b/action.yml index 11a22b9..d1c2b72 100644 --- a/action.yml +++ b/action.yml @@ -19,20 +19,17 @@ inputs: description: Commit types required: true default: | - breaking: Breaking Changes feat: New Features fix: Bug Fixes - revert: Reverts + build: Build System & Dependencies perf: Performance Improvements - refactor: Refactors - deps: Dependencies - docs: Documentation Changes - style: Code Style Changes - build: Build System - ci: Continuous Integration + docs: Documentation test: Tests + refactor: Refactors chore: Chores - other: Other Changes + ci: CI + style: Code Style + revert: Reverts default-commit-type: description: Default commit type to be used when the commit message matches none of the defined types