From 016c4b353b64a8ea3c6e1d6e8e7b4cf71901d011 Mon Sep 17 00:00:00 2001 From: Gauvino <68083474+Gauvino@users.noreply.github.com> Date: Tue, 16 Apr 2024 05:25:13 +0200 Subject: [PATCH] Add merge conflict labeler --- .github/workflows/conflict_labeler.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/conflict_labeler.yml diff --git a/.github/workflows/conflict_labeler.yml b/.github/workflows/conflict_labeler.yml new file mode 100644 index 000000000..a19496985 --- /dev/null +++ b/.github/workflows/conflict_labeler.yml @@ -0,0 +1,24 @@ +name: Merge Conflict Labeler + +on: + push: + branches: + - develop + pull_request_target: + issue_comment: + +permissions: {} + +jobs: + label: + name: Labeling + runs-on: ubuntu-latest + if: ${{ github.repository == 'Sonarr/Sonarr' }} + steps: + - name: Apply label + uses: eps1lon/actions-label-merge-conflict@v3 + if: ${{ github.event_name == 'push' || github.event_name == 'pull_request_target'}} + with: + dirtyLabel: 'merge-conflict' + repoToken: "${{ secrets.GITHUB_TOKEN }}" + \ No newline at end of file