Commit Graph
125 Commits
Author SHA1 Message Date

2026-08-24

ghbot c0f4dd2d3b fix: remove unused errorHasStatus helper 2026-08-24 18:59:11 +08:00
ghbot c8a32b6251 fix: address critical review findings — MergeGuard/Metrics wiring, sort NaN, conflict bypass, DRY errors
C1: Wire MergeGuard into maybeMergePullRequest (processor.ts)
C2: Wire MetricsCollector.recordMergeAttempt into merge path
C3: Wire isAlreadyMergedError from github/errors.ts (shared)
C4: Fix sort comparator NaN in markReviewCheckApproved
C5: Guard conflict resolution behind !disposition.requiresAdminApproval
C6: Extract isNotFoundError + isAlreadyMergedError to github/errors.ts
    Remove 3 duplicated local copies (chat/processor, webhook/processor, processor.ts)
R1: Create shared github/errors.ts for production code

Docs: audit-v2-final.md, critical-review-v2.md, report-v2.html, workflow_status.md
Skill: .claude/skills/ghbot-workflow/SKILL.md
2026-08-24 18:53:35 +08:00
ghbot 78bf8e9e41 feat: v2.0 iteration — test coverage, reliability, observability
M0: Test coverage expansion (151 → 321 tests, 61% → 66% lines)
  - normalizeKnowledge CRLF/LF normalization fix
  - gooseReviewer: 11 tests, 97.35% coverage
  - r2 storage: 22 tests, 100% coverage
  - triage processor: 11 tests, exported buildTriagePrompt/labelName
  - webhook processor: 35 tests, 72.39% coverage
  - conflict resolver: 12 tests
  - review processor: 7 tests

M1: Reliability hardening
  - Smart retry with jitter, maxTotalTimeoutMs, custom retryable predicate
  - MergeGuard: in-memory merge dedup tracker (100% coverage)
  - failureMessages: 7-category failure classifier (100% coverage)

M2: Observability
  - MetricsCollector: Actions-run metrics with snapshot/markdown/reset
  - 11 tests, 100% coverage

New files: 12 test files, 3 source modules
All gates: typecheck ✓ lint ✓ format ✓ 321/321 tests ✓ build ✓
2026-08-24 17:34:04 +08:00

2026-08-23

wdawdwaandClaude Opus 4.8 db53296d78 refactor: extract event router and bump version to v1.2.0 (7.1)
Decouple Actions event dispatching from runReview.ts into a pluggable
EventRouter with independent handlers for pull_request_target, issues,
issue_comment, pull_request_review, and schedule. Add unit tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-23 17:05:41 +08:00
wdawdwa 9ad6b58398 docs: finalize workflow status and review dispositions 2026-08-23 16:33:10 +08:00
wdawdwaandClaude Opus 4.8 039acabd96 fix: production hardening for merge races, timeouts, and webhook ops
Pin merge SHA, lock conflict repair, bound subprocess/proxy output,
fail-fast incomplete R2/webhook config, redact validation/stderr
secrets, and document that webhook 202 is best-effort after ACK.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-23 15:44:08 +08:00
wdawdwa d6f33a71c3 docs: archive riper5 record for v1.1.0 iteration 2026-08-23 12:12:38 +08:00
wdawdwa 8304c983fb style: prettier pass 2026-08-23 11:56:12 +08:00
wdawdwa 31ff19e73d feat: redact command failure output before exposure (8.4) 2026-08-23 11:55:16 +08:00
wdawdwa 65907f4ee5 test: update goose-cli redaction test to explicit sentinel 2026-08-23 11:46:53 +08:00
wdawdwa cd30a49dcc refactor: explicit sentinel for validation command redaction (D-09) 2026-08-23 11:43:04 +08:00
wdawdwa 3408c9dc77 feat: unified command ack messages with expectations (6.3) 2026-08-23 11:37:31 +08:00
wdawdwa a35587e2ef feat: add status banner and collapsible unposted findings to review body (6.1) 2026-08-23 11:31:39 +08:00
wdawdwa d9666c94a7 feat: centralize runtime directories behind GHBOT_RUNTIME_DIR (D-13) 2026-08-23 11:26:48 +08:00
wdawdwa 941e1d2681 refactor: deduplicate listPullRequestFiles into github/pulls.ts (D-02) 2026-08-23 11:20:16 +08:00

2026-08-22

