Skip to content

Commit 914fd3e

Browse files
authored
Merge pull request #48 from 398ja/codex/add-github-stale-workflow-configuration
Add stale issue workflow
2 parents fd667c0 + df47c8b commit 914fd3e

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/stale.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Close Stale Issues and PRs
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
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+
- uses: actions/stale@v9
17+
with:
18+
repo-token: ${{ secrets.GITHUB_TOKEN }}
19+
days-before-stale: 30
20+
days-before-close: 7
21+
exempt-issue-labels: pinned,security
22+
exempt-pr-labels: pinned,security
23+
stale-issue-label: stale
24+
stale-pr-label: stale
25+
stale-issue-message: >-
26+
This issue has been automatically marked as stale because it has not had recent activity.
27+
It will be closed if no further activity occurs.
28+
stale-pr-message: >-
29+
This pull request has been automatically marked as stale because it has not had recent activity.
30+
It will be closed if no further activity occurs.
31+
close-issue-message: >-
32+
Closing this issue due to prolonged inactivity.
33+
close-pr-message: >-
34+
Closing this pull request due to prolonged inactivity.

0 commit comments

Comments
 (0)