This commit is contained in:
2026-03-26 11:59:57 +00:00
parent 2d3e15231a
commit ee719f36a8
2 changed files with 6 additions and 5 deletions

View File

@@ -377,9 +377,10 @@ const BASE_BOOKMARK_PROMPT_FALLBACK =
"Review the code changes against the base bookmark '{bookmark}'. Start by finding the merge-base revision between the working copy and {bookmark}, then run `jj diff --from <merge-base> --to @` to see what changes would land on the {bookmark} bookmark. Provide prioritized, actionable findings."; "Review the code changes against the base bookmark '{bookmark}'. Start by finding the merge-base revision between the working copy and {bookmark}, then run `jj diff --from <merge-base> --to @` to see what changes would land on the {bookmark} bookmark. Provide prioritized, actionable findings.";
const CHANGE_PROMPT_WITH_TITLE = const CHANGE_PROMPT_WITH_TITLE =
'Review the code changes introduced by change {changeId} ("{title}"). Provide prioritized, actionable findings.'; 'Review the code changes introduced by change {changeId} ("{title}"). Run `jj diff --from {changeId}- --to {changeId}` to inspect the changes introduced by this change. Provide prioritized, actionable findings.';
const CHANGE_PROMPT = "Review the code changes introduced by change {changeId}. Provide prioritized, actionable findings."; const CHANGE_PROMPT =
"Review the code changes introduced by change {changeId}. Run `jj diff --from {changeId}- --to {changeId}` to inspect the changes introduced by this change. Provide prioritized, actionable findings.";
const PULL_REQUEST_PROMPT = const PULL_REQUEST_PROMPT =
'Review pull request #{prNumber} ("{title}") against the base bookmark \'{baseBookmark}\'. The merge-base revision for this comparison is {mergeBaseSha}. Run `jj diff --from {mergeBaseSha} --to @` to inspect the changes that would be merged. Provide prioritized, actionable findings.'; 'Review pull request #{prNumber} ("{title}") against the base bookmark \'{baseBookmark}\'. The merge-base revision for this comparison is {mergeBaseSha}. Run `jj diff --from {mergeBaseSha} --to @` to inspect the changes that would be merged. Provide prioritized, actionable findings.';
@@ -979,9 +980,9 @@ async function buildReviewPrompt(
case "change": case "change":
if (target.title) { if (target.title) {
return CHANGE_PROMPT_WITH_TITLE.replace("{changeId}", target.changeId).replace("{title}", target.title); return CHANGE_PROMPT_WITH_TITLE.replace(/{changeId}/g, target.changeId).replace("{title}", target.title);
} }
return CHANGE_PROMPT.replace("{changeId}", target.changeId); return CHANGE_PROMPT.replace(/{changeId}/g, target.changeId);
case "pullRequest": { case "pullRequest": {
const baseBookmarkLabel = bookmarkRefToLabel({ name: target.baseBookmark, remote: target.baseRemote }); const baseBookmarkLabel = bookmarkRefToLabel({ name: target.baseBookmark, remote: target.baseRemote });

View File

@@ -41,7 +41,7 @@
autohide = true; autohide = true;
show-recents = false; show-recents = false;
launchanim = true; launchanim = true;
orientation = "bottom"; orientation = "left";
tilesize = 60; tilesize = 60;
minimize-to-application = true; minimize-to-application = true;
mru-spaces = false; mru-spaces = false;