From 0b253837ebf2752bc479fe43ffbf2d209c8c9a98 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Fri, 20 Mar 2020 15:28:40 +0100 Subject: [PATCH] [core] Automatically apply "PR: needs rebase" PR label (#20169) --- .github/workflows/maintenance.yml | 18 ++++++++++++++++++ 1 file changed, 18 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 00000000000000..7ff51b46d984aa --- /dev/null +++ b/.github/workflows/maintenance.yml @@ -0,0 +1,18 @@ +name: 'Maintenance' +on: + # So that PRs touching the same files as the push are updated + push: + # So that the `dirtyLabel` is removed if conflicts are resolved + pull_request: + types: [synchronize] + +jobs: + main: + runs-on: ubuntu-latest + steps: + - name: check if prs are dirty + uses: eps1lon/actions-label-merge-conflict@releases/1.x + with: + dirtyLabel: 'PR: needs rebase' + removeOnDirtyLabel: 'PR: ready to ship' + repoToken: '${{ secrets.GITHUB_TOKEN }}'