| on: |
| issues: |
| types: [opened] |
| |
| permissions: |
| contents: read |
| |
| jobs: |
| issue_triage: |
| name: Issue Opened Triage |
| permissions: |
| contents: read |
| issues: write # for github/issue-labeler to create or remove labels |
| runs-on: ubuntu-latest |
| steps: |
| - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 |
| - uses: github/issue-labeler@e24a3eb6b2e28c8904d086302a2b760647f5f45c # v3.1 |
| with: |
| repo-token: "${{ secrets.GITHUB_TOKEN }}" |
| configuration-path: .github/labeler-issue-triage.yml |
| enable-versioned-regex: 0 |
| label-question: |
| name: Redirect to discuss |
| permissions: |
| contents: read |
| issues: write # for actions-ecosystem/action-create-comment to create comments |
| if: contains(github.event.issue.labels.*.name, 'question') |
| runs-on: ubuntu-latest |
| steps: |
| - uses: actions-ecosystem/action-create-comment@v1.0.2 # TSCCR: no entry for repository "actions-ecosystem/action-create-comment" |
| 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.3 # TSCCR: no entry for repository "actions-ecosystem/action-add-labels" |
| with: |
| github_token: ${{ secrets.GITHUB_TOKEN }} |
| labels: needs-reply |
| |