Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Aug 9, 2024
1 parent 277b7e1 commit 6a86454
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions binding/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,16 +333,19 @@ func (h *Analysis) Create(commit, encoding, issues, deps string) (err error) {
}
r := api.AnalysisManifest{Commit: commit}
file := File{client: h.client}
// post issues.
f, err := file.Post(issues)
if err != nil {
return
}
r.Issues = api.Ref{ID: f.ID}
// post deps.
f, err = file.Post(deps)
if err != nil {
return
}
r.Dependencies = api.Ref{ID: f.ID}
// post manifest.
path := Path(api.AppAnalysesRoot).Inject(Params{api.ID: h.appId})
err = h.client.Encoding(encoding).Post(path, r)
return
Expand Down

0 comments on commit 6a86454

Please sign in to comment.