Skip to content

Commit

Permalink
ci: add workflow to handle support flow to forum (#1109)
Browse files Browse the repository at this point in the history
- 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
hummusonrails authored Feb 23, 2024
1 parent 82fba09 commit 7ccc451
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
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.
33 changes: 33 additions & 0 deletions .github/workflows/close-support-questions.yml
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 }}

0 comments on commit 7ccc451

Please sign in to comment.