From dac896a3cb13067ea9811fb21d87a0d74e78898b Mon Sep 17 00:00:00 2001 From: Brett Logan Date: Tue, 10 Aug 2021 15:01:16 -0400 Subject: [PATCH] Add slash command for invalid issue Adds a "/invalid" command that when typed in an issue will let users know the purpose of GitHub issues and close the issue. Signed-off-by: Brett Logan --- .github/workflows/slash-commands.yml | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/slash-commands.yml diff --git a/.github/workflows/slash-commands.yml b/.github/workflows/slash-commands.yml new file mode 100644 index 00000000000..25ad4b203d1 --- /dev/null +++ b/.github/workflows/slash-commands.yml @@ -0,0 +1,31 @@ +# Copyright the Hyperledger Fabric contributors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +name: Slash Commands +on: + issue_comment: + types: + - created + - edited +jobs: + notify: + name: Invalid Issue Usage + if: contains(github.event.comment.body, '/invalid') && github.event.issue.state == 'open' + runs-on: ubuntu-latest + steps: + - name: Comment on Issue + uses: lindluni/issue-manager@v1.0.0 + with: + action: comment + message: | + Thank you for opening this issue. + + GitHub Issues is a tool for tracking bugs, feature requests, and work in general that relates directly to the Fabric codebase. It is not for general help requests. Please use one of the following forums to request help for your issue: + + - RocketChat: https://chat.hyperledger.org + - Fabric Mailing List: fabric@lists.hyperledger.org + - name: Close Issue + uses: lindluni/issue-manager@v1.0.0 + with: + action: close