From 4f4166b5d50f68f9f90c7f30fe6a04045a50648b Mon Sep 17 00:00:00 2001 From: Dominik Aschbacher Date: Mon, 5 Sep 2022 11:42:35 +0200 Subject: [PATCH] Add GitLint action to workflows --- .github/workflows/linters.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/linters.yaml diff --git a/.github/workflows/linters.yaml b/.github/workflows/linters.yaml new file mode 100644 index 0000000..60d02fe --- /dev/null +++ b/.github/workflows/linters.yaml @@ -0,0 +1,17 @@ +name: Linters + +on: + pull_request: {} + push: {} + +jobs: + gitlint: + runs-on: ubuntu-latest + name: GitLint + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Lint commits, branches, and pull requests + uses: ./ + with: + re-branch-name: ^((feature|bug|hotfix|release)\/[a-z\-0-9]+|main)$