style: prettier pass
This commit is contained in:
1 parent
31ff19e73d
commit
8304c983fb
4 files changed
+7
-6
No files matched your search
@@ -198,7 +198,6 @@ async function hasExistingReply(
|
|||||||
return comments.some((comment) => comment.body?.includes(marker));
|
return comments.some((comment) => comment.body?.includes(marker));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function chatReplyLanguageInstruction(commentBody: string): string {
|
export function chatReplyLanguageInstruction(commentBody: string): string {
|
||||||
const language = /\p{Script=Han}/u.test(commentBody) ? "Chinese" : "English";
|
const language = /\p{Script=Han}/u.test(commentBody) ? "Chinese" : "English";
|
||||||
return `Reply in ${language}. Determine the reply language only from the user's latest comment; do not switch languages because the PR title, description, repository files, patch, repository knowledge, or tool output uses another language.`;
|
return `Reply in ${language}. Determine the reply language only from the user's latest comment; do not switch languages because the PR title, description, repository files, patch, repository knowledge, or tool output uses another language.`;
|
||||||
|
|||||||
@@ -1104,7 +1104,6 @@ async function getLatestBotReviewOutcomeForHead(
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
async function submitReview(
|
async function submitReview(
|
||||||
octokit: Octokit,
|
octokit: Octokit,
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
@@ -358,7 +358,6 @@ async function listIssueComments(
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
async function loadReadme(octokit: Octokit, owner: string, repo: string): Promise<string> {
|
async function loadReadme(octokit: Octokit, owner: string, repo: string): Promise<string> {
|
||||||
try {
|
try {
|
||||||
const { data } = await octokit.rest.repos.getReadme({ owner, repo });
|
const { data } = await octokit.rest.repos.getReadme({ owner, repo });
|
||||||
|
|||||||
@@ -61,9 +61,13 @@ test("process logging redacts only prompts and trusted validation commands", ()
|
|||||||
"[goose prompt: 13 chars]"
|
"[goose prompt: 13 chars]"
|
||||||
]);
|
]);
|
||||||
assert.deepEqual(
|
assert.deepEqual(
|
||||||
redactProcessArgs(["run", "sh", "-lc", "npm ci && npm test"], "isolated repository validation", {
|
redactProcessArgs(
|
||||||
redactLastAsValidationCommand: true
|
["run", "sh", "-lc", "npm ci && npm test"],
|
||||||
}),
|
"isolated repository validation",
|
||||||
|
{
|
||||||
|
redactLastAsValidationCommand: true
|
||||||
|
}
|
||||||
|
),
|
||||||
["run", "sh", "-lc", "[validation command: 18 chars]"]
|
["run", "sh", "-lc", "[validation command: 18 chars]"]
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user