Auto-labeling actions for pull requests (#6117)
This commit is contained in:
41
.github/keylabeler.yml
vendored
41
.github/keylabeler.yml
vendored
@@ -1,41 +0,0 @@
|
|||||||
# Determines if we search the title (optional). Defaults to true.
|
|
||||||
matchTitle: false
|
|
||||||
|
|
||||||
# Determines if we search the body (optional). Defaults to true.
|
|
||||||
matchBody: true
|
|
||||||
|
|
||||||
# Determines if label matching is case sensitive (optional). Defaults to true.
|
|
||||||
caseSensitive: false
|
|
||||||
|
|
||||||
# Explicit keyword mappings to labels. Form of match:label. Required.
|
|
||||||
labelMappings:
|
|
||||||
"[ATMOS]": "Area: Atmos"
|
|
||||||
"[BODY]": "Area: Body System"
|
|
||||||
"[BODY SYSTEM]": "Area: Body System"
|
|
||||||
"[CONSTRUCTION]": "Area: Construction"
|
|
||||||
"[ENTITY AI]": "Area: Entity AI"
|
|
||||||
"[PHYSICS]": "Area: Physics"
|
|
||||||
"[POWER]": "Area: Power"
|
|
||||||
"[TOOLING]": "Area: Tooling"
|
|
||||||
"[UI]": "Area: UI"
|
|
||||||
|
|
||||||
"[BUG]": "Type: Bug"
|
|
||||||
"[CLEANUP]": "Type: Cleanup"
|
|
||||||
"[CLEAN]": "Type: Cleanup"
|
|
||||||
"[CLEANLINESS]": "Type: Cleanup"
|
|
||||||
"[DISCUSSION]": "Type: Discussion"
|
|
||||||
"[DISCUSS]": "Type: Discussion"
|
|
||||||
"[FEATURE]": "Type: Feature"
|
|
||||||
"[FEAT]": "Type: Feature"
|
|
||||||
"[IMPROVEMENT]": "Type: Improvement"
|
|
||||||
"[IMPROVE]": "Type: Improvement"
|
|
||||||
"[PERFORMANCE]": "Type: Performance"
|
|
||||||
"[PERF]": "Type: Performance"
|
|
||||||
"[REFACTOR]": "Type: Refactor"
|
|
||||||
|
|
||||||
"[HELP WANTED]": "Status: Help Wanted"
|
|
||||||
"[DO NOT MERGE]": "Status: DO NOT MERGE"
|
|
||||||
"[DNM]": "Status: DO NOT MERGE"
|
|
||||||
|
|
||||||
"[RESOURCES]": "Resources (No code)"
|
|
||||||
"[NOCODE]": "Resources (No code)"
|
|
||||||
12
.github/labeler.yml
vendored
Normal file
12
.github/labeler.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
"Changes: Sprites":
|
||||||
|
- '**/*.rsi/*.png'
|
||||||
|
|
||||||
|
"Changes: Map":
|
||||||
|
- 'Resources/Maps/*.yml'
|
||||||
|
- 'Resources/Prototypes/Maps/*.yml'
|
||||||
|
|
||||||
|
"Changes: UI":
|
||||||
|
- '**/*.xaml*'
|
||||||
|
|
||||||
|
"No C#":
|
||||||
|
- all: ["!**/*.cs"]
|
||||||
16
.github/workflows/labeler-needsreview.yml
vendored
Normal file
16
.github/workflows/labeler-needsreview.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
name: "Labels: Review"
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types: [review_requested]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
add_label:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions-ecosystem/action-add-labels@v1
|
||||||
|
with:
|
||||||
|
labels: "Status: Needs Review"
|
||||||
|
- uses: actions-ecosystem/action-remove-labels@v1
|
||||||
|
with:
|
||||||
|
labels: "Status: Awaiting Changes"
|
||||||
12
.github/workflows/labeler-pr.yml
vendored
Normal file
12
.github/workflows/labeler-pr.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
name: "Labels: PR"
|
||||||
|
|
||||||
|
on:
|
||||||
|
- pull_request_target
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
labeler:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/labeler@v3
|
||||||
|
with:
|
||||||
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
Reference in New Issue
Block a user