-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add workflow to handle support flow to forum (#1109)
- Adds intro message to Issues encouraging questions flow to the forum - Adds new action that comments and closes on issues tagged with forum
- Loading branch information
1 parent
82fba09
commit 7ccc451
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Need Support? Visit the Fuel Forum | ||
url: https://forum.fuel.network | ||
about: > | ||
For support queries, please visit the Fuel Forum at https://forum.fuel.network. Only bug reports and feature requests in this repo are guaranteed a response. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Close Support Issues and Redirect to Forum | ||
|
||
on: | ||
issues: | ||
types: [labeled] | ||
|
||
jobs: | ||
close_forum_issues: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Comment and Close Issues Tagged with 'forum' | ||
if: github.event.label.name == 'forum' | ||
uses: peter-evans/create-or-update-comment@v3 | ||
with: | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
Hi there! 👋 | ||
Thank you for bringing your question to us. We noticed this issue is more a support question than a feature request or a bug report. For support queries and discussions, our Fuel Forum is the perfect spot! 🌟 Please visit [forum.fuel.network](https://forum.fuel.network) to get the help you need. | ||
We encourage you to shift the conversation there to keep our GitHub issues streamlined for bug reports and feature requests. | ||
Thanks for understanding and contributing to the Fuel community! 🚀 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Close Issue | ||
if: github.event.label.name == 'forum' | ||
uses: peter-evans/close-issue@v1 | ||
with: | ||
issue-number: ${{ github.event.issue.number }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |