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:
1 parent
625ba79dbb
commit
ec601bef93
6 files changed
+199
-6
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import fs from "node:fs";
|
||||
import { config } from "../config.js";
|
||||
import { createGitHubCredentials } from "../github/client.js";
|
||||
import { formatBotSignature, formatRuntimeEnvironmentDetails } from "../github/runtimeInfo.js";
|
||||
import { logger } from "../logger.js";
|
||||
import { withRetry } from "../retry.js";
|
||||
import { processPullRequestChat } from "../chat/processor.js";
|
||||
@@ -161,7 +162,11 @@ async function main(): Promise<void> {
|
||||
owner: prPayload.repository.owner.login,
|
||||
repo: prPayload.repository.name,
|
||||
issue_number: prPayload.pull_request.number,
|
||||
body: "Automated review has started. I am checking this pull request now."
|
||||
body: [
|
||||
"Automated review has started. I am checking this pull request now.",
|
||||
formatRuntimeEnvironmentDetails(),
|
||||
formatBotSignature()
|
||||
].join("\n\n")
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user