Skip to content

Commit

Permalink
fix: update type of some field of Project struct to match response fr…
Browse files Browse the repository at this point in the history
…om deps.dev API

fixes #70
  • Loading branch information
zaibon committed May 16, 2024
1 parent bd3a91f commit 2a7aafe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
17 changes: 8 additions & 9 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

6 changes: 3 additions & 3 deletions pkg/depsdev/definitions/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 2a7aafe

Please sign in to comment.