Add automatic pr labeling through github actions. (#1089)

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
pull/1091/head
Jerome Luckenbach 2019-11-25 18:54:13 +01:00 committed by GitHub
parent 9ad20d39a5
commit 17a3424ec3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

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

@ -0,0 +1,23 @@
# Add 'priority: middle :soon::tm:' label to any file change
"priority:: middle ::soon::::tm::":
- '**'
- '.*'
- '.*/**'
"section:: add-ons":
- addons/*
"section:: administration":
- administration/*
"section:: configuration":
- configuration/*
"section:: development":
- developers/*
"section:: installation":
- installation/*
"section:: tutorials":
- tutorials/*

14
.github/workflow/labeler.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: Pull request labeler
on:
schedule:
- cron: '0/15 * * * *'
jobs:
labeler:
runs-on: ubuntu-latest
steps:
- uses: paulfantom/periodic-labeler@v0.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
LABEL_MAPPINGS_FILE: .github/labeler.yml