af17fb27b8
* Attempt to re-structure workflows to be more generic & reusable * Iterate for reusable workflows can't call each other * don't pass pullrequest params if no prnumber * Comments * Fix reusable workflow call * Pass pr_id properly * Fix run condition for prdetails job * Fix needs dependency * Stash work so far * Fix copypasta * Update * Define outputs from pr_details.yml * Fix output reporting * Fix something or other
29 lines
816 B
YAML
29 lines
816 B
YAML
name: Pull Request
|
|
on:
|
|
pull_request_target:
|
|
types: [ opened, edited, labeled, unlabeled, synchronize ]
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
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-Deprecation,T-Enhancement,T-Task"
|
|
BANNED_LABELS: "X-Blocked"
|
|
BANNED_LABELS_DESCRIPTION: "Preventing merge whilst PR is marked blocked!"
|