Skip to content

Commit

Permalink
👷 Update stale.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkun committed Dec 20, 2024
1 parent 72c8c78 commit afd275b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,35 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
# This workflow warns and then closes issues that have had no activity
# for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests

name: 'Close inactive issues'
on:
schedule:
- cron: '15 18 * * *'
- cron: '45 23 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open for 30 days with no activity.'
close-issue-message: 'This issue was closed because it has been inactive for 5 days since being marked as stale.'
days-before-stale: 30
days-before-close: 5
stale-issue-label: '⚰️ Stale'
close-issue-label: '🕸️ Inactive'
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-issue-stale: 30
days-before-issue-close: 5
stale-issue-message: >
This issue is stale because it has been open for 30 days
with no activity.
close-issue-message: >
This issue was closed because it has been inactive for 5 days
since being marked as stale.
stale-issue-label: '⚰️ Stale'
close-issue-label: '🕸️ Inactive'
exempt-issue-labels: 'bug,documentation,enhancement'
days-before-pr-stale: -1
days-before-pr-close: -1
7 changes: 7 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends: default

rules:
document-start:
present: false
truthy:
check-keys: false

0 comments on commit afd275b

Please sign in to comment.