Skip to content

Commit

Permalink
Merge pull request #38 from kintone/chore-setup-actions-stale
Browse files Browse the repository at this point in the history
chore: add actions/stale
  • Loading branch information
0gr authored Oct 18, 2022
2 parents dfffd32 + 42ec489 commit bdc0436
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Close inactive issues and PRs"
on:
schedule:
- cron: "45 3 * * *"

jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
contents: write
steps:
- uses: actions/stale@v6
with:
days-before-stale: 30
days-before-close: 14
stale-issue-label: "stale"
stale-pr-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 14 days."
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
stale-pr-message: "This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 14 days."
close-pr-message: "This PR was closed because it has been inactive for 14 days since being marked as stale."
delete-branch: true

0 comments on commit bdc0436

Please sign in to comment.