Skip to content

Commit 02cb2db

Browse files
committed
chore: remove result print
1 parent afcfd66 commit 02cb2db

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/git/git.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,12 +420,13 @@ func (g *Git) CommitAndPush(openAPIDocVersion, speakeasyVersion, doc string, act
420420
}
421421

422422
// Commit actual changes
423-
commitResult, response, err := g.client.Git.CreateCommit(context.Background(), owner, repo, &github.Commit{
423+
commitResult, _, err := g.client.Git.CreateCommit(context.Background(), owner, repo, &github.Commit{
424424
Message: github.String(commitMessage),
425425
Tree: &github.Tree{SHA: tree.SHA},
426426
Parents: []*github.Commit{parentCommit}}, &github.CreateCommitOptions{})
427-
fmt.Println("response", response, commitResult)
428-
427+
if err != nil {
428+
return "", fmt.Errorf("error committing changes: %w", err)
429+
}
429430
// Update reference
430431
newRef := &github.Reference{
431432
Ref: github.String("refs/heads/" + branch),

0 commit comments

Comments
 (0)