Skip to content

Commit 6509330

Browse files
committed
Add github action workflow
1 parent 3be615b commit 6509330

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/stale.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "Stale Issues and PRs"
2+
3+
on:
4+
schedule:
5+
- cron: "30 3 * * *"
6+
workflow_dispatch: {}
7+
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
stale:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Mark and close stale items
17+
uses: actions/stale@v10.1.1
18+
with:
19+
repo-token: ${{ secrets.GITHUB_TOKEN }}
20+
days-before-issue-stale: 30
21+
days-before-issue-close: 7
22+
days-before-pr-stale: 21
23+
days-before-pr-close: 7
24+
stale-issue-label: "stale"
25+
stale-pr-label: "stale-pr"
26+
exempt-issue-assignees: true
27+
exempt-pr-assignees: true
28+
exempt-issue-labels: "no-stale,security,pinned"
29+
exempt-pr-labels: "no-stale,security,pinned"
30+
stale-issue-message: >
31+
This issue has been inactive for 30 days. It will be closed in 7 days
32+
if no further activity occurs. Add a comment to keep it open, or apply
33+
the `no-stale` label.
34+
stale-pr-message: >
35+
This PR has been inactive for 21 days. It will be closed in 7 days if
36+
no further activity occurs. Add a comment to keep it open, or apply
37+
the `no-stale` label.
38+
close-issue-message: >
39+
Closing due to inactivity. If this is still relevant, please reopen
40+
or file a new issue with updated context.
41+
close-pr-message: >
42+
Closing due to inactivity. If this is still relevant, please reopen
43+
or open a fresh PR with updated context.

0 commit comments

Comments
 (0)