Add CI quality gate with PR auto-labeling #125

Closed
pook wants to merge 1 commit from feature/ci-auto-labeling into main
Owner

Summary

  • Adds Forgejo CI workflow (.forgejo/workflows/ci.yml) triggered on pull_request events
  • Runs typecheck, lint, and build jobs in parallel using Bun
  • auto-label job runs after all checks complete:
    • All pass: adds ready-to-merge label, removes needs-fix
    • Any failure: adds needs-fix label, removes ready-to-merge, posts comment with specific failure details
  • Labels auto-create and update on every push — no PR sits unlabeled after CI

Test plan

  • Open a PR with valid code → verify ready-to-merge label is applied
  • Push a commit with a type error → verify needs-fix replaces ready-to-merge and failure comment posts
  • Fix and push again → verify labels swap back
  • Verify labels are created automatically on first run

🤖 Generated with Claude Code

## Summary - Adds Forgejo CI workflow (`.forgejo/workflows/ci.yml`) triggered on pull_request events - Runs **typecheck**, **lint**, and **build** jobs in parallel using Bun - `auto-label` job runs after all checks complete: - **All pass**: adds `ready-to-merge` label, removes `needs-fix` - **Any failure**: adds `needs-fix` label, removes `ready-to-merge`, posts comment with specific failure details - Labels auto-create and update on every push — no PR sits unlabeled after CI ## Test plan - [ ] Open a PR with valid code → verify `ready-to-merge` label is applied - [ ] Push a commit with a type error → verify `needs-fix` replaces `ready-to-merge` and failure comment posts - [ ] Fix and push again → verify labels swap back - [ ] Verify labels are created automatically on first run 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Add CI quality gate with auto-labeling for PRs
Some checks failed
agent-worker/pr-tests Running PR tests...
CI Quality Gate / Type Check (pull_request) Has been cancelled
CI Quality Gate / Lint (pull_request) Has been cancelled
CI Quality Gate / Build (pull_request) Has been cancelled
CI Quality Gate / Auto Label PR (pull_request) Has been cancelled
92f064f26e
Adds a Forgejo CI workflow that runs typecheck, lint, and build on
pull requests, then auto-labels PRs as 'ready-to-merge' (all pass)
or 'needs-fix' (any failure) with actionable failure comments.
Labels update on each push so no PR sits unlabeled after CI.

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

⚠️ No Test Suite Detected

Commit: 92f064f2

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

## ⚠️ No Test Suite Detected **Commit:** `92f064f2` No `test` script found in `package.json`. Add a test script to enable automated testing.
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:17 -04:00
Some checks failed
agent-worker/pr-tests Running PR tests...
CI Quality Gate / Type Check (pull_request) Has been cancelled
CI Quality Gate / Lint (pull_request) Has been cancelled
CI Quality Gate / Build (pull_request) Has been cancelled
CI Quality Gate / Auto Label PR (pull_request) Has been cancelled

Pull request closed

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!125
No description provided.