Skip to content

Commit

Permalink
Add GitHub Actions workflow to mark stale issues and pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRomp authored Jan 15, 2025
1 parent 7523614 commit 7b42bb1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/stale-issues.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Mark stale issues and pull requests"

on:
schedule:
- cron: "0 11 * * *" # 3:00 Pacific Time (11:00 UTC)
workflow_dispatch: # Allows manual triggering of the workflow

permissions:
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Mark stale issues and pull requests
uses: actions/stale@v7
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs."
stale-pr-message: "This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs."
days-before-stale: 10 # Number of days of inactivity before marking an issue or PR as stale
days-before-close: 7 # Number of days to wait after marking an issue or PR as stale before closing it
stale-issue-label: "stale"
exempt-issue-labels: "pinned,security"
stale-pr-label: "stale"
exempt-pr-labels: "work-in-progress"

0 comments on commit 7b42bb1

Please sign in to comment.