Skip to content

Commit

Permalink
Create stale.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nhduong authored Nov 24, 2024
1 parent 3eb8fb1 commit 2054a6b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Mark stale issues and pull requests

on:
schedule:
- cron: "0 0 * * *" # Runs daily
workflow_dispatch: # Allows manual triggering

jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Close stale issues and PRs
uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs."
stale-pr-message: "This pull request has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs."
days-before-stale: 7 # Number of days before marking as stale
days-before-close: 3 # Number of days before closing after being marked as stale
stale-issue-label: "stale"
exempt-issue-labels: "keep-open" # Prevents issues with this label from being marked stale
stale-pr-label: "stale"
exempt-pr-labels: "keep-open"

0 comments on commit 2054a6b

Please sign in to comment.