File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -197,9 +197,7 @@ export const commitFilesFromBase64 = async ({
197197 fileChanges,
198198 } ) ;
199199
200- const tempRefTarget = tempCommit . createCommitOnBranch ?. ref ?. target ;
201- const tempHeadOid =
202- tempRefTarget ?. __typename === "Commit" ? tempRefTarget . oid : null ;
200+ const tempHeadOid = tempCommit . createCommitOnBranch ?. commit ?. oid ;
203201
204202 if ( ! tempHeadOid ) {
205203 throw new Error (
Original file line number Diff line number Diff line change @@ -78,13 +78,11 @@ const DELETE_REF = /* GraphQL */ `
7878const CREATE_COMMIT_ON_BRANCH = /* GraphQL */ `
7979 mutation createCommitOnBranch($input: CreateCommitOnBranchInput!) {
8080 createCommitOnBranch(input: $input) {
81+ commit {
82+ oid
83+ }
8184 ref {
8285 id
83- target {
84- ... on Commit {
85- oid
86- }
87- }
8886 }
8987 }
9088 }
You can’t perform that action at this time.
0 commit comments