From 5dce4e85f595c2b5ed1672d85cf5aa02b1782a74 Mon Sep 17 00:00:00 2001 From: Derek Su Date: Mon, 29 Jul 2024 16:21:41 +0800 Subject: [PATCH] chore(ci): add Conventional Commits GitHub Action Longhorn 8824 Signed-off-by: Derek Su --- conventional_commits.yml | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 conventional_commits.yml diff --git a/conventional_commits.yml b/conventional_commits.yml new file mode 100644 index 0000000..20ed492 --- /dev/null +++ b/conventional_commits.yml @@ -0,0 +1,41 @@ +name: Conventional Commits + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + - reopened + +permissions: + pull-requests: read + +jobs: + commit-lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Lint Commits + uses: wagoid/commitlint-github-action@v6 + - name: Lint Pull Request + uses: amannn/action-semantic-pull-request@v5.5.3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | + feat + fix + docs + style + refactor + perf + test + chore + vendor + build + ci + revert + BREAKING