Skip to content

Commit

Permalink
Add workflow files for automatic stale issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tronyx committed Dec 18, 2024
1 parent 133cdd4 commit 3cc5767
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Lock closed stale issue

on:
issues:
types: [closed]

jobs:
lock:
if: github.event.label.name == 'closed-no-issue-activity'
runs-on: ubuntu-latest
steps:
- uses: OSDKDev/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
21 changes: 21 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Close stale issues

on:
schedule:
- cron: "30 3 * * *"

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
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."
close-issue-message: "This issue has been closed due to lack of activity, if this issue still persists, please re-open it."
close-issue-label: "closed-no-issue-activity"
stale-issue-label: "no-issue-activity"
days-before-stale: 15
days-before-close: 90
exempt-issue-labels: "bypass-activity"
exempt-pr-labels: "bypass-activity"

0 comments on commit 3cc5767

Please sign in to comment.