File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -66,11 +66,11 @@ async function getCommitRange(
66
66
// if there are no args or the arg is a number, we're talking about a PR
67
67
if ( args . length === 0 || typeof args [ 0 ] === 'number' ) {
68
68
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 .
74
74
const query = `{
75
75
repository(owner: "oxidecomputer", name: "omicron") {
76
76
pullRequest(number: ${ prNum } ) {
You can’t perform that action at this time.
0 commit comments