Skip to content

Commit

Permalink
chore:adding stale workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DhairyaMajmudar committed Jul 10, 2024
1 parent df2a4af commit 4258fc7
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Mark stale issues and pull requests

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

permissions:
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

# Message to comment on stale issues.
stale-issue-message: |
Hello! :wave:
This issue has been automatically marked as stale due to inactivity :sleeping:
It will be closed in 40 days if no further activity occurs. To keep it active, please add a comment with more details.
# Message to comment on stale pull requests.
stale-pr-message: |
Hello! :wave:
This pull request has been automatically marked as stale due to inactivity :sleeping:
It will be closed in 40 days if no further activity occurs. To keep it active, please add a comment with more details.
# Message to comment on issues that are about to be closed.
close-issue-message: "This issue did not get any activity in the past 40 days and thus has been closed. Please check if the main branch has fixed it. Please, create a new issue if the issue is not fixed."

# Message to comment on pull requests that are about to be closed.
close-pr-message: "This pull request did not get any activity in the past 40 days and thus has been closed."

# Labels to add to stale issues and pull requests.
stale-issue-label: "Status: Stale"
stale-pr-label: "Status: Stale"

# Number of days of inactivity before an issue/PR is marked as stale.
days-before-stale: 30

# Number of days of inactivity before an issue/PR is closed.
days-before-close: 40

# Remove the stale label when the issue/PR is updated.
remove-stale-when-updated: true

# Exempt labels to ignore when checking for stale issues/PRs.
exempt-pr-labels: "Status: On Hold,Status: Blocked,Status: Do not close"
exempt-issue-labels: "Status: On Hold,Status: Blocked,Status: Do not close"

0 comments on commit 4258fc7

Please sign in to comment.