Make pull_request.yaml between the layers consistent and fix enforce labels (#22172)
This commit is contained in:
parent
479d4bf64d
commit
f2c8e89053
3 changed files with 28 additions and 12 deletions
|
@ -21,3 +21,6 @@ insert_final_newline = true
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.{yml,yaml}]
|
||||||
|
indent_size = 2
|
||||||
|
|
12
.github/workflows/preview_changelog.yaml
vendored
12
.github/workflows/preview_changelog.yaml
vendored
|
@ -1,12 +0,0 @@
|
||||||
name: Preview Changelog
|
|
||||||
on:
|
|
||||||
pull_request_target:
|
|
||||||
types: [ opened, edited, labeled ]
|
|
||||||
jobs:
|
|
||||||
changelog:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Preview Changelog
|
|
||||||
uses: matrix-org/allchange@main
|
|
||||||
with:
|
|
||||||
ghToken: ${{ secrets.GITHUB_TOKEN }}
|
|
25
.github/workflows/pull_request.yaml
vendored
Normal file
25
.github/workflows/pull_request.yaml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
name: Pull Request
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types: [ opened, edited, labeled, unlabeled, synchronize ]
|
||||||
|
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!"
|
Loading…
Reference in a new issue