Skip to content

Commit

Permalink
Merge pull request #90 from Aijeyomah/remove-debug-statements
Browse files Browse the repository at this point in the history
Remove debug statements
  • Loading branch information
theBeginner86 authored Jan 16, 2025
2 parents f80c5a1 + 8d08964 commit 6b12558
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmd/kanvas-snapshot/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ func CreateMesheryDesign(uri, name, email string) (string, error) {
}

func GenerateSnapshot(contentID, assetLocation string, ghAccessToken string) error {
fmt.Println(len(ghAccessToken))
payload := fmt.Sprintf(`{"ref":"master","inputs":{"contentID":"%s","assetLocation":"%s"}}`, contentID, assetLocation)
req, err := http.NewRequest("POST", "https://api.github.com/repos/meshery/helm-kanvas-snapshot/actions/workflows/kanvas.yaml/dispatches", bytes.NewBuffer([]byte(payload)))
if err != nil {
Expand All @@ -221,13 +220,10 @@ func GenerateSnapshot(contentID, assetLocation string, ghAccessToken string) err
return err
}
defer resp.Body.Close()
fmt.Println(resp.Status)
bdy, err := io.ReadAll(resp.Body)
_, err = io.ReadAll(resp.Body)
if err != nil {
fmt.Println(err)
return err
}
fmt.Println(string(bdy))

return nil
}
Expand Down

0 comments on commit 6b12558

Please sign in to comment.