From 17a3424ec31bdfdd2cb31fe29902396e270211de Mon Sep 17 00:00:00 2001 From: Jerome Luckenbach Date: Mon, 25 Nov 2019 18:54:13 +0100 Subject: [PATCH] Add automatic pr labeling through github actions. (#1089) Signed-off-by: Jerome Luckenbach --- .github/labeler.yml | 23 +++++++++++++++++++++++ .github/workflow/labeler.yml | 14 ++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflow/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..1e6ad0b1c --- /dev/null +++ b/.github/labeler.yml @@ -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/* diff --git a/.github/workflow/labeler.yml b/.github/workflow/labeler.yml new file mode 100644 index 000000000..b8b6f558a --- /dev/null +++ b/.github/workflow/labeler.yml @@ -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 \ No newline at end of file