feat: add auto-merge script to clear PR backlog #126

Merged
pook merged 1 commit from feature/auto-merge-script into main 2026-04-09 06:14:41 -04:00
Owner

Summary

  • Adds scripts/auto-merge.sh that queries Forgejo API for all open PRs, checks CI status and merge conflicts, then squash-merges qualifying PRs oldest-first
  • Supports --dry-run flag for safe preview without making changes
  • Handles API rate limits with configurable delay between requests, logs merged and skipped PRs with reasons

Test plan

  • Run ./scripts/auto-merge.sh --help to verify usage output
  • Run FORGEJO_TOKEN=<token> ./scripts/auto-merge.sh --dry-run to preview mergeable PRs
  • Verify only PRs with passing CI and no conflicts are listed for merge
  • Run without --dry-run to confirm actual merges and comment posting

🤖 Generated with Claude Code

## Summary - Adds `scripts/auto-merge.sh` that queries Forgejo API for all open PRs, checks CI status and merge conflicts, then squash-merges qualifying PRs oldest-first - Supports `--dry-run` flag for safe preview without making changes - Handles API rate limits with configurable delay between requests, logs merged and skipped PRs with reasons ## Test plan - [ ] Run `./scripts/auto-merge.sh --help` to verify usage output - [ ] Run `FORGEJO_TOKEN=<token> ./scripts/auto-merge.sh --dry-run` to preview mergeable PRs - [ ] Verify only PRs with passing CI and no conflicts are listed for merge - [ ] Run without `--dry-run` to confirm actual merges and comment posting 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat: add auto-merge script to clear PR backlog
Some checks are pending
agent-worker/pr-tests Running PR tests...
66b7e9cae9
Adds scripts/auto-merge.sh that queries Forgejo API for open PRs,
checks CI status and merge conflicts, then squash-merges qualifying
PRs oldest-first. Supports --dry-run for safe preview. Handles API
rate limits with configurable delay between requests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Owner

⚠️ No Test Suite Detected

Commit: 66b7e9ca

No test script found in package.json. Add a test script to enable automated testing.

## ⚠️ No Test Suite Detected **Commit:** `66b7e9ca` No `test` script found in `package.json`. Add a test script to enable automated testing.
pook merged commit da7a2141b5 into main 2026-04-09 06:14:41 -04:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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
pook/compliancebot!126
No description provided.