feat: sync ghbot-Nodeloc v1.2.0 capabilities into upstream
Merges all 33 commits from lza6/ghbot-Nodeloc (v1.0.0 through v1.2.0) while keeping both sides' features in every conflicted file: - EventRouter dispatch extracted from runReview.ts (7.1), with the runtime environment block preserved on the review-start comment - Unified command ack messages (6.3) combined with the collapsed runtime environment block and bot signature on /recheck replies - Status banner and collapsible unposted findings in review bodies (6.1) - Centralized runtime directories behind GHBOT_RUNTIME_DIR (D-13); webhook knowledge cache now lives under tempRootDirectory() - Production hardening for merge races, timeouts, webhook ops; atomic temp-file rename for R2 cache restores kept from upstream - Webhook parity retained: triage events gated by WEBHOOK_TRIAGE_ENABLED, read-only command guidance, repository knowledge injection, runtime environment block on webhook chat replies - Sanitization/secret redaction centralization, error-aware retry, duplicate merge prevention, in-process webhook retries, /metrics - Infra: eslint/prettier gates with CI verify workflow, docs archives typecheck, eslint, prettier format:check, and 164 tests all pass.
This commit is contained in:
commit
9e47ab339e
180 files changed
+15130
-1209
No files matched your search
+10
-11
@@ -35,10 +35,7 @@ function eventLine(): string | undefined {
|
||||
|
||||
function r2CacheEnabled(): boolean {
|
||||
return Boolean(
|
||||
config.r2Endpoint &&
|
||||
config.r2BucketName &&
|
||||
config.r2AccessKeyId &&
|
||||
config.r2SecretAccessKey
|
||||
config.r2Endpoint && config.r2BucketName && config.r2AccessKeyId && config.r2SecretAccessKey
|
||||
);
|
||||
}
|
||||
|
||||
@@ -58,13 +55,15 @@ export function formatRuntimeEnvironmentDetails(mode: RuntimeMode = detectRuntim
|
||||
);
|
||||
} else {
|
||||
const event = eventLine();
|
||||
const modeLabel = mode === "actions"
|
||||
? event ? `GitHub Actions (${event})` : "GitHub Actions"
|
||||
: event ? `local run (${event})` : "local run";
|
||||
lines.push(
|
||||
`- **Mode:** ${modeLabel}`,
|
||||
`- **Runner:** ${hostLine()}`
|
||||
);
|
||||
const modeLabel =
|
||||
mode === "actions"
|
||||
? event
|
||||
? `GitHub Actions (${event})`
|
||||
: "GitHub Actions"
|
||||
: event
|
||||
? `local run (${event})`
|
||||
: "local run";
|
||||
lines.push(`- **Mode:** ${modeLabel}`, `- **Runner:** ${hostLine()}`);
|
||||
}
|
||||
|
||||
const gooseParts = [
|
||||
|
||||
Reference in new issue
Block a user