From fb93d96a0eb543572240c6ee5011e97703bcc848 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Wed, 20 Dec 2023 16:13:17 +0100 Subject: [PATCH] ci: Add Action to add label to PR on merge conflict Adds a GitHub Action that auto-adds a label to a PR in case there are merge conflicts. --- .github/workflows/merge-conflict-auto-label.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/merge-conflict-auto-label.yml diff --git a/.github/workflows/merge-conflict-auto-label.yml b/.github/workflows/merge-conflict-auto-label.yml new file mode 100644 index 00000000..e237726a --- /dev/null +++ b/.github/workflows/merge-conflict-auto-label.yml @@ -0,0 +1,16 @@ +name: Merge Conflict Auto Label +on: + push: + branches: + - main + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: mschilde/auto-label-merge-conflicts@master + with: + CONFLICT_LABEL_NAME: "merge conflicts" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + MAX_RETRIES: 5 + WAIT_MS: 5000