Skip to content

Commit

Permalink
Merge pull request #777 from FuelLabs/support-to-forum
Browse files Browse the repository at this point in the history
ci: introduce support flow for issues
  • Loading branch information
hummusonrails authored Mar 6, 2024
2 parents 8c26039 + 2104802 commit c3c76de
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 c3c76de

Please sign in to comment.