GitHub labeler configuration changes (#7393)

* GitHub labeler configuration changes

* Delete main.workflow

* Create labeler.yml

* Create workflows/labeler.yml
This commit is contained in:
Ivan Blinkov 2019-10-20 11:59:21 +08:00 committed by GitHub
parent 36c1f9aa82
commit 1c02fed19b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 11 deletions

View File

@ -1,2 +0,0 @@
- regExp: ".*\\.md$"
labels: ["documentation", "pr-documentation"]

5
.github/labeler.yml vendored Normal file
View File

@ -0,0 +1,5 @@
# Documentation PRs
documentation:
- **/*.md
pr-documentation:
- **/*.md

View File

@ -1,9 +0,0 @@
workflow "Main workflow" {
resolves = ["Label PR"]
on = "pull_request"
}
action "Label PR" {
uses = "decathlon/pull-request-labeler-action@v1.0.0"
secrets = ["GITHUB_TOKEN"]
}

11
.github/workflows/labeler.yml vendored Normal file
View File

@ -0,0 +1,11 @@
name: "Pull Request Labeler"
on:
- pull_request
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"