forked from eclipse-leshan/leshan
-
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.
Add CI to ensure PR does not contains merge commit.
- Loading branch information
1 parent
b741a20
commit f0fc3c9
Showing
2 changed files
with
30 additions
and
1 deletion.
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,25 @@ | ||
name: "Check No Merge commit" | ||
description: "Check PR does not contains any merge commit" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: Check For Merge Commit | ||
id: no_merge | ||
uses: voxie-actions/no-merge-commits@v1.0.0 | ||
|
||
- name: Add comment | ||
if: failure() | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
header: Merge Commit Detected | ||
message: | | ||
:x: **PR should not contain "Merge Commit"**, so please use `git rebase` instead. | ||
- name: Delete comment | ||
if: success() | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
header: Merge Commit Detected | ||
delete: true |
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