Skip to content

Commit 6cff2ac

Browse files
authored
CI: close stale PRs (open-telemetry#1043)
Signed-off-by: Florian Lehner <florian.lehner@elastic.co>
1 parent 05ea2bf commit 6cff2ac

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/stale.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Close stale pull requests"
2+
on:
3+
schedule:
4+
- cron: "15 8 * * *"
5+
6+
permissions: read-all
7+
8+
jobs:
9+
stale:
10+
permissions:
11+
pull-requests: write # for actions/stale to close stale PRs
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/stale@997185467fa4f803885201cee163a9f38240193d # v10.1.1
15+
with:
16+
repo-token: ${{ secrets.GITHUB_TOKEN }}
17+
stale-pr-message: "This PR was marked stale due to lack of activity. It will be closed in 14 days."
18+
close-pr-message: "Closed as inactive. Feel free to reopen if this PR is still being worked on."
19+
days-before-pr-stale: 28
20+
days-before-pr-close: 14

0 commit comments

Comments
 (0)