From 8c3963dfd771e0303a11f06e9c0809c81df26023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yago=20P=C3=A9rez=20V=C3=A1zquez?= Date: Mon, 21 Feb 2022 13:52:44 +0100 Subject: [PATCH] feat: Check if PR titles are conventional commit formatted (#340) * Add conventional commit check in PR titles * Add some guidelines about conventional commits to the PR template --- .github/PULL_REQUEST_TEMPLATE.md | 14 ++++++++++++++ .github/workflows/conventional-commit-check.yml | 17 +++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/conventional-commit-check.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 5cd936265..ae437303a 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,3 +1,17 @@ + + ## What it solves Resolves # diff --git a/.github/workflows/conventional-commit-check.yml b/.github/workflows/conventional-commit-check.yml new file mode 100644 index 000000000..c32009ba0 --- /dev/null +++ b/.github/workflows/conventional-commit-check.yml @@ -0,0 +1,17 @@ +name: 'Conventional commit check' + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}