Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

ci: extend stale workflow to cover PRs and improve clarity

Steven2be4a52e1a11
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index 761d3f2fe..18991fec3 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -1,18 +1,24 @@
-name: Stale Issues
+name: Close Stale
on:
schedule:
- - cron: "0 */8 * * *" # Every 8 hours
+ - cron: "0 */8 * * *" # Every 8 hours
jobs:
close-stale:
- name: Close Stale Issues
+ name: Close Stale Issues and PRs
runs-on: ubuntu-latest
permissions:
issues: write
+ pull-requests: write
steps:
- - name: Close stale issues
+ - name: Mark and close stale issues and PRs
uses: actions/[email protected]
with:
+ # Issues: mark stale after 14 days of inactivity, close after 3 more days
days-before-issue-stale: 14
- days-before-issue-close: 7
+ days-before-issue-close: 3
+
+ # Pull requests: mark stale after 14 days of inactivity, close after 3 more days
+ days-before-pr-stale: 14
+ days-before-pr-close: 3