Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CircleCI] Add configurable number of builds to settings #1025

Merged

Conversation

dabcoder
Copy link
Contributor

@dabcoder dabcoder commented Nov 17, 2020

Add option to set the number of builds in the config

@@ -15,15 +15,17 @@ const (
type Settings struct {
common *cfg.Common

apiKey string `help:"Your CircleCI API token."`
apiKey string `help:"Your CircleCI API token."`
buildNumber int `help:"The number of build, 10 by default"`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest numberOfBuilds instead. buildNumber could be misconstrued as a specific build number (ie. 453) rather than a quantity.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. Adressed this in 5b17ddf, thanks for the review.
Not sure why the linting fails in https://github.com/wtfutil/wtf/pull/1025/checks?check_run_id=1421195730 though.

@senorprogrammer
Copy link
Collaborator

Looks great to me. One small request and then I'm happy to merge it.

@dabcoder dabcoder marked this pull request as ready for review November 18, 2020 22:57
@senorprogrammer
Copy link
Collaborator

That linting error is strange, and I'm going to ignore it.

@senorprogrammer senorprogrammer merged commit aae1cf5 into wtfutil:master Nov 22, 2020
@senorprogrammer
Copy link
Collaborator

Good stuff!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants