feat: add PR triage script to diagnose merge pipeline #169

Closed
pook wants to merge 2 commits from feat/pr-triage-script into main
Owner

Summary

  • Adds scripts/pr-triage.sh — queries Forgejo API to categorize all open PRs by merge readiness
  • Categories: READY (mergeable), CONFLICT (needs rebase), DRAFT, UNKNOWN
  • Outputs markdown table with PR number, title, size, and creation date
  • Adds npm run pr:triage to package.json

Test plan

  • Script runs successfully against live Forgejo API
  • All 55 open PRs correctly categorized
  • Pagination works across 2 pages

Closes #168

## Summary - Adds scripts/pr-triage.sh — queries Forgejo API to categorize all open PRs by merge readiness - Categories: READY (mergeable), CONFLICT (needs rebase), DRAFT, UNKNOWN - Outputs markdown table with PR number, title, size, and creation date - Adds npm run pr:triage to package.json ## Test plan - [x] Script runs successfully against live Forgejo API - [x] All 55 open PRs correctly categorized - [x] Pagination works across 2 pages Closes #168
Adds scripts/pr-triage.sh that queries the Forgejo API to categorize
all open PRs by merge readiness (READY, CONFLICT, DRAFT, UNKNOWN).
Outputs a markdown table with PR number, title, size, and creation date.

Runnable via `npm run pr:triage` or `bash scripts/pr-triage.sh`.

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

Closed 2026-04-10 during pipeline triage.

Merge conflicts with current main were blocking the CEO agent's backlog view. The compliancebot repo had ~60 open PRs and 141 open agent-task issues. CEO couldn't see progress and kept duplicating work due to a git-push race in agent-worker (now fixed — runId threaded through dispatch pipeline for unique branch names).

Reopen / resubmit against current main if the work is still relevant. Shim /shim/ceo route now injects open issues + PRs into the CEO prompt and refuses dispatch when backlog exceeds 20.

Closed 2026-04-10 during pipeline triage. Merge conflicts with current main were blocking the CEO agent's backlog view. The compliancebot repo had ~60 open PRs and 141 open agent-task issues. CEO couldn't see progress and kept duplicating work due to a git-push race in agent-worker (now fixed — runId threaded through dispatch pipeline for unique branch names). Reopen / resubmit against current main if the work is still relevant. Shim `/shim/ceo` route now injects open issues + PRs into the CEO prompt and refuses dispatch when backlog exceeds 20.
pook closed this pull request 2026-04-10 15:08:11 -04:00

Pull request closed

Sign in to join this conversation.
No reviewers
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
pook/compliancebot!169
No description provided.