# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. name: 'Close Stale PRs' on: schedule: - cron: '30 1 * * *' workflow_dispatch: permissions: pull-requests: write jobs: stale: runs-on: ubuntu-latest steps: - uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9 with: days-before-issue-stale: -1 days-before-issue-close: -1 days-before-pr-stale: 3 days-before-pr-close: 0 stale-pr-message: 'This PR has been inactive for 72 hours. Closing to keep the queue clean.' close-pr-message: 'This PR was closed because it has been stalled for 72 hours. Feel free to magically reopen it if you want to continue working on it!' exempt-pr-labels: 'keep-alive'