From 58fdc4bd679ddd3ba0bcea1972d2d983b54e15ae Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 4 Mar 2025 10:54:15 +0100 Subject: [PATCH] =?UTF-8?q?ci(#202):=20=F0=9F=91=B7=20Add=20Conventional?= =?UTF-8?q?=20Commit=20Validation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/auto-release.yml | 2 +- .github/workflows/pr-cc.yml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pr-cc.yml diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index afb8b46..eea52b7 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -1,5 +1,5 @@ name: Automatic Release -run-name: Release a new version of the Icons on PR's merging +run-name: Release a new version of the icon pack on PR's merging on: pull_request: diff --git a/.github/workflows/pr-cc.yml b/.github/workflows/pr-cc.yml new file mode 100644 index 0000000..b84422b --- /dev/null +++ b/.github/workflows/pr-cc.yml @@ -0,0 +1,16 @@ +name: PR Conventional Commit Validation +run-name: Enforce that PR name follow Conventional Commits + +on: + pull_request: + types: [opened, synchronize, reopened, edited] + +jobs: + validate-pr-title: + runs-on: ubuntu-latest + steps: + - name: PR Conventional Commit Validation + uses: ytanikin/PRConventionalCommits@1 + with: + task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]' + add_label: 'false' \ No newline at end of file