Skip to content

Commit 24ab808

Browse files
committed
create stale.yml for repo_sync automation
repo_sync automation in prometheus/prometheus only syncs the files that exist in the target repo, so create .github/workflows/stale.yml to register and then automation will keep it in sync with prometheus/prometheus
1 parent c95ba41 commit 24ab808

File tree

2 files changed

+31
-42
lines changed

2 files changed

+31
-42
lines changed

.github/stale.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/stale.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Stale Check
2+
on:
3+
workflow_dispatch: {}
4+
schedule:
5+
- cron: '16 22 * * *'
6+
permissions:
7+
issues: write
8+
pull-requests: write
9+
jobs:
10+
stale:
11+
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
15+
with:
16+
repo-token: ${{ secrets.GITHUB_TOKEN }}
17+
# opt out of defaults to avoid marking issues as stale and closing them
18+
# https://github.com/actions/stale#days-before-close
19+
# https://github.com/actions/stale#days-before-stale
20+
days-before-stale: -1
21+
days-before-close: -1
22+
# Setting it to empty string to skip comments.
23+
# https://github.com/actions/stale#stale-pr-message
24+
# https://github.com/actions/stale#stale-issue-message
25+
stale-pr-message: ''
26+
stale-issue-message: ''
27+
operations-per-run: 30
28+
# override days-before-stale, for only marking the pull requests as stale
29+
days-before-pr-stale: 60
30+
stale-pr-label: stale
31+
exempt-pr-labels: keepalive

0 commit comments

Comments
 (0)