We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3faaf4f commit 7feda55Copy full SHA for 7feda55
scripts/ci/codegen/upsertGenerationComment.ts
@@ -30,13 +30,21 @@ ${commentText[trigger].body}`;
30
}
31
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}`;
+ const baseCommit = await run(`git show ${baseBranch} -s --format=%H`);
+
+ const generatedBranch = `generated/${baseBranch}`;
36
+ const generatedCommit = await run(
37
+ `git show ${generatedBranch} -s --format=%H`
38
+ );
39
40
return `${commentText.codegen.header}
41
-${commentText.codegen.body(branch, commit, PR_NUMBER, generatedCommit)}`;
42
+${commentText.codegen.body(
43
+ generatedBranch,
44
+ baseCommit,
45
+ PR_NUMBER,
46
+ generatedCommit
47
+)}`;
48
49
50
/**
0 commit comments