Skip to content

Commit c027de6

Browse files
committed
ci: add Dependabot (GitHub Actions) and a stale issue/PR bot
- dependabot.yml: monthly grouped updates for the github-actions ecosystem, with a 7-day cooldown. - stale.yml: close inactive issues and PRs, scoped to specific status labels rather than all activity. Signed-off-by: Pouyanpi <13303554+Pouyanpi@users.noreply.github.com>
1 parent 6cb7030 commit c027de6

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: monthly
7+
cooldown:
8+
default-days: 7
9+
groups:
10+
github-actions:
11+
patterns:
12+
- "*"

.github/workflows/stale.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Close stale issues and PRs
2+
3+
on:
4+
schedule:
5+
- cron: "0 14 * * *"
6+
workflow_dispatch:
7+
8+
permissions: {}
9+
10+
jobs:
11+
stale:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
steps:
17+
- uses: actions/stale@v9
18+
with:
19+
any-of-issue-labels: "status: needs info,status: waiting confirmation"
20+
days-before-issue-stale: 14
21+
days-before-issue-close: 7
22+
stale-issue-label: "status: stale"
23+
stale-issue-message: "This issue is stale because it has been open with no activity. It will be closed in 7 days if no further activity occurs."
24+
close-issue-message: "Closing this issue as it has been inactive. Please reopen if it is still relevant."
25+
26+
any-of-pr-labels: "status: needs info"
27+
days-before-pr-stale: 21
28+
days-before-pr-close: 7
29+
stale-pr-label: "status: stale"
30+
stale-pr-message: "This PR is stale because it has been open with no activity. It will be closed in 7 days if no further activity occurs."
31+
close-pr-message: "Closing this PR as it has been inactive. Please reopen if you intend to continue."

0 commit comments

Comments
 (0)