diff --git a/.github/workflows/google-contributor-stale.yml b/.github/workflows/google-contributor-stale.yml new file mode 100644 index 000000000..5822d3a48 --- /dev/null +++ b/.github/workflows/google-contributor-stale.yml @@ -0,0 +1,26 @@ +# This workflow closes PRs that have had no activity for 14 days. +name: Close inactive google-contributor PRs + +on: + schedule: + - cron: "30 2 * * *" + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + pull-requests: write + + steps: + - uses: actions/stale@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + any-of-labels: "google-contributor" + days-before-pr-stale: 14 + days-before-pr-close: 0 + stale-pr-label: "" + exempt-pr-labels: "override-stale" + close-pr-message: > + This google-contributor PR has been inactive for 14 days. + days-before-issue-stale: -1 + days-before-issue-close: -1