-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
OSOE-144: Automatic comment on pull requests that have a merge conflict
- Loading branch information
Showing
6 changed files
with
53 additions
and
2 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,13 @@ | ||
name: Check For Merge Conflict | ||
description: Checks for merge conflicts in in the current pull request. | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Check for merge conflict | ||
# releases/2.x | ||
uses: eps1lon/actions-label-merge-conflict@b8bf8341285ec9a4567d4318ba474fee998a6919 | ||
with: | ||
repoToken: ${{ env.GITHUB_TOKEN }} | ||
commentOnDirty: "This pull request has merge conflicts. Please resolve those before requesting a review." | ||
dirtyLabel: "Merge Conflict" |
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,13 @@ | ||
name: Validate Pull Request | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
validate-pull-request: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check for Merge Conflict in PR | ||
uses: Lombiq/GitHub-Actions/.github/actions/check-merge-conflict@issue/OSOE-144 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
7 changes: 5 additions & 2 deletions
7
.github/workflows/verify-this-repo.yml → .../workflows/validate-this-pull-request.yml
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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
name: Verify Pull Request | ||
name: Validate Pull Request | ||
# This is the same workflow you'd find in our other submodules. Unlike the rest of the workflows in this repo, this one | ||
# is meant to actually run here, so don't call it from other repos. | ||
# is meant to actually run here, so don't call it from other repos. | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
call-verify-workflow: | ||
uses: Lombiq/GitHub-Actions/.github/workflows/verify-submodule-pull-request.yml@dev | ||
|
||
call-check-merge-conflict: | ||
uses: Lombiq/GitHub-Actions/.github/workflows/validate-pull-request.yml@issue/OSOE-144 |
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
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
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