Skip to content

Commit

Permalink
Merge pull request #391 from Yoast/JRF/ghactions-add-merge-conflict-c…
Browse files Browse the repository at this point in the history
…heck

GH Actions: add merge-conflict check
  • Loading branch information
jrfnl authored Dec 24, 2024
2 parents 73a7040 + f2697b6 commit 6f7af74
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/merge-conflict-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Check PRs for merge conflicts

on:
# Check for new conflicts due to merges.
push:
branches:
- main
- trunk
- 'release/**'
- 'hotfix/[0-9]+.[0-9]+*'
- 'feature/**'
# Check conflicts in new PRs and for resolved conflicts due to an open PR being updated.
pull_request_target:
types:
- opened
- synchronize
- reopened

jobs:
check-prs:
if: github.repository_owner == 'Yoast'

name: Check PRs for merge conflicts
uses: Yoast/.github/.github/workflows/reusable-merge-conflict-check.yml@main

0 comments on commit 6f7af74

Please sign in to comment.