diff --git a/.github/workflows/check-pr-formatting.yml b/.github/workflows/check-pr-formatting.yml deleted file mode 100644 index e6c234b805d..00000000000 --- a/.github/workflows/check-pr-formatting.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Pull request formatting - -on: - pull_request: - branches: [ main, 0.x ] - types: [opened, synchronize, edited] - -permissions: {} - -jobs: - pr-formatting: - runs-on: ubuntu-slim - permissions: - pull-requests: read - steps: - - uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # Skip Dependabot PRs. Check the PR author, not the branch name, which anyone can choose. - if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }} - with: - # Ensures the subject doesn't start with an uppercase character. - subjectPattern: ^(?![A-Z]).+$ - requireScope: false diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml new file mode 100644 index 00000000000..54344833a38 --- /dev/null +++ b/.github/workflows/pr-title.yml @@ -0,0 +1,20 @@ +name: PR title + +on: + pull_request: + types: [opened, edited, reopened, synchronize] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + +permissions: {} + +jobs: + check-title: + runs-on: ubuntu-latest + permissions: + pull-requests: read + steps: + - name: Check PR title + uses: firebolt-db/action-pr-checks@42a2bca20451bc2266baf1f716b019179890af5d # v2.0.0