fix(Action): Labeler (#3579)
This commit is contained in:
@@ -1,14 +0,0 @@
|
|||||||
- regExp: ".*\\.sql+$"
|
|
||||||
labels: ["DB"]
|
|
||||||
- regExp: ".*\\.(cpp|h)+$"
|
|
||||||
labels: ["CORE"]
|
|
||||||
- regExp: "src/server/scripts/(.*).(cpp|h)+$"
|
|
||||||
labels: ["Script"]
|
|
||||||
- regExp: ".*\\.md+$"
|
|
||||||
labels: ["Documentation"]
|
|
||||||
- regExp: ".*\\.sh+$"
|
|
||||||
labels: ["Bash"]
|
|
||||||
- regExp: ".*\\.cmake+$"
|
|
||||||
labels: ["Cmake"]
|
|
||||||
- regExp: ".*\\.yml+$"
|
|
||||||
labels: ["Workflow"]
|
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
DB:
|
||||||
|
- src/**/*.sql
|
||||||
|
|
||||||
|
CORE:
|
||||||
|
- any: ['src/**/*.cpp', 'src/**/*.h', '!src/server/scripts/*']
|
||||||
|
|
||||||
|
Script:
|
||||||
|
- src/server/scripts/**/*.cpp
|
||||||
|
- src/server/scripts/**/*.h
|
||||||
|
|
||||||
|
Documentation:
|
||||||
|
- ./*.md
|
||||||
|
|
||||||
|
Bash:
|
||||||
|
- ./*.sh
|
||||||
|
|
||||||
|
Cmake:
|
||||||
|
- ./*.cmake
|
||||||
|
|
||||||
|
Workflow:
|
||||||
|
- .github/workflows/*
|
||||||
@@ -1,16 +1,12 @@
|
|||||||
# Workflow to associate labels automatically
|
name: "Pull Request Labeler"
|
||||||
name: labeler
|
|
||||||
# Trigger the workflow on pull request events
|
|
||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
label:
|
triage:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
# We need to checkout the repository to access the configured file (.github/label-pr.yml)
|
- uses: actions/labeler@main
|
||||||
- uses: actions/checkout@v2
|
with:
|
||||||
- name: Labeler
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
uses: docker://decathlon/pull-request-labeler-action:2.0.0
|
configuration-path: .github/labeler.yml
|
||||||
env:
|
sync-labels: true
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
# Here we can override the path for the action configuration. If none is provided, default one is `.github/label-pr.yml`
|
|
||||||
CONFIG_PATH: ${{ secrets.GITHUB_WORKSPACE }}/.github/label-pr.yml
|
|
||||||
|
|||||||
Reference in New Issue
Block a user