From 911150846e3f0b48a5303b465d325b87cfa4096a Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 8 Jun 2022 11:43:54 +0100 Subject: [PATCH] Add CI to improve experience for community (#8779) * Add CI to improve experience for community * Fix close-if-fork-develop if-condition * Extract into reusable workflow --- .github/workflows/pull_request.yaml | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index d861ea054e..6da322dfc1 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -4,23 +4,7 @@ on: types: [ opened, edited, labeled, unlabeled, synchronize ] concurrency: ${{ github.workflow }}-${{ github.event.pull_request.head.ref }} jobs: - changelog: - name: Preview Changelog - if: github.event.action != 'synchronize' - runs-on: ubuntu-latest - steps: - - uses: matrix-org/allchange@main - with: - ghToken: ${{ secrets.GITHUB_TOKEN }} - - enforce-label: - name: Enforce Labels - runs-on: ubuntu-latest - permissions: - pull-requests: read - steps: - - uses: yogevbd/enforce-label-action@2.1.0 - with: - REQUIRED_LABELS_ANY: "T-Defect,T-Enhancement,T-Task" - BANNED_LABELS: "X-Blocked" - BANNED_LABELS_DESCRIPTION: "Preventing merge whilst PR is marked blocked!" + action: + uses: matrix-org/matrix-js-sdk/.github/workflows/pull_request.yaml@develop + with: + labels: "T-Defect,T-Enhancement,T-Task"