Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Update stale policy to match kornia-rs (#3420)

Edgar Ribaa63e3e5ec865
diff --git a/.github/stale.yml b/.github/stale.yml
deleted file mode 100644
index 04a6f8626..000000000
--- a/.github/stale.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-# Number of days of inactivity before an issue becomes stale
-daysUntilStale: 60
-# Number of days of inactivity before a stale issue is closed
-daysUntilClose: 7
-# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
-onlyLabels:
- - "bug"
-# Issues with these labels will never be considered stale
-exemptLabels:
- - help wanted
- - pinned
- - security
- - priority
-# Label to use when marking an issue as stale
-staleLabel: wontfix
-# Comment to post when marking an issue as stale. Set to `false` to disable
-markComment: >
- This issue has been automatically marked as stale because it has not had
- recent activity. It will be closed if no further activity occurs. Thank you
- for your contributions, and happy coding day :sunglasses:
-# Comment to post when closing a stale issue. Set to `false` to disable
-closeComment: false
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
new file mode 100644
index 000000000..722c306fd
--- /dev/null
+++ b/.github/workflows/stale.yml
@@ -0,0 +1,26 @@
+name: Stale
+
+on:
+ schedule:
+ - cron: "0 0 * * *" # Run daily at midnight UTC
+ workflow_dispatch:
+
+permissions:
+ issues: write
+ pull-requests: write
+
+jobs:
+ stale:
+ name: Stale Pull Requests
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/stale@v9
+ with:
+ stale-pr-message: "This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!"
+ close-pr-message: "This pull request has been automatically closed due to inactivity. Feel free to reopen it if you would like to continue working on it."
+ days-before-pr-stale: 15
+ days-before-pr-close: 7
+ stale-pr-label: "stale"
+ exempt-pr-labels: "pinned,work-in-progress,on-hold"
+ days-before-issue-stale: -1
+ days-before-issue-close: -1