Migrate stale workflow to shared workflow
This commit is contained in:
parent
a5e97b5b6c
commit
f1ebf6f8d9
2 changed files with 13 additions and 36 deletions
36
.github/workflows/stale-issues.yml
vendored
36
.github/workflows/stale-issues.yml
vendored
|
|
@ -1,36 +0,0 @@
|
|||
name: Marks/closes stale issues
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 3 * * *" # 3 AM UTC
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
jobs:
|
||||
mark-stale-issues:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@v10
|
||||
with:
|
||||
start-date: "2025-07-10T00:00:00Z" # Skip for issues created before this date
|
||||
days-before-issue-stale: 30
|
||||
only-issue-labels:
|
||||
"needs-triage,more-info-needed" # Only issues with all of these labels can be marked as stale
|
||||
exempt-issue-labels: "keep" # Issues marked with this label should not be marked as stale
|
||||
stale-issue-label: "stale" # Mark stale issues with this label
|
||||
stale-issue-message: |
|
||||
This issue has been automatically marked as stale because it has not had any activity in the last 30 days,
|
||||
and it will be closed in 30 days if no further activity occurs.
|
||||
|
||||
If you think this is a mistake, please comment on this issue to keep it open.
|
||||
|
||||
days-before-issue-close: 30
|
||||
close-issue-reason: "not_planned"
|
||||
close-issue-message: |
|
||||
This issue has been automatically closed due to inactivity.
|
||||
|
||||
If you think this is a mistake, please comment on this issue.
|
||||
|
||||
# Exclude PRs from closing or being marked as stale
|
||||
days-before-pr-stale: -1
|
||||
days-before-pr-close: -1
|
||||
13
.github/workflows/triage-scheduled-tasks.yml
vendored
13
.github/workflows/triage-scheduled-tasks.yml
vendored
|
|
@ -5,9 +5,22 @@ on:
|
|||
types: [created]
|
||||
schedule:
|
||||
- cron: '5 * * * *' # Hourly — no-response close
|
||||
- cron: '0 3 * * *' # Daily at 3 AM UTC — stale issues
|
||||
|
||||
jobs:
|
||||
no-response:
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue