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
This commit is contained in:
Michael Telatynski 2022-06-08 11:43:54 +01:00 committed by GitHub
parent c016815562
commit 911150846e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,23 +4,7 @@ on:
types: [ opened, edited, labeled, unlabeled, synchronize ] types: [ opened, edited, labeled, unlabeled, synchronize ]
concurrency: ${{ github.workflow }}-${{ github.event.pull_request.head.ref }} concurrency: ${{ github.workflow }}-${{ github.event.pull_request.head.ref }}
jobs: jobs:
changelog: action:
name: Preview Changelog uses: matrix-org/matrix-js-sdk/.github/workflows/pull_request.yaml@develop
if: github.event.action != 'synchronize' with:
runs-on: ubuntu-latest labels: "T-Defect,T-Enhancement,T-Task"
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!"