From 7f81fe3c6182d7ffc2b1bd9037d8e79d5b6c102a Mon Sep 17 00:00:00 2001 From: bennerv <10840174+bennerv@users.noreply.github.com> Date: Mon, 6 May 2024 19:49:55 -0500 Subject: [PATCH] Add maintenance gh action to check for needed rebase --- .github/workflows/maintenance.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/maintenance.yml diff --git a/.github/workflows/maintenance.yml b/.github/workflows/maintenance.yml new file mode 100644 index 000000000..e8b350137 --- /dev/null +++ b/.github/workflows/maintenance.yml @@ -0,0 +1,23 @@ +name: Maintenance + +on: + push: + pull_request_target: + types: + - synchronize + +permissions: + contents: read + pull-requests: write + +jobs: + main: + runs-on: ubuntu-latest + steps: + - name: check if prs are dirty + uses: eps1lon/actions-label-merge-conflict@releases/2.x + with: + dirtyLabel: needs-rebase + removeOnDirtyLabel: ready-for-review + repoToken: "${{ secrets.GITHUB_TOKEN }}" + commentOnDirty: "Please rebase pull request."