Add PR auto-labeling for merge conflicts

This commit is contained in:
Dragory 2021-08-14 16:09:01 +03:00
parent 3faed45694
commit 0ec5e37286
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

19
.github/workflows/pr-auto-label.yml vendored Normal file
View file

@ -0,0 +1,19 @@
name: Automatic PR labels
on:
push: {}
pull_request_target:
types: [opened, synchronize, reopened]
workflow_dispatch: {}
jobs:
needs-rebase:
runs-on: ubuntu-latest
steps:
- name: Check if PR needs rebase
uses: eps1lon/actions-label-merge-conflict@9023974d0f6f2c9664f51f519363e03d70857188
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
dirtyLabel: "needs-rebase"