From 44b9c7a9629bf35df12fb2db8b6a17f889425f3e Mon Sep 17 00:00:00 2001 From: Steven Luscher Date: Thu, 21 Jul 2022 19:58:49 -0700 Subject: [PATCH] Adding the `question` tag will now auto-close Issues and direct people to post on the Solana Stack Exchange (#26719) * Adding the `question` tag will now auto-close Issues and direct people to post on the Solana Stack Exchange * Formatting & add note about message being automated --- .github/label-actions.yml | 27 +++++++++++++++++++++++++++ .github/workflows/label-actions.yml | 15 +++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/label-actions.yml create mode 100644 .github/workflows/label-actions.yml diff --git a/.github/label-actions.yml b/.github/label-actions.yml new file mode 100644 index 0000000000..029ec96a2d --- /dev/null +++ b/.github/label-actions.yml @@ -0,0 +1,27 @@ +question: + issues: + # Post a comment, `{issue-author}` is an optional placeholder + comment: > + Hi @{issue-author}, + + + Thanks for your question! + + + We want to make sure to keep signal strong in the GitHub issue tracker – to make sure + that it remains the best place to track issues that affect the development of Solana itself. + + + Questions like yours deserve a purpose-built Q&A forum. Unless there exists evidence that + this is a bug with Solana itself, please post your question to the Solana Stack Exchange + using this link: https://solana.stackexchange.com/questions/ask + + + --- + + _This + [automated message](https://github.com/solana-labs/solana/blob/master/.github/label-actions.yml) + is a result of having added the ‘question’ tag_. + + # Close the issue + close: true diff --git a/.github/workflows/label-actions.yml b/.github/workflows/label-actions.yml new file mode 100644 index 0000000000..218876135a --- /dev/null +++ b/.github/workflows/label-actions.yml @@ -0,0 +1,15 @@ +name: "Issue Label Actions" + +on: + issues: + types: [labeled, unlabeled] + +permissions: + contents: read + issues: write + +jobs: + action: + runs-on: ubuntu-latest + steps: + - uses: dessant/label-actions@v2