Skip to content

Commit ad05de9

Browse files
committed
tools: api-diff comment fix
1 parent 77d5849 commit ad05de9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tools/deno/api-diff.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ async function getCommitRange(
6666
// if there are no args or the arg is a number, we're talking about a PR
6767
if (args.length === 0 || typeof args[0] === 'number') {
6868
const prNum = args[0] || (await pickPr())
69-
// This commits and parents thing is absurd, but the idea is to use the
70-
// parent of the first commit as the base. If we just use the base ref
71-
// directly, hwe get the current state of main, which means the diff will
72-
// reflect both the current PR and any changes made on main since it branch
73-
// edoff.
69+
// This graphql thing is absurd, but the idea is to use the branch point as
70+
// the base, i.e., the parent of the first commit. If we use the base ref
71+
// (e.g., main) directly, we get the current state of main, which means the
72+
// diff will reflect both the current PR and any changes made on main since
73+
// it branched off.
7474
const query = `{
7575
repository(owner: "oxidecomputer", name: "omicron") {
7676
pullRequest(number: ${prNum}) {

0 commit comments

Comments
 (0)