File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,21 @@ ${commentText[trigger].body}`;
30
30
}
31
31
32
32
const baseBranch = await run ( 'git branch --show-current' ) ;
33
- const commit = await run ( `git show ${ baseBranch } -s --format=%H` ) ;
34
- const generatedCommit = await run ( 'git show -s --format=%H' ) ;
35
- const branch = `generated/${ baseBranch } ` ;
33
+ const baseCommit = await run ( `git show ${ baseBranch } -s --format=%H` ) ;
34
+
35
+ const generatedBranch = `generated/${ baseBranch } ` ;
36
+ const generatedCommit = await run (
37
+ `git show ${ generatedBranch } -s --format=%H`
38
+ ) ;
36
39
37
40
return `${ commentText . codegen . header }
38
41
39
- ${ commentText . codegen . body ( branch , commit , PR_NUMBER , generatedCommit ) } `;
42
+ ${ commentText . codegen . body (
43
+ generatedBranch ,
44
+ baseCommit ,
45
+ PR_NUMBER ,
46
+ generatedCommit
47
+ ) } `;
40
48
}
41
49
42
50
/**
You can’t perform that action at this time.
0 commit comments