Skip to content

Commit 38a3afe

Browse files
author
Peter Bengtsson
authored
don't allow creating empty PRs (#23072)
Part of #998
1 parent 16a6960 commit 38a3afe

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/repo-sync.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ jobs:
128128
pr_body: "This is an automated pull request to sync changes between the public and private repos.\n\n:robot: This pull request should be merged (not squashed) to preserve continuity across repos, so please let a bot do the merging!"
129129
pr_label: automated-reposync-pr
130130
github_token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
131+
# This will exit 0 if there's no difference between `repo-sync`
132+
# and `main`. And if so, no PR will be created.
133+
pr_allow_empty: false
131134

132135
- name: Find pull request
133136
uses: juliangruber/find-pull-request-action@db875662766249c049b2dcd85293892d61cb0b51

0 commit comments

Comments
 (0)