Skip to content

Commit d674136

Browse files
chore: add automate staleness workflow from BCP (#655)
Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com>
1 parent a1e63df commit d674136

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Automate staleness
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 */6 * * *' # Runs every 6 hours
6+
permissions:
7+
contents: read
8+
jobs:
9+
stale:
10+
permissions:
11+
issues: write
12+
pull-requests: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Harden Runner
16+
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
17+
with:
18+
egress-policy: audit
19+
20+
- uses: actions/stale@v9
21+
id: stale
22+
with:
23+
stale-issue-message: >
24+
This issue has been automatically marked as stale because it has not had
25+
recent activity. It will be closed if no further activity occurs. Thank you
26+
for your contributions.
27+
days-before-issue-stale: 60
28+
days-before-issue-close: 7
29+
exempt-issue-labels: do-not-stale
30+
stale-issue-label: stale
31+
stale-pr-message: >
32+
This PR has been automatically marked as stale because it has not had
33+
recent activity from the author. It will be closed if no further activity occurs.
34+
If the PR was closed and you want it re-opened, let us know
35+
and we'll re-open the PR so that you can continue the contribution!
36+
days-before-pr-stale: 14
37+
days-before-pr-close: 7
38+
stale-pr-label: stale
39+
operations-per-run: 100
40+

0 commit comments

Comments
 (0)