Added automation workflow to prevent merge conflicts

```
This commit is contained in:
Uruk 2023-10-10 01:54:18 +02:00
parent 425d291e4a
commit 1ce9a90de5
1 changed files with 20 additions and 0 deletions

20
.github/workflows/automation.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: 'Automation'
on:
push:
branches: [ master ]
pull_request_target:
types: [ synchronize ]
jobs:
triage:
name: 'Merge conflict labeling'
runs-on: ubuntu-latest
if: ${{ github.repository == 'tycrek/ass' }}
steps:
- uses: eps1lon/actions-label-merge-conflict@releases/2.x
with:
dirtyLabel: 'merge conflict'
commentOnDirty: 'This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged.'
commentOnClean: "Conflicts have been resolved. A maintainer will review the pull request shortly."
repoToken: "${{ secrets.GITHUB_TOKEN }}"