wdawdwa 5a2e902a9e docs: archive riper5 task record for v1.0.0 delivery 2026-08-22 21:06:08 +08:00
wdawdwa dc3736aa1c chore: release v1.0.0 with dev gates docs and E2E record
- bump version to 1.0.0
- document typecheck/lint/format/test gates in both READMEs
- add webhook /metrics and /healthz to docs
- record real HTTP E2E verification results
2026-08-22 20:25:20 +08:00
wdawdwa 66d0628d20 fix: remove unused import flagged by eslint 2026-08-22 19:00:31 +08:00
wdawdwa b1b76cdbf9 test: cover chat language routing and requester context 2026-08-22 18:56:32 +08:00
wdawdwa 5bc1486be6 feat: add webhook /metrics endpoint with Prometheus output (5.2) 2026-08-22 18:44:37 +08:00
wdawdwa 98d2557c32 ci: add verify workflow running typecheck, lint, format, and tests 2026-08-22 18:24:28 +08:00
wdawdwa afd49f7d85 fix: remove unused variable flagged by eslint 2026-08-22 18:20:17 +08:00
wdawdwa f4c8f27a19 test: cover final conflict confirmation parsing and failure taxonomy 2026-08-22 18:16:58 +08:00
wdawdwa 50f33fa145 test: cover permission denied message format 2026-08-22 18:12:02 +08:00
wdawdwa 2c09130726 test: cover goose agent env isolation and output redaction 2026-08-22 18:10:16 +08:00
wdawdwa 594592046b style: prettier pass 2026-08-22 18:06:37 +08:00
wdawdwa dcaa27db9a feat: retry failed webhook deliveries in-process before GitHub redelivery (4.6) 2026-08-22 18:05:46 +08:00
wdawdwa a1b03c2d87 fix: prevent duplicate merges with live-state recheck and idempotent catch (4.5) 2026-08-22 17:59:41 +08:00
wdawdwa 70f964070d feat: isolate comment command handlers and skip bot authors (4.2, 8.1)
- /recheck, /conflict, and @bot now run independently via allSettled
- bot-authored comments are skipped before dispatch to prevent loops
2026-08-22 17:51:45 +08:00
wdawdwa 84276bcd1e test: cover patch compaction budget behavior (D-10) 2026-08-22 17:48:10 +08:00
wdawdwa 1c3d6938a6 test: cover review processor plan, commands, and format bodies (M1) 2026-08-22 17:43:17 +08:00
wdawdwa a02dea31d7 feat: centralize sanitization and secret redaction (8.2, 8.4)
- add shared PROTECTED_* policy in security/sanitization.ts used by chat snapshot and conflict path validator
- add security/secrets.ts redaction; repository knowledge validation now reuses it
- extend protected deploy configs (vercel.json, wrangler.*, netlify.toml)
2026-08-22 17:20:52 +08:00
wdawdwa ec0d5572ff feat: sanitize review decisions before merge policy (4.3)
- drop findings targeting unknown files or invalid lines with warnings
- force canMerge=false conservatively when blocking changes exist
2026-08-22 16:28:40 +08:00
wdawdwa 3f793d746e feat: make retry policy error-aware and expand unit coverage
- retry: retry only 5xx/429/transport errors; fail fast on 4xx
- checks/diff/r2/cacheStore: add direct unit tests (D-08, D-10 area)
- cacheStore: validate pullNumber in history object keys
- r2: export normalizeEndpoint for testability
2026-08-22 16:09:16 +08:00
wdawdwa b47302e2ff chore: add eslint/prettier gates and fix windows test failures 2026-08-22 15:16:47 +08:00
wdawdwa b366e16087 chore: project initialization
Set up working tree for initial push to lza6/ghbot-Nodeloc: commit
repository metadata files (AGENTS.md, CLAUDE.md, .gitignore),
multi-AI-tool configuration/skills (agents, claude, cline, codebuddy,
continue, junie, kiro, codegraph, opencode), and mcp/skills lockfiles
shipped with the repo.

Committed via Claude Code by lza6
2026-08-22 12:18:36 +08:00

2026-08-18

lezi-fun 625ba79dbb feat: allow organization members in webhook chat 2026-08-18 21:25:29 +08:00
lezi-fun 3adf4a41a2 fix: hide resolved review threads 2026-08-18 19:44:36 +08:00
lezi-fun ceec15bf28 fix: separate review phases and resolve stale threads 2026-08-18 18:10:34 +08:00
lezi-fun e690b530c8 feat: add optional GitHub App webhook mode 2026-08-18 17:35:35 +08:00

2026-08-14

lezi-fun 333bffb099 fix: expose conflict validation failures 2026-08-14 17:02:50 +08:00
lezi-fun 51852fcfb2 feat: verify duplicate pull requests in two stages 2026-08-14 16:12:09 +08:00
lezi-fun 23369b941e fix: hide superseded bot reviews 2026-08-14 15:00:01 +08:00
lezi-fun 5a00aa48b6 fix: attribute conflict commits to app bot 2026-08-14 14:36:33 +08:00
lezi-fun 351d3148aa fix: harden conflict resolution pipeline 2026-08-14 14:18:42 +08:00
lezi-fun decf7ab8b4 fix: extend conflict resolution budgets 2026-08-14 13:54:13 +08:00
lezi-fun 508f6423c4 fix: keep conflict editing focused 2026-08-14 13:48:44 +08:00
lezi-fun 135bc060e2 fix: avoid slow conflict whitespace retries 2026-08-14 13:40:58 +08:00
lezi-fun 785cddedd9 fix: bound conflict repair runtime 2026-08-14 13:28:18 +08:00
lezi-fun 31756e84ba fix: retry conflict validation repairs 2026-08-14 12:40:44 +08:00