Skip to content

Commit

Permalink
[CI/Build] Add bot to close stale issues and PRs
Browse files Browse the repository at this point in the history
This commit adds configuration to run the `actions/stale` github
action that closes stale issues and PRs.

Further discussion is in the issue.

Closes vllm-project#9435

Signed-off-by: Russell Bryant <[email protected]>
  • Loading branch information
russellb committed Oct 16, 2024
1 parent 8345045 commit 4edea65
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: 'Close stale issues and PRs'

on:
schedule:
# Daily at 1:30 AM UTC
- cron: '30 1 * * *'

env:
LC_ALL: en_US.UTF-8

defaults:
run:
shell: bash

permissions:
contents: read

jobs:
stale:
permissions:
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: "Stale Action"
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
# Apply the `stale` label to an issue with no activity for 90 days.
days-before-issue-stale: 90
# Close the issue if no activity occurs within 30 days after being
# marked as stale.
days-before-issue-close: 30
stale-issue-label: 'stale'
stale-issue-message: >
This issue has been automatically marked as stale because it has not
had activity within 90 days. It will be automatically closed if no
further activity occurs within 30 days. Leave a comment if
you feel this issue should remain open. Thank you!
close-issue-message: >
This issue has been automatically closed due to inactivity. Please
feel free to reopen if you feel it is still relevant. Thank you!
# Apply the `stale` label to a pull request with no activity for 90 days.
days-before-pr-stale: 90
# Close the pull request if no activity occurs within 30 days after
# being marked as stale.
days-before-pr-close: 30
stale-pr-label: 'stale'
stale-pr-message: >
This pull request has been automatically marked as stale because it
has not had activity within 90 days. It will be automatically
closed if no further activity occurs within 30 days. Leave a comment
if you feel this pull request should remain open. Thank you!
close-pr-message: >
This pull request has been automatically closed due to inactivity.
Please feel free to reopen if you intend to continue working on it.
Thank you!

0 comments on commit 4edea65

Please sign in to comment.