From 12608937674c1102865f0c88a384a8f5339e3287 Mon Sep 17 00:00:00 2001 From: Ethan Lowman Date: Fri, 8 Apr 2022 13:22:32 -0400 Subject: [PATCH] ci: Check PR title instead of commits for conventional format --- .github/workflows/changelog.yml | 18 ++++++++++++++++++ .github/workflows/tests.yml | 10 ---------- 2 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/changelog.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 00000000..68627f2a --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,18 @@ +name: "Changelog checks" + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +jobs: + conventional-commits-lint-check: + name: "Lint PR title" + runs-on: "ubuntu-latest" + steps: + - name: + uses: amannn/action-semantic-pull-request@0eb081bc9c35210408951834a444794406eff6f8 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a55d5ae6..033fd6a2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -66,13 +66,3 @@ jobs: uses: golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018 with: version: v1.45.2 - - conventional-commits-lint-check: - runs-on: "ubuntu-latest" - steps: - - name: Checkout code - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 - with: - fetch-depth: 0 - - name: Commitsar Action - uses: aevea/commitsar@159cec82966ca402a09ae3c185524a5256affa22