forked from OrchardCMS/OrchardCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Validate Pull Request GitHub Actions workflow to check PRs for…
… merge conflicts (OrchardCMS#15114)
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Validate Pull Request | ||
|
||
on: | ||
push: | ||
pull_request_target: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
validate-pull-request: | ||
name: Validate Pull Request | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 3 | ||
steps: | ||
- name: Check for Merge Conflict in PR | ||
# releases/2.1.0 | ||
uses: eps1lon/actions-label-merge-conflict@92924ba33a60e436034b0ac3838de523bf7df071 | ||
with: | ||
repoToken: ${{ secrets.GITHUB_TOKEN }} | ||
commentOnDirty: "This pull request has merge conflicts. Please resolve those before requesting a review." | ||
dirtyLabel: "merge conflict" | ||
# The default 120 is too long. The mergeable state is usually calculated by GitHub within seconds. | ||
retryAfter: 5 |