forked from rinafcode/teachLink_contract
-
Notifications
You must be signed in to change notification settings - Fork 0
122 lines (96 loc) · 3.89 KB
/
stale-issues.yml
File metadata and controls
122 lines (96 loc) · 3.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: Stale Issue Management
on:
schedule:
# Run every day at midnight UTC
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Mark stale issues and PRs
uses: actions/stale@v9
with:
# Issue configuration
stale-issue-message: |
👋 This issue has been automatically marked as stale because it has not had recent activity.
It will be closed in 14 days if no further activity occurs.
If this issue is still relevant:
- Comment with an update on the status
- Remove the `stale` label
Thank you for your contributions to TeachLink! 🎓
stale-issue-label: 'stale'
days-before-issue-stale: 30
days-before-issue-close: 14
# Exempt labels - these issues won't go stale
exempt-issue-labels: |
priority: critical
priority: high
security
pinned
in-progress
help wanted
good first issue
# PR configuration
stale-pr-message: |
👋 This pull request has been automatically marked as stale because it has not had recent activity.
It will be closed in 14 days if no further activity occurs.
If you're still working on this:
- Push new commits to update the PR
- Comment with a status update
- Remove the `stale` label
Thank you for your contributions to TeachLink! 🎓
stale-pr-label: 'stale'
days-before-pr-stale: 30
days-before-pr-close: 14
# Exempt PR labels
exempt-pr-labels: |
priority: critical
priority: high
security
work-in-progress
awaiting-review
# Close message
close-issue-message: |
🔒 This issue has been automatically closed due to inactivity.
If this issue is still relevant, please feel free to reopen it or create a new issue with updated information.
Thank you for your interest in TeachLink! 🎓
close-pr-message: |
🔒 This pull request has been automatically closed due to inactivity.
If you'd like to continue this work, please feel free to reopen or create a new PR.
Thank you for your contributions to TeachLink! 🎓
# Don't close issues with these labels even if stale
close-issue-reason: 'not_planned'
# Operations per run (to avoid rate limiting)
operations-per-run: 100
# Remove stale label when updated
remove-stale-when-updated: true
# Only process issues/PRs with activity in the last year
start-date: '2025-01-01'
# Weekly summary of stale items
stale-summary:
runs-on: ubuntu-latest
if: github.event_name == 'schedule'
steps:
- name: Generate stale summary
uses: actions/github-script@v7
with:
script: |
const { data: issues } = await github.rest.issues.listForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open',
labels: 'stale',
per_page: 100
});
if (issues.length > 0) {
console.log(`Found ${issues.length} stale issues:`);
issues.forEach(issue => {
console.log(` #${issue.number}: ${issue.title}`);
});
} else {
console.log('No stale issues found.');
}