Prevents no-response from accidentally closing issues when manually dispatching the workflow for pitch surfacing. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
name: Triage Scheduled Tasks
|
|
on:
|
|
workflow_dispatch:
|
|
issue_comment:
|
|
types: [created]
|
|
schedule:
|
|
- cron: '5 * * * *' # Hourly — no-response close
|
|
- cron: '0 3 * * *' # Daily at 3 AM UTC — stale issues
|
|
- cron: '0 14 1 * *' # Monthly on the 1st at 2 PM UTC — pitch surfacing
|
|
|
|
jobs:
|
|
no-response:
|
|
if: github.event_name == 'issue_comment' || github.event.schedule == '5 * * * *'
|
|
uses: desktop/gh-cli-and-desktop-shared-workflows/.github/workflows/triage-no-response-close.yml@main
|
|
permissions:
|
|
issues: write
|
|
|
|
stale:
|
|
if: github.event.schedule == '0 3 * * *'
|
|
uses: desktop/gh-cli-and-desktop-shared-workflows/.github/workflows/triage-stale-issues.yml@main
|
|
with:
|
|
days_before_stale: 30
|
|
days_before_close: -1
|
|
start_date: '2025-07-10T00:00:00Z'
|
|
stale_issue_label: 'stale'
|
|
exempt_issue_labels: 'keep'
|
|
permissions:
|
|
issues: write
|
|
|
|
pitch-surface:
|
|
if: github.event.schedule == '0 14 1 * *' || github.event_name == 'workflow_dispatch'
|
|
uses: desktop/gh-cli-and-desktop-shared-workflows/.github/workflows/pitch-surface-top-issues.yml@main
|
|
permissions:
|
|
issues: write
|