mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-09 08:42:33 -04:00
Add workflow to link to discuss on new question (#11825)
* workflows: + automatic label/response on question When a user asks a question through an issue on this repository, we automatically add a comment, pointing to the forums, and add a label to the issue so we can spot more easily which issues need to be acted on. * .github: + link to packer community for questions As extra to the github action, this commit adds an extra button to the new issue template, leading directly to the discuss forums for Packer * .github: add auto-stale-close issue action As follow-up to the labelling of question type issues as needs-reply, we add another action that will automatically mark an issue as stale if it has not been updated for 3 weeks, and close the issue one week after marking it as stale. * Update .github/workflows/issues-opened.yml Co-authored-by: Wilken Rivera <wilken@hashicorp.com>
This commit is contained in:
parent
b9c28c7a8f
commit
08157fbdce
3 changed files with 49 additions and 0 deletions
5
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
5
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Packer Community Support
|
||||
url: https://discuss.hashicorp.com/c/packer/23
|
||||
about: If you have a question, or are looking for advice, please post on our Discuss forum! The community loves to chime in to help. Happy Coding!
|
||||
23
.github/workflows/auto-close-stale-issues.yml
vendored
Normal file
23
.github/workflows/auto-close-stale-issues.yml
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
name: Close Stale Issues
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
stale-bot:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@v5.0.0
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
days-before-issue-stale: 23
|
||||
days-before-pr-stale: -1 # deactivate the action for PRs
|
||||
days-before-close: 7
|
||||
stale-issue-message: |
|
||||
Hi,
|
||||
|
||||
This issue has not received any update in the last 3 weeks, and will automatically be closed in 7 days if it does not receive any activity by then.
|
||||
|
||||
If you find the [community forum](https://discuss.hashicorp.com/c/packer) to be more helpful or if you've found the answer to your question elsewhere please feel free to post a response and close the issue.
|
||||
only-labels: needs-reply
|
||||
21
.github/workflows/issues-opened.yml
vendored
21
.github/workflows/issues-opened.yml
vendored
|
|
@ -23,4 +23,25 @@ jobs:
|
|||
github-token: ${{ secrets.PACKER_PROJ_BOARD_TOKEN }}
|
||||
labeled: bug, enhancement
|
||||
label-operator: OR
|
||||
label-question:
|
||||
name: Redirect to discuss
|
||||
if: contains(github.event.issue.labels.*.name, 'question')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions-ecosystem/action-create-comment@v1.0.0
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
body: |
|
||||
Hi 👋 thanks for reaching out.
|
||||
|
||||
For general questions we recommend reaching out to the [community forum](https://discuss.hashicorp.com/c/packer) for greater visibility.
|
||||
As the GitHub issue tracker is only watched by a small subset of maintainers and is really reserved for bugs and enhancements, you'll have a better chance of finding someone who can help you in the forum.
|
||||
We'll mark this issue as needs-reply to help inform maintainers that this question is awaiting a response.
|
||||
If no activity is taken on this question within 30 days it will be automatically closed.
|
||||
|
||||
If you find the forum to be more helpful or if you've found the answer to your question elsewhere please feel free to post a response and close the issue.
|
||||
- uses: actions-ecosystem/action-add-labels@v1.1.0
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
labels: needs-reply
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue