Skip to content
This repository was archived by the owner on May 10, 2025. It is now read-only.

Commit 203fe31

Browse files
feat: Add stale workflow
1 parent e852a3c commit 203fe31

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/stale.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
3+
name: Close Stale Issues
4+
5+
on:
6+
pull_request:
7+
paths:
8+
- ".github/workflows/stale.yaml"
9+
10+
schedule:
11+
- cron: "0 0 * * *"
12+
13+
jobs:
14+
stale:
15+
name: Stale
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Generate Token
19+
uses: actions/create-github-app-token@3378cda945da322a8db4b193e19d46352ebe2de5 # v1.10.4
20+
id: app-token
21+
with:
22+
app-id: "${{ secrets.BOT_APP_ID }}"
23+
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
24+
25+
- name: Close Stale Issues
26+
uses: actions/stale@v9
27+
with:
28+
repo-token: "${{ steps.app-token.outputs.token }}"
29+
days-before-stale: 60
30+
days-before-close: 14
31+
stale-issue-message: "Issue is stale and will be closed in 14 days unless there is new activity"
32+
stale-pr-message: "PR is stale and will be closed in 14 days unless there is new activity"
33+
close-issue-message: "Issue is closed due to inactivity"
34+
close-pr-message: "PR is closed due to inactivity"
35+
stale-issue-label: "status/stale"
36+
stale-pr-label: "status/stale"
37+
exempt-issue-labels: "issue/feature"
38+
remove-stale-when-updated: "True"
39+
operations-per-run: 500
40+
debug-only: "${{ github.event_name == 'pull_request' }}"

0 commit comments

Comments
 (0)