mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
feat: improve merge-check action to leave a comment and label to PRs
This commit is contained in:
parent
117dda9d6f
commit
5394d63e18
22
.github/workflows/merge-check.yml
vendored
22
.github/workflows/merge-check.yml
vendored
@ -1,8 +1,12 @@
|
|||||||
name: Check Merge Fast-Forward Only
|
name: Check Merge Fast-Forward Only
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
- push
|
||||||
pull_request:
|
- pull_request_target
|
||||||
|
- pull_request_review
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_merge:
|
check_merge:
|
||||||
@ -27,3 +31,17 @@ jobs:
|
|||||||
else
|
else
|
||||||
git merge --ff-only ${{ github.sha }}
|
git merge --ff-only ${{ github.sha }}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: add labels
|
||||||
|
uses: actions-ecosystem/action-add-labels@v1
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
labels: |
|
||||||
|
needs rebase
|
||||||
|
|
||||||
|
- name: comment
|
||||||
|
uses: mshick/add-pr-comment@v2
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
message: |
|
||||||
|
This pull request has conflicts, please rebase.
|
||||||
|
Loading…
Reference in New Issue
Block a user