-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: add repoRecentReleases #4
Conversation
Adds a `repoRecentReleases` command that fetches the latest releases for a given repository. Reference: muesli#84
Pull Request Test Coverage Report for Build 9875532248Details
💛 - Coveralls |
Looks great! I agree with what Carlos said, but don't have anything to point out beyond that :) |
@@ -298,6 +304,40 @@ func repo(owner, name string) Repo { | |||
} | |||
} | |||
|
|||
func repoRecentReleases(owner, name string, count int) []Release { | |||
var releases []Release |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beware though, the api might not actually reply with that many repos...
probably better to move this line a couple of lines down and do
releases := make([]Release, len(repoRecentReleasesQuery.Repository.Releases.Nodes))
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adds a
repoRecentReleases
command that fetches the latest releases for a given repository.Reference: muesli#84