diff --git a/.github/workflows/title-formatter.yml b/.github/workflows/title-formatter.yml index 4c564172..3b91e89b 100644 --- a/.github/workflows/title-formatter.yml +++ b/.github/workflows/title-formatter.yml @@ -2,7 +2,7 @@ name: PR Title Formatter on: pull_request_target: - types: [opened, edited, reopened, labeled, unlabeled, synchronize] + types: [opened, edited, reopened, labeled, unlabeled] concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number }} @@ -10,6 +10,8 @@ concurrency: jobs: format-title: + # Prevent running the job when only the PR body is edited. + if: github.event.action != 'edited' || github.event.changes.title != null runs-on: ubuntu-latest permissions: pull-requests: write