diff --git a/cmd/upload.go b/cmd/upload.go index 281c15f..6b61b81 100644 --- a/cmd/upload.go +++ b/cmd/upload.go @@ -105,8 +105,14 @@ var uploadCmd = &cobra.Command{ opts.Content = content // upload file - _, _, err = c.Repositories.CreateFile(ctx, repo.Owner, repo.Repository, repo.Path, opts) + cr, _, err := c.Repositories.CreateFile(ctx, repo.Owner, repo.Repository, repo.Path, opts) - return err + if err != nil { + return err + } + + fmt.Println(*cr.SHA) + + return nil }, }