Skip to content

Commit 78d63ab

Browse files
matthew29tangcopybara-github
authored andcommitted
chore: Add GH workflow for stale google-contributor PRs
PiperOrigin-RevId: 931218389
1 parent 496f230 commit 78d63ab

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This workflow closes PRs that have had no activity for 14 days.
2+
name: Close inactive google-contributor PRs
3+
4+
on:
5+
schedule:
6+
- cron: "30 2 * * *"
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
pull-requests: write
13+
14+
steps:
15+
- uses: actions/stale@v5
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
any-of-labels: "google-contributor"
19+
days-before-pr-stale: 14
20+
days-before-pr-close: 0
21+
stale-pr-label: ""
22+
exempt-pr-labels: "override-stale"
23+
close-pr-message: >
24+
This google-contributor PR has been inactive for 14 days.
25+
days-before-issue-stale: -1
26+
days-before-issue-close: -1

0 commit comments

Comments
 (0)