Skip to content

Commit

Permalink
add stale action for processing PRs and Issues (#2301)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachitnigam authored Oct 9, 2024
1 parent c7a47b1 commit 0296b95
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Mark stale issues and pull requests"

on:
schedule:
- cron: "0 0 * * *" # Runs every day at midnight

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
operations-per-run: 30
remove-stale-when-updated: true
# Pull request configuration
days-before-stale-pr: 14
days-before-stale-pr-draft: 180
days-before-close-pr: 7
stale-pr-message: "This pull request has been marked as stale due to inactivity."
close-pr-message: "Closing this pull request due to inactivity."
stale-pr-label: "S: Stale"
# Issue configuration: We only operate on issues that are waiting for a response
days-before-stale-issue: 14
days-before-close-issue: 14
only-issue-labels: "S: Awaiting response"
stale-issue-message: "Please follow-up with this issue and provide more information on how to close it or make progress on it"
close-issue-message: "Closing this issue due to inactivity."
stale-issue-label: "S: Stale"

0 comments on commit 0296b95

Please sign in to comment.