Skip to content

Commit 475e339

Browse files
authored
ci: add stale cleanup workflow (#106)
* ci: add stale cleanup workflow * docs: document branch and PR lifecycle policy
1 parent 0653a86 commit 475e339

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Stale Cleanup"
2+
3+
on:
4+
schedule:
5+
# Runs at midnight UTC every Wednesday
6+
- cron: "0 0 * * 3"
7+
workflow_dispatch:
8+
9+
permissions: {}
10+
11+
jobs:
12+
stale:
13+
uses: braintree/web-sdk-github-actions/.github/workflows/stale-cleanup.yml@cf4b40ff4b46c96aadbfae38806b8de404a98cb3
14+
permissions:
15+
actions: write
16+
issues: write
17+
pull-requests: write
18+
contents: write
19+
with:
20+
start-date: "2026-06-01T00:00:00Z"

CONTRIBUTING.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@ Clone this repo, then install the project's dependencies:
1313
npm install
1414
```
1515

16+
## Branch and PR Lifecycle
17+
18+
To keep the repository healthy, an automated workflow runs weekly:
19+
20+
- **Branches**: flagged after 21 days of inactivity; deleted 7 days later if
21+
still inactive. To keep a branch, add new commits or remove the bot's comment.
22+
- **Pull requests**: commented on after 14 days of inactivity; closed 7 days
23+
later if still inactive. Closed PRs can be reopened at any time.
24+
- **Issues**: commented on after 14 days of inactivity; closed 7 days later if
25+
still inactive.
26+
27+
You can open a fresh PR or issue at any time if automated cleanup closes yours.
28+
1629
## Tests
1730

1831
```

0 commit comments

Comments
 (0)