Skip to content

Commit

Permalink
github: introduce actions/stale for handling issues/PRs (#391)
Browse files Browse the repository at this point in the history
Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
  • Loading branch information
kenhys authored Aug 29, 2024
1 parent f765aa3 commit 5fb50cd
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/stale-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Mark or close stale issues and PRs"
on:
schedule:
- cron: "00 11 * * *"

permissions: read-all

jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30
days-before-close: 7
stale-issue-message: "This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 7 days"
stale-pr-message: "This PR has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 7 days"
close-issue-message: "This issue was automatically closed because of stale in 7 days"
close-pr-message: "This PR was automatically closed because of stale in 7 days"
stale-pr-label: "stale"
stale-issue-label: "stale"
exempt-issue-labels: "bug,enhancement,help wanted,moreinfo,pending,question,wontfix"
exempt-pr-labels: "bug,enhancement,help wanted,moreinfo,pending,question,wontfix"
exempt-all-assignees: true
exempt-all-milestones: true

0 comments on commit 5fb50cd

Please sign in to comment.