mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-13 03:56:31 -05:00
Merge pull request #1104 from gucio321/labeler
workflow: automatic labeling Pull Requests
This commit is contained in:
commit
eb470533c4
8
.github/label-pr.yml
vendored
Normal file
8
.github/label-pr.yml
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
- regExp: [".*\\.md+$", "docs"]
|
||||||
|
labels: ["documentation"]
|
||||||
|
- regExp: ["go.sum", "go.mod"]
|
||||||
|
labels: ["dependencies"]
|
||||||
|
- regExp: ".*\\.github\/workflows"
|
||||||
|
labels: ["workflow"]
|
||||||
|
- regExp: ".*_test\\.go+$"
|
||||||
|
labels: ["unittests"]
|
13
.github/workflows/labeler.yaml
vendored
Normal file
13
.github/workflows/labeler.yaml
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# labeler configuration is in .github/label-pr.yml
|
||||||
|
name: labeler
|
||||||
|
on: [pull_request]
|
||||||
|
jobs:
|
||||||
|
label:
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Labeler
|
||||||
|
uses: docker://decathlon/pull-request-labeler-action:2.0.0
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
CONFIG_PATH: ${{ secrets.GITHUB_WORKSPACE }}/.github/label-pr.yml
|
Loading…
Reference in New Issue
Block a user