File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,11 +22,14 @@ describe('PR Review Workflow', () => {
2222 const rig = new TestRig ( `review-${ item . id } ` ) ;
2323 try {
2424 rig . setupMockMcp ( ) ;
25- mkdirSync ( join ( rig . testDir , '.gemini/commands' ) , { recursive : true } ) ;
26- copyFileSync (
27- '.github/commands/gemini-review.toml' ,
28- join ( rig . testDir , '.gemini/commands/gemini-review.toml' ) ,
29- ) ;
25+ const commandDir = join ( rig . testDir , '.gemini/commands' ) ;
26+ mkdirSync ( commandDir , { recursive : true } ) ;
27+
28+ const response = await fetch ( REVIEW_TOML_URL ) ;
29+ if ( ! response . ok )
30+ throw new Error ( `Failed to fetch TOML: ${ response . statusText } ` ) ;
31+ const tomlContent = await response . text ( ) ;
32+ writeFileSync ( join ( commandDir , 'pr-code-review.toml' ) , tomlContent ) ;
3033
3134 const stdout = await rig . run (
3235 [ '--prompt' , '/pr-code-review' , '--yolo' ] ,
You can’t perform that action at this time.
0 commit comments