2022-05-03 09:39:03 +00:00
|
|
|
name: Pull Request
|
|
|
|
on:
|
|
|
|
pull_request_target:
|
2022-05-30 14:40:26 +00:00
|
|
|
types: [ opened, edited, labeled, unlabeled, synchronize ]
|
|
|
|
concurrency: ${{ github.workflow }}-${{ github.event.pull_request.head.ref }}
|
2022-05-03 09:39:03 +00:00
|
|
|
jobs:
|
|
|
|
changelog:
|
|
|
|
name: Preview Changelog
|
2022-05-13 17:51:25 +00:00
|
|
|
if: github.event.action != 'synchronize'
|
2022-05-03 09:39:03 +00:00
|
|
|
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!"
|