Skip to content

Commit

Permalink
docs(github): update issue_stale in workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kin-Zhang committed Dec 4, 2024
1 parent 96c9968 commit 7bf9d31
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/issue_stale.yaml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/issue_stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Close inactive issues
on:
schedule:
- cron: "35 11 * * *"

env:
DAYS_BEFORE_ISSUE_STALE: 30
DAYS_BEFORE_ISSUE_CLOSE: 14

jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
with:
days-before-issue-stale: ${{ env.DAYS_BEFORE_ISSUE_STALE }}
days-before-issue-close: ${{ env.DAYS_BEFORE_ISSUE_CLOSE }}
stale-issue-label: "stale"
stale-issue-message: |
This issue is stale because it has been open for ${{ env.DAYS_BEFORE_ISSUE_STALE }} days with no activity.
It will be closed if no further activity occurs.
close-issue-message: |
This issue is being closed because it has been stale for ${{ env.DAYS_BEFORE_ISSUE_CLOSE }} days with no activity.
days-before-pr-stale: -1
days-before-pr-close: -1
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7bf9d31

Please sign in to comment.