From 54ee144c5e9e83b77d5ba2ac18cbd4f60194c5a0 Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Sun, 30 Oct 2022 17:35:00 +1100 Subject: [PATCH] chore: add conventional commit check for PRs By splitting the repo in multiple packages, it is going to be more difficult to manually maintain a changelog. Using conventional commit, we can automatically generate the changelog from PR titles. --- .github/workflows/conventional-commits.yml | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/conventional-commits.yml diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml new file mode 100644 index 0000000000..1130b5d60c --- /dev/null +++ b/.github/workflows/conventional-commits.yml @@ -0,0 +1,24 @@ +name: "Semantic PR" + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +jobs: + main: + name: Validate Pull Request Title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | + fix # Bug fix on prod code + feat # New feature on prod code + test # Only modify test or test utils + doc # Only modify docs/comments + chore # Anything else