From 9e5628c71b91070bec835098f421f3a83a58af45 Mon Sep 17 00:00:00 2001 From: CTFang Date: Thu, 2 May 2024 11:00:55 +0800 Subject: [PATCH 1/2] feat: Create commit-msg-check.yml --- .github/workflows/commit-msg-check.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/commit-msg-check.yml diff --git a/.github/workflows/commit-msg-check.yml b/.github/workflows/commit-msg-check.yml new file mode 100644 index 0000000..deac704 --- /dev/null +++ b/.github/workflows/commit-msg-check.yml @@ -0,0 +1,15 @@ +name: 'Commit Message Check' + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + name: Conventional Commits + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: webiny/action-conventional-commits@v1.3.0 From f46a8e39289abd48da9d0be65c1543e3813facd8 Mon Sep 17 00:00:00 2001 From: CTFang Date: Mon, 6 May 2024 13:29:42 +0000 Subject: [PATCH 2/2] fix: remove msg check when commit in main --- .github/workflows/commit-msg-check.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/commit-msg-check.yml b/.github/workflows/commit-msg-check.yml index deac704..4baa186 100644 --- a/.github/workflows/commit-msg-check.yml +++ b/.github/workflows/commit-msg-check.yml @@ -1,8 +1,6 @@ name: 'Commit Message Check' on: - push: - branches: [ main ] pull_request: branches: [ main ]