Skip to content

Commit dff1b9b

Browse files
authored
ci: Improve PR title formatter trigger (#621)
1 parent 2e03b66 commit dff1b9b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/title-formatter.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ name: PR Title Formatter
22

33
on:
44
pull_request_target:
5-
types: [opened, edited, reopened, labeled, unlabeled, synchronize]
5+
types: [opened, edited, reopened, labeled, unlabeled]
66

77
concurrency:
88
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
99
cancel-in-progress: true
1010

1111
jobs:
1212
format-title:
13+
# Prevent running the job when only the PR body is edited.
14+
if: github.event.action != 'edited' || github.event.changes.title != null
1315
runs-on: ubuntu-latest
1416
permissions:
1517
pull-requests: write

0 commit comments

Comments
 (0)