forked from aws/deep-learning-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.56 KB
/
stale.yml
File metadata and controls
45 lines (40 loc) · 1.56 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Mark and Remove Stale Issues and PRs
on:
schedule:
- cron: '0 19 * * 0' # every Sunday at 19:00 UTC
workflow_dispatch:
jobs:
stale-scan:
runs-on: ubuntu-latest
permissions:
actions: write
issues: write
pull-requests: write
steps:
- name: Mark and Close Stale Issues and PRs
uses: actions/stale@v10.1.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# === PR settings ===
stale-pr-message: >
This PR has been marked stale due to 30 days of inactivity.
Please comment or remove the stale label to keep it open.
It will be closed in 5 days if no further activity occurs.
close-pr-message: >
Closing this PR after 5 additional days of inactivity since being marked stale.
stale-pr-label: 'no-pr-activity'
days-before-pr-stale: 30
days-before-pr-close: 5
# === Issue settings ===
stale-issue-message: >
This issue has been automatically marked as stale due to 60 days of inactivity.
Please comment or remove the stale label to keep it open.
It will be closed in 7 days if no further activity occurs.
close-issue-message: >
Closing this issue after 7 additional days of inactivity since being marked stale.
stale-issue-label: 'no-issue-activity'
days-before-issue-stale: 60
days-before-issue-close: 7
# === General ===
operations-per-run: 200
remove-stale-when-updated: true