From d0a3de9f71b848f38a56a52998bbd77314fbbf40 Mon Sep 17 00:00:00 2001 From: jfuen10 Date: Thu, 25 Apr 2024 13:08:23 -0600 Subject: [PATCH] feat: add conventional commit workflow (#5) add conventional commit workflow --- .../workflows/conventional-commit-check.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/conventional-commit-check.yaml diff --git a/.github/workflows/conventional-commit-check.yaml b/.github/workflows/conventional-commit-check.yaml new file mode 100644 index 0000000..4a41d25 --- /dev/null +++ b/.github/workflows/conventional-commit-check.yaml @@ -0,0 +1,22 @@ +name: "Conventional Commit Check" + +on: + pull_request: + branches: + - main + types: + - opened + - reopened + - edited + - synchronize +jobs: + pr: + name: Validate PR title + if: contains(fromJSON('["pull_request", "pull_request_target"]'), github.event_name) + runs-on: ubuntu-22.04 + permissions: + pull-requests: read + steps: + - uses: amannn/action-semantic-pull-request@e9fabac35e210fea40ca5b14c0da95a099eff26f + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file