Prune old releases automatically, keep the newest 3 #16

Merged
cheapnud merged 1 commit from d/release-retention into master 2026-08-16 23:40:34 +00:00
Owner
No description provided.
release workflow keeps only the newest 3 releases
All checks were successful
Claude PR Review / AI Code Review (pull_request) Successful in 11s
Build & Test / Build and Test (pull_request) Successful in 46s
11926273fb

🤖 Claude AI Code Review

  1. Summary — Adds best-effort retention logic to the release workflow to prune all but the newest 3 releases, keeping tags intact.

  2. Code Quality
    Sensible use of a try/catch to ensure pruning never breaks a release, with a clear comment explaining tag preservation.

  3. Issues

🟢 release.yml — pagination cap: ?limit=50 assumes fewer than 50 releases exist. If more accumulate, older ones beyond page 1 won't be enumerated (harmless here since you're pruning down, but the newest-3 sort is only correct within the returned page).

  1. Verdict: APPROVE

Best-effort pruning is correctly isolated so it can't fail a release. The limit assumption is acceptable given the retention intent.


📊 Tokens: 1194 input + 279 output | 💰 Cost: ~$0.0129
Generated by Claude Opus 4.8 via Gitea Actions

## 🤖 Claude AI Code Review 1. **Summary** — Adds best-effort retention logic to the release workflow to prune all but the newest 3 releases, keeping tags intact. 2. **Code Quality** ⭐⭐⭐⭐☆ Sensible use of a try/catch to ensure pruning never breaks a release, with a clear comment explaining tag preservation. 3. **Issues** 🟢 `release.yml` — pagination cap: `?limit=50` assumes fewer than 50 releases exist. If more accumulate, older ones beyond page 1 won't be enumerated (harmless here since you're pruning down, but the newest-3 sort is only correct within the returned page). 4. **Verdict**: **APPROVE** Best-effort pruning is correctly isolated so it can't fail a release. The limit assumption is acceptable given the retention intent. --- 📊 **Tokens**: 1194 input + 279 output | 💰 **Cost**: ~$0.0129 *Generated by Claude Opus 4.8 via Gitea Actions*
cheapnud merged commit a3cb1f868b into master 2026-08-16 23:40:34 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cheapnud/CheapShotcutRandomizer!16
No description provided.