From 533af0f56c04f2e11a9d1adbba8af347f35a56a7 Mon Sep 17 00:00:00 2001
From: Gauvino <68083474+Gauvino@users.noreply.github.com>
Date: Mon, 20 May 2024 00:16:42 +0200
Subject: [PATCH] feat: Add merge conflict labeler workflow (#4694)

Co-authored-by: Frank Elsinga <frank@elsinga.de>
---
 .github/workflows/conflict_labeler.yml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 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..10dd831aa
--- /dev/null
+++ b/.github/workflows/conflict_labeler.yml
@@ -0,0 +1,26 @@
+name: Merge Conflict Labeler
+
+on:
+  push:
+    branches:
+      - master
+  pull_request_target:
+    branches:
+      - master
+    types: [synchronize]
+
+jobs:
+  label:
+    name: Labeling
+    runs-on: ubuntu-latest
+    if: ${{ github.repository == 'louislam/uptime-kuma' }}
+    permissions:
+      contents: read
+      pull-requests: write
+    steps:
+      - name: Apply label
+        uses: eps1lon/actions-label-merge-conflict@v3
+        with:
+          dirtyLabel: 'needs:resolve-merge-conflict'
+          removeOnDirtyLabel: 'needs:resolve-merge-conflict'
+          repoToken: '${{ secrets.GITHUB_TOKEN }}'