Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 26 additions & 18 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: 'Mark stale issues and pull requests'

# Run as a daily cron at 1:30 AM
# Run as a daily cron at 00:30 UTC (Beijing time 08:30).
# Avoid the top of the hour to dodge GitHub's high-contention window,
# and stay 30 minutes after release.yml (00:00 UTC) to reduce overlap.
on:
schedule:
- cron: '30 1 * * *'
- cron: '30 0 * * *'
workflow_dispatch:

jobs:
stale:
runs-on: 'ubuntu-latest'
if: |-
${{ github.repository == 'google-gemini/gemini-cli' }}
permissions:
issues: 'write'
pull-requests: 'write'
Expand All @@ -21,19 +21,27 @@ jobs:
- uses: 'actions/stale@5bef64f19d7facfb25b37b414482c7164d639639' # ratchet:actions/stale@v9
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
stale-issue-message: >-
This issue has been automatically marked as stale due to 60 days of inactivity.
It will be closed in 14 days if no further activity occurs.
# Issues are intentionally disabled here; a separate policy will
# be introduced once issue triage labels are in place.
days-before-issue-stale: -1
days-before-issue-close: -1
# Pull requests: 60 days to stale + 30 days to close.
days-before-pr-stale: 60
days-before-pr-close: 30
stale-pr-label: 'status/stale'
stale-pr-message: >-
This pull request has been automatically marked as stale due to 60 days of inactivity.
It will be closed in 14 days if no further activity occurs.
close-issue-message: >-
This issue has been closed due to 14 additional days of inactivity after being marked as stale.
If you believe this is still relevant, feel free to comment or reopen the issue. Thank you!
This pull request has had no activity for 60 days and is being marked as stale.
It will be closed in another 30 days if no further activity occurs.
To keep it open, push a new commit or leave a comment.
Maintainers may apply `pinned`, `status/blocked`, `status/on-hold`,
or `status/ready-for-merge` to exempt it from auto-close.
close-pr-message: >-
This pull request has been closed due to 14 additional days of inactivity after being marked as stale.
If this is still relevant, you are welcome to reopen or leave a comment. Thanks for contributing!
days-before-stale: 60
days-before-close: 14
exempt-issue-labels: 'pinned,security'
exempt-pr-labels: 'pinned,security'
This pull request has been closed after 30 additional days of inactivity.
You are welcome to reopen it or submit a new pull request if the change is still relevant.
Thanks for contributing!
exempt-pr-labels: 'pinned,security,status/blocked,status/on-hold,status/ready-for-merge'
remove-stale-when-updated: true
ascending: true
# Cap per-run API operations to stay well under GitHub's hourly rate limit
# and give the current PR backlog (~150) enough headroom across a few runs.
operations-per-run: 100
Loading