From 1162d96fcb4fc9a802abe4f48f2f77052b3195da Mon Sep 17 00:00:00 2001 From: Derek Su Date: Mon, 29 Jul 2024 06:08:22 +0000 Subject: [PATCH] chore(ci): add Conventional Commits GitHub Action Longhorn 8824 Signed-off-by: Derek Su --- .github/workflows/conventional_commits.yml | 41 ++++++++++++++++++++++ 1 file changed, 41 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..343363615a --- /dev/null +++ b/.github/workflows/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.CUSTOM_GITHUB_TOKEN }} + with: + types: | + feat + fix + docs + style + refactor + perf + test + chore + vendor + build + ci + revert + BREAKING