Skip to content

Commit

Permalink
ci(workflows): schedule daily job to close stale issues
Browse files Browse the repository at this point in the history
  • Loading branch information
NekoAria committed Dec 2, 2024
1 parent d9c5035 commit 3ff8c30
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/close-stale-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Close stale issues

on:
schedule:
- cron: "0 0 * * *"

workflow_dispatch:

permissions:
issues: write

jobs:
close_stale_issues:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days."
close-issue-message: "This issue was closed because it has been stalled for 5 days with no activity."
days-before-issue-stale: 30
days-before-issue-close: 5
7 changes: 1 addition & 6 deletions .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,4 @@ jobs:
- uses: actions/checkout@v4

- name: Update dependencies
uses: pdm-project/update-deps-action@v1
with:
commit-message: "chore(deps): Update pdm.lock"
pr-title: "chore(deps): Update PDM dependencies"
update-strategy: "reuse"
save-strategy: "compatible"
uses: pdm-project/update-deps-action@main

0 comments on commit 3ff8c30

Please sign in to comment.