-
Notifications
You must be signed in to change notification settings - Fork 364
29 lines (28 loc) · 1.19 KB
/
close_inactive_issues_pr.yml
File metadata and controls
29 lines (28 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Ref: https://docs.github.com/en/actions/managing-issues-and-pull-requests/closing-inactive-issues
name: Close inactive issues and PRs
on:
workflow_dispatch:
schedule:
- cron: "0 3 * * *"
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v10
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "Issue has not received an update in over 14 days. Adding stale label."
stale-pr-message: "PR has not received an update in over 14 days. Adding stale label."
close-issue-message: "This issue was closed because it has been 14 days without activity since it has been marked as stale."
close-pr-message: "This PR was closed because it has been 14 days without activity since it has been marked as stale."
days-before-issue-stale: 14
days-before-close: 14
only-labels: "waiting for feedback"
labels-to-add-when-unstale: "investigating"
labels-to-remove-when-unstale: "stale,waiting for feedback"
stale-issue-label: "stale"
stale-pr-label: "stale"
operations-per-run: 1000