From 8ee0bdb6a6e1e8653f5e2afd7c05179e288056a6 Mon Sep 17 00:00:00 2001 From: Kristian Kraljic Date: Mon, 8 Feb 2021 09:39:24 +0100 Subject: [PATCH] ci: Add commitlint GitHub workflow commitlint [1] will validate the commit message when a pull request is created. A GitHub action was added to the repository, see [2]. [1] https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/config-conventional [2] https://github.com/wagoid/commitlint-github-action --- .github/workflows/commitlint.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/commitlint.yml diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml new file mode 100644 index 00000000..83916796 --- /dev/null +++ b/.github/workflows/commitlint.yml @@ -0,0 +1,11 @@ +name: Lint Commit Messages +on: [pull_request] + +jobs: + commitlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: wagoid/commitlint-github-action@v2 \ No newline at end of file