Skip to content

Commit 7618cfd

Browse files
authored
Merge pull request #12279 from RayBB/stale-pr-messenger
add stale PR bot
1 parent cb5f4bc commit 7618cfd

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "Stale submitter input PRs"
2+
on:
3+
schedule:
4+
- cron: "12 2 * * *"
5+
6+
jobs:
7+
stale-prs:
8+
if: github.repository_owner == 'internetarchive'
9+
runs-on: ubuntu-latest
10+
permissions:
11+
pull-requests: write
12+
steps:
13+
- uses: actions/stale@v10
14+
with:
15+
only-pr-labels: "Needs: Submitter Input"
16+
days-before-issue-stale: -1 # disable issue stale
17+
days-before-pr-close: -1 # For now, no closing just nudging
18+
days-before-pr-stale: 7
19+
stale-pr-message: >
20+
Hello! This pull request has been marked as stale because it has been
21+
waiting for submitter input for 7 days. If you're still working on
22+
this, please add a comment to keep it open. Otherwise, a maintainer
23+
will have to determine how to proceed including reassigning or opening
24+
the issue for others to work on after communicating with you.
25+
26+
For guidance on contributing, please see our
27+
[Contributing guide](https://docs.openlibrary.org/developers/CONTRIBUTING.html).
28+
close-pr-message: >
29+
This pull request has been automatically closed after being marked as
30+
stale for 7 days with no response. If you'd like to revisit this
31+
work, feel free to open a new pull request. Thank you!
32+
33+
For guidance on contributing, please see our
34+
[Contributing guide](https://docs.openlibrary.org/developers/CONTRIBUTING.html).
35+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)