fix(ci): drop redundant pull_request trigger, name prune runs #105
No reviewers
Labels
No labels
Kind/Bug
Kind/Feature
Priority/High
Priority/Medium
Reviewed/Confirmed
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ai-collab/bulk-image-organizer!105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "0.1.35-enhancement.103"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Follow-up to #103 / #104, found while watching the merged PR's checks:
ci.ymlstill triggered on bothpush(any branch) andpull_request(tomain), so every push to a branch with an open PR produced two fullci.ymlruns for the identical commit — visible on the PR as duplicate same-named jobs suffixed-1(build-appimage-1,build-windows-exe-1).pull_requesttrigger fromci.yml. All branches in this repo are same-repo (never forks), so thepush-triggered run already reports status checks against the PR's head commit; the separate trigger added no coverage, only a redundant lint/test run.run-name:toprune-dev-release.ymlandprune-orphaned-releases.yml. Both fire on events with no associated commit (delete,schedule), so their Actions-list run titles defaulted to the bare workflow name with no indication of which branch was pruned / which sweep ran. They now showPrune dev release: <branch>andScheduled dev-release sweep #<run-number>.docs/DECISIONS.mdDR-022 updated to record both.No application code changed;
VERSIONstays0.1.35.Test plan
ruff check . && ruff format --check .pytest(363 passed, 1 skipped)yaml.safe_load)-1suffixes)prune-dev-release.yml only fires on a single branch's delete webhook and has no way to recover a missed event or clear backlog. A live audit found 12 of 19 releases on the real instance were orphaned (branch gone, or a PR#-numbered duplicate of a correctly-named dev release). scripts/prune-orphaned-dev-releases.py lists releases and branches via the Forgejo API, keeps every v{version} tag plus any dev-* tag whose slug matches a live branch, and deletes the rest. It's wired into scripts/prune-merged-branches.py (run by agents per AGENTS.md step 8, with a --skip-release-prune escape hatch) and into a new best-effort daily schedule workflow, prune-orphaned-releases.yml, as a second safety net.086554acb61d57698b0b