Update PR Labeler to v5 (#26845)
* Update PR Labeler to v5 * Change conflict labeler. * Implement draft filtering functionality * Actually, pull_request_target is appropriate here.
This commit is contained in:
parent
27aa774394
commit
c32eaeb331
|
|
@ -1,24 +1,38 @@
|
||||||
"Changes: C#":
|
"Changes: C#":
|
||||||
- "**/*.cs"
|
- changed-files:
|
||||||
|
- any-glob-to-any-file: "**/*.cs"
|
||||||
|
|
||||||
"Changes: Documentation":
|
"Changes: Documentation":
|
||||||
|
- changed-files:
|
||||||
- "**/*.xml"
|
- "**/*.xml"
|
||||||
- "**/*.md"
|
- "**/*.md"
|
||||||
|
|
||||||
"Changes: Localization":
|
"Changes: Localization":
|
||||||
- 'Resources/Locale/**/*.ftl'
|
- changed-files:
|
||||||
|
- any-glob-to-any-file:
|
||||||
|
- 'Resources/Locale/**/*.ftl'
|
||||||
|
|
||||||
"Changes: Map":
|
"Changes: Map":
|
||||||
- "Resources/Maps/**/*.yml"
|
- changed-files:
|
||||||
- "Resources/Prototypes/Maps/**/*.yml"
|
- any-glob-to-any-file:
|
||||||
|
- "Resources/Maps/**/*.yml"
|
||||||
|
- "Resources/Prototypes/Maps/**/*.yml"
|
||||||
|
|
||||||
"Changes: Sprite":
|
"Changes: Sprite":
|
||||||
- "**/*.rsi/*.png"
|
- changed-files:
|
||||||
- "**/*.rsi/*.json"
|
- any-glob-to-any-file:
|
||||||
|
- "**/*.rsi/*.png"
|
||||||
|
- "**/*.rsi/*.json"
|
||||||
|
|
||||||
"Changes: UI":
|
"Changes: UI":
|
||||||
- "**/*.xaml*"
|
- changed-files:
|
||||||
|
- any-glob-to-any-file:
|
||||||
|
- "**/*.xaml*"
|
||||||
|
|
||||||
"Changes: YML":
|
"Changes: YML":
|
||||||
- any: ["**/*.yml"]
|
- changed-files:
|
||||||
all: ["!Resources/Maps/**/*.yml", "!Resources/Prototypes/Maps/**/*.yml"]
|
- any-glob-to-any-file:
|
||||||
|
- "**/*.yml"
|
||||||
|
- all-globs-to-all-files:
|
||||||
|
- "!Resources/Maps/**/*.yml"
|
||||||
|
- "!Resources/Prototypes/Maps/**/*.yml"
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,20 @@
|
||||||
name: Check Merge Conflicts
|
name: Check Merge Conflicts
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
- reopened
|
||||||
|
- ready_for_review
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Label:
|
Label:
|
||||||
if: github.actor != 'PJBot' && github.actor != 'DeltaV-Bot'
|
if: ( github.event.pull_request.draft == false ) && ( github.actor != 'PJBot' ) && ( github.actor != 'DeltaV-Bot' )
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check for Merge Conflicts
|
- name: Check for Merge Conflicts
|
||||||
uses: ike709/actions-label-merge-conflict@9eefdd17e10566023c46d2dc6dc04fcb8ec76142
|
uses: eps1lon/actions-label-merge-conflict@v3.0.0
|
||||||
with:
|
with:
|
||||||
dirtyLabel: "Status: Merge Conflict"
|
dirtyLabel: "Status: Merge Conflict"
|
||||||
repoToken: "${{ secrets.GITHUB_TOKEN }}"
|
repoToken: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,9 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
labeler:
|
labeler:
|
||||||
if: github.actor != 'PJBot' && github.actor != 'DeltaV-Bot'
|
if: github.actor != 'PJBot' && github.actor != 'DeltaV-Bot'
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/labeler@v3
|
- uses: actions/labeler@v5
|
||||||
with:
|
|
||||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue