From 0df410a52cf5af346c55ecc6209294bac7ca5e71 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Thu, 8 Aug 2024 16:46:11 +0200 Subject: [PATCH] ci: Add merge conflict labeler workflow (#2) This adds a GitHub Action workflow that runs `mschilde/auto-label-merge-conflicts` once a day on all org repos. --- .../merge-conflict-auto-label.yml.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/merge-conflict-auto-label.yml.yml diff --git a/.github/workflows/merge-conflict-auto-label.yml.yml b/.github/workflows/merge-conflict-auto-label.yml.yml new file mode 100644 index 0000000..abb7cab --- /dev/null +++ b/.github/workflows/merge-conflict-auto-label.yml.yml @@ -0,0 +1,19 @@ +name: Merge Conflict Auto Label +on: + workflow_dispatch: # Manual run + push: + branches: + - main + schedule: + - cron: "10 21 * * *" # Runs at 21:10; time was chosen based on contributor activity and low GitHub Actions cron load. + +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