Skip to content

Commit 6f7af74

Browse files
authored
Merge pull request #391 from Yoast/JRF/ghactions-add-merge-conflict-check
GH Actions: add merge-conflict check
2 parents 73a7040 + f2697b6 commit 6f7af74

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Check PRs for merge conflicts
2+
3+
on:
4+
# Check for new conflicts due to merges.
5+
push:
6+
branches:
7+
- main
8+
- trunk
9+
- 'release/**'
10+
- 'hotfix/[0-9]+.[0-9]+*'
11+
- 'feature/**'
12+
# Check conflicts in new PRs and for resolved conflicts due to an open PR being updated.
13+
pull_request_target:
14+
types:
15+
- opened
16+
- synchronize
17+
- reopened
18+
19+
jobs:
20+
check-prs:
21+
if: github.repository_owner == 'Yoast'
22+
23+
name: Check PRs for merge conflicts
24+
uses: Yoast/.github/.github/workflows/reusable-merge-conflict-check.yml@main

0 commit comments

Comments
 (0)