feat: append a collapsible runtime environment to bot comments

Comments in which ghbot starts or completes an operation now end with a collapsed Runtime environment block (trigger, runner, goose model and version, review policy, automation flags, cache state) followed by a Created By GHBot signature linking to this repository. The template is shared by action-mode progress, recheck, completion, and PR chat comments; the workflow exports the pinned GOOSE_VERSION so the displayed version is truthful.
This commit is contained in:
lezi-fun committed 2026-08-22 11:36:39 +08:00
1 parent 625ba79dbb
commit ec601bef93
6 files changed
+199 -6

No files matched your search

+2 -1
View File
@@ -4,6 +4,7 @@ import type { Octokit } from "@octokit/rest";
import { runGooseAgent } from "../ai/gooseCli.js";
import { config } from "../config.js";
import { postPermissionDeniedComment } from "../github/commandFeedback.js";
import { formatBotSignature, formatRuntimeEnvironmentDetails } from "../github/runtimeInfo.js";
import { logger } from "../logger.js";
import { withRetry } from "../retry.js";
import { compactFilesForReview } from "../review/prompt.js";
@@ -145,7 +146,7 @@ export async function processPullRequestChat(
owner: params.owner,
repo: params.repo,
issue_number: params.pullNumber,
body: `${marker}\n${reply}`
body: `${marker}\n${reply}\n\n${formatRuntimeEnvironmentDetails()}\n\n${formatBotSignature()}`
});
});
}