From 3c4d1810579617b580326fdc3cde8bdfd08e0bd3 Mon Sep 17 00:00:00 2001 From: John Boyes Date: Wed, 29 Jul 2020 11:18:24 +0700 Subject: [PATCH] Check commit messages for correctness (#13) Using a third party GitHub Action[1], which checks commit messages based on the guidelines set out by Chris Beams[2] [1] https://github.com/mristin/opinionated-commit-message [2] https://chris.beams.io/posts/git-commit/ --- .github/workflows/check-commit-message.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/check-commit-message.yml diff --git a/.github/workflows/check-commit-message.yml b/.github/workflows/check-commit-message.yml new file mode 100644 index 0000000..6631ee0 --- /dev/null +++ b/.github/workflows/check-commit-message.yml @@ -0,0 +1,18 @@ +--- +name: 'Check commit message style' +on: # yamllint disable-line rule:truthy + pull_request: + types: + - opened + - edited + - reopened + - synchronize + push: + +jobs: + check-commit-message-style: + name: Check commit message style + runs-on: ubuntu-latest + steps: + - name: Check + uses: mristin/opinionated-commit-message@v2.0.0