From d930c1c7db1073507513833ec376826ea34535cb Mon Sep 17 00:00:00 2001 From: vprashar2929 Date: Tue, 27 Aug 2024 15:43:19 +0530 Subject: [PATCH] feat(ci): Add workflow to check commit message This commit adds a workflow to check the commit message making sure that all commit messages are following the conventional commits specification Signed-off-by: vprashar2929 --- .github/workflows/commit-msg.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/commit-msg.yml diff --git a/.github/workflows/commit-msg.yml b/.github/workflows/commit-msg.yml new file mode 100644 index 00000000..9461e67b --- /dev/null +++ b/.github/workflows/commit-msg.yml @@ -0,0 +1,16 @@ +name: Commit message check + +on: + pull_request: + +jobs: + check-commit-message: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Check commit message + uses: webiny/action-conventional-commits@v1.3.0 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}