diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 800790d..f652648 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -4,7 +4,7 @@ release: *CLI client (and Golang module) for deps.dev API. Free access to dependencies, licenses, advisories, and other critical health and security signals for open source package versions.* footer: | - If you encounter a problem, just open an [issue](https://github.com/edoardottt/depsdev/issues) + If you encounter a problem, just open an [issue](https://github.com/edoardottt/depsdev/issues) before: hooks: @@ -24,18 +24,17 @@ builds: - arm64 ignore: - goos: darwin - goarch: '386' + goarch: "386" - goos: windows - goarch: 'arm' + goarch: "arm" - goos: windows - goarch: 'arm64' - binary: '{{ .ProjectName }}' - main: ./cmd/depsdev/ + goarch: "arm64" + binary: "{{ .ProjectName }}" + main: ./main.go archives: -- format: zip - name_template: '{{ .ProjectName }}_{{ .Version }}_{{ if eq .Os "darwin" }}macOS{{ else }}{{ .Os }}{{ end }}_{{ .Arch }}' + - format: zip + name_template: '{{ .ProjectName }}_{{ .Version }}_{{ if eq .Os "darwin" }}macOS{{ else }}{{ .Os }}{{ end }}_{{ .Arch }}' checksum: algorithm: sha256 - diff --git a/pkg/depsdev/definitions/project.go b/pkg/depsdev/definitions/project.go index db93763..5d52e25 100644 --- a/pkg/depsdev/definitions/project.go +++ b/pkg/depsdev/definitions/project.go @@ -18,9 +18,9 @@ import "time" type Project struct { ProjectKey ProjectKey `json:"projectKey,omitempty"` - OpenIssuesCount string `json:"openIssuesCount,omitempty"` - StarsCount string `json:"starsCount,omitempty"` - ForksCount string `json:"forksCount,omitempty"` + OpenIssuesCount int `json:"openIssuesCount,omitempty"` + StarsCount int `json:"starsCount,omitempty"` + ForksCount int `json:"forksCount,omitempty"` License string `json:"license,omitempty"` Description string `json:"description,omitempty"` Homepage string `json:"homepage,omitempty"`