Skip to content

Commit

Permalink
Merge pull request #48 from fnxpt/patch-1
Browse files Browse the repository at this point in the history
Include scan size on code location
Clear construction of URL for codelocations
  • Loading branch information
tandr authored Feb 10, 2020
2 parents 162ed10 + b336c5d commit a97c875
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions hubapi/codelocations-api.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type CodeLocation struct {
Name string `json:"name"`
Type string `json:"type"`
URL string `json:"url"`
ScanSize int `json:"scanSize"`
MappedProjectVersion string `json:"mappedProjectVersion"`
CreatedAt *time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`
Expand Down
2 changes: 1 addition & 1 deletion hubclient/codelocations-client.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

func (c *Client) ListAllCodeLocations(options *hubapi.GetListOptions) (*hubapi.CodeLocationList, error) {
codeLocationsURL := c.baseURL + "/api/codelocations" + hubapi.ParameterString(options)
codeLocationsURL := c.baseURL + "/api/codelocations"

var codeLocationsList hubapi.CodeLocationList
err := c.GetPage(codeLocationsURL, options, &codeLocationsList)
Expand Down

0 comments on commit a97c875

Please sign in to comment.