diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml new file mode 100644 index 000000000..d575b7ceb --- /dev/null +++ b/.github/workflows/pr-lint.yml @@ -0,0 +1,19 @@ +name: pr lint +on: + pull_request: + types: [opened, reopened, synchronize, ready_for_review, edited] +jobs: + enforce_title: + name: pr lint + runs-on: ubuntu-latest + steps: + - uses: actions/setup-node@v4 + with: + node-version: 22 + + - uses: actions/checkout@v3 + - name: Install dependencies + uses: ./.github/actions/install-dependencies + + - name: Use commitlint to check PR title + run: echo "${{ github.event.pull_request.title }}" | bun commitlint