mirror of
https://github.com/juanfont/headscale.git
synced 2026-02-16 12:47:44 +01:00
Add GitHub Actions automation that helps manage issues requiring additional information from reporters: - Post an instruction comment when 'needs-more-info' label is added, requesting environment details, debug logs from multiple nodes, configuration files, and proper formatting - Automatically remove the label when anyone comments - Close the issue after 3 days if no response is provided - Exempt needs-more-info labeled issues from the stale bot The instruction comment includes guidance on: - Required environment and debug information - Collecting logs from both connecting and connected-to nodes - Proper redaction rules (replace consistently, never remove IPs) - Formatting requirements for attachments and Markdown - Encouragement to discuss on Discord before filing issues
34 lines
1.2 KiB
YAML
34 lines
1.2 KiB
YAML
name: Needs More Info - Timer
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 * * *" # Daily at midnight UTC
|
|
issue_comment:
|
|
types: [created]
|
|
issues:
|
|
types: [labeled]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
manage-needs-more-info:
|
|
if: >-
|
|
github.repository == 'juanfont/headscale' &&
|
|
(github.event_name != 'issue_comment' || github.event.comment.user.type != 'Bot')
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
issues: write
|
|
steps:
|
|
- name: Manage needs-more-info issues
|
|
uses: tiangolo/issue-manager@2fb3484ec9279485df8659e8ec73de262431737d # v0.6.0
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
config: >
|
|
{
|
|
"needs-more-info": {
|
|
"delay": "P3D",
|
|
"message": "This issue has been automatically closed because no additional information was provided within 3 days.\n\nIf you now have the requested information, please feel free to reopen this issue and provide the details. We're happy to help once we have enough context to investigate.\n\nThank you for your understanding.",
|
|
"remove_label_on_comment": true,
|
|
"remove_label_on_close": true
|
|
}
|
|
}
|