Add branch-cleanup mise task #247

Merged
eblume merged 7 commits from feature/branch-cleanup-task into main 2026-02-22 16:00:09 -08:00

7 commits

Author SHA1 Message Date
69be03ca45 Pass token via FORGEJO_TOKEN env var, not CLI argument
Avoids exposing the token in process listings. Resolution order:
--token flag > FORGEJO_TOKEN env > 1Password op read.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 15:59:35 -08:00
43b9d2968f Update changelog to mention scheduled workflow
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 15:56:31 -08:00
ddc809f1f9 Use Forgejo API for branch deletion, add scheduled workflow
- Switch remote branch deletion from git push to Forgejo API
- Token resolved from 1Password locally, --token flag for CI
- Add branch-cleanup.yaml workflow: runs ~every 10 days on schedule,
  supports manual dispatch with configurable cutoff
- Shallow checkout sufficient (no fetch-depth: 0 needed)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 15:54:38 -08:00
8ce8d39f1c Detect squash-merged branches via Forgejo API
Uses the Forgejo PR API to find branches from merged PRs, catching
squash-merged branches that git --merged misses. Also warns about
stale local branches that couldn't be confirmed as merged.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 15:36:01 -08:00
85b3d92fbf Add --yes flag to skip interactive confirmation
Needed for non-TTY contexts where the prompt defaults to N.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 15:29:00 -08:00
e3685f5ca7 Fix usage examples: mise tasks with #USAGE don't need -- separator
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 15:23:42 -08:00
add0d4ef6f Add branch-cleanup mise task for merged branch housekeeping
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 15:21:57 -08:00