1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2025-02-09 01:56:47 -05:00

Merge pull request #1104 from gucio321/labeler

workflow: automatic labeling Pull Requests
This commit is contained in:
Tim Sarbin 2021-04-19 06:32:54 -04:00 committed by GitHub
commit eb470533c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

8
.github/label-pr.yml vendored Normal file
View 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
View 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