name: PR Title Check on: pull_request: branches: - main jobs: check-title: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 0 - name: Check PR title when source files change env: PR_TITLE: ${{ github.event.pull_request.title }} run: | git fetch origin "${{ github.base_ref }}" git diff --name-only "origin/${{ github.base_ref }}...HEAD" \ | scripts/ci/check-pr-title.sh "$PR_TITLE"