From 0ec5e37286c60f770dc937481bd295b1344c2215 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sat, 14 Aug 2021 16:09:01 +0300 Subject: [PATCH] Add PR auto-labeling for merge conflicts --- .github/workflows/pr-auto-label.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/pr-auto-label.yml diff --git a/.github/workflows/pr-auto-label.yml b/.github/workflows/pr-auto-label.yml new file mode 100644 index 00000000..d45e0075 --- /dev/null +++ b/.github/workflows/pr-auto-label.yml @@ -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"