From 29b13262c333763b837ac6888af9eedbae9c5fe6 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Mon, 1 Feb 2021 16:08:49 -0800 Subject: [PATCH] Add label-actions workflow This workflow allows GitHub to automatically act on issue in response to labels being added to the issue. --- .github/labels-config.yml | 10 ++++++++++ .github/workflows/labels.yml | 16 ++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/labels-config.yml create mode 100644 .github/workflows/labels.yml diff --git a/.github/labels-config.yml b/.github/labels-config.yml new file mode 100644 index 00000000..9f3377b2 --- /dev/null +++ b/.github/labels-config.yml @@ -0,0 +1,10 @@ +# Configuration for Label Actions - https://github.com/marketplace/actions/label-actions + +"needs: issue template": + comment: > + :warning: This issue is missing required fields. To avoid this issue being closed, please provide the required information as described in the ISSUE TEMPLATE. + +"resolution: no response": + comment: > + This issue is being closed because the requested information has not been provided. + close: true diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml new file mode 100644 index 00000000..207a41ed --- /dev/null +++ b/.github/workflows/labels.yml @@ -0,0 +1,16 @@ +name: labels + +# This workflow is triggered when a label is added to an issue. +on: + issues: + types: labeled + +jobs: + label-actions: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: hramos/label-actions@v1 + with: + configuration-path: .github/labels-config.yml + repo-token: ${{ secrets.GITHUB_TOKEN }}