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 }}