mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 21:03:05 -07:00
18 lines
773 B
TypeScript
18 lines
773 B
TypeScript
import { TaskRunner } from '../TaskRunner.ts';
|
|
import path from 'path';
|
|
|
|
export async function runReviewPlaybook(prNumber: string, targetDir: string, policyPath: string, geminiBin: string) {
|
|
const runner = new TaskRunner(
|
|
path.join(targetDir, `.gemini/logs/workspace-${prNumber}`),
|
|
`🚀 Workspace | REVIEW | PR #${prNumber}`
|
|
);
|
|
|
|
runner.register([
|
|
{ id: 'build', name: 'Fast Build', cmd: `cd ${targetDir} && npm ci && npm run build` },
|
|
{ id: 'ci', name: 'CI Checks', cmd: `gh pr checks ${prNumber}` },
|
|
{ id: 'review', name: 'Workspaceed Review', cmd: `${geminiBin} --policy ${policyPath} --cwd ${targetDir} -p "Please activate the 'review-pr' skill and use it to conduct a behavioral review of PR #${prNumber}."` }
|
|
]);
|
|
|
|
return runner.run();
|
|
}
|