Skip to content

Commit 18b0181

Browse files
Add stale issue workflow
1 parent 7b82652 commit 18b0181

3 files changed

Lines changed: 27 additions & 2 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Close inactive issues
2+
3+
on:
4+
schedule:
5+
- cron: "30 1 * * *"
6+
7+
jobs:
8+
close-issues:
9+
runs-on: ubuntu-22.04
10+
permissions:
11+
issues: write
12+
pull-requests: write
13+
steps:
14+
- uses: actions/stale@v10
15+
with:
16+
days-before-issue-stale: 90
17+
days-before-issue-close: 30
18+
stale-issue-label: "stale"
19+
stale-issue-message: "This issue is stale because it has been open for 90 days with no activity."
20+
close-issue-message: "This issue was closed because it has been inactive for 30 days since being marked as stale."
21+
days-before-pr-stale: -1
22+
days-before-pr-close: -1
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ permissions:
77
jobs:
88
dependency-review:
99
name: Run
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111
steps:
1212
- name: "Checkout Repository"
1313
uses: actions/checkout@v5

AGENTS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ It captures practical rules that prevent avoidable CI and PR churn.
3737
5. Verify git diff only contains intended files.
3838
6. Never commit, push, or post on GitHub (issues, PRs, or comments) without first sharing the proposed diff/message and getting explicit user approval.
3939
7. Commit with focused message(s), using `git commit --no-verify`.
40+
- Never bypass signing (for example, do not use `--no-gpg-sign`).
41+
- If signing fails (for example, passphrase/key issues), stop and ask the user to resolve signing, then retry.
4042
8. Push branch. Ask for explicit user permission before any force push.
4143
9. Open PR against `main` using a human-readable title (no `feat(...)` / `fix(...)` prefixes).
4244
10. Add labels for both change type and semantic version impact.
@@ -45,7 +47,7 @@ It captures practical rules that prevent avoidable CI and PR churn.
4547
- verification commands run
4648
- test results summary
4749
- if semver impact is not `major`, evidence that the change is not breaking
48-
- `Closes #<issue>`
50+
- `Closes #<issue>` only when the PR is intended to close a specific issue
4951

5052
## Labels
5153

0 commit comments

Comments
 (0)