-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add list options support for environments #2258
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
Add list options support for environments #2258
Conversation
This commit updates existing tests for ListEnvironments to ensure that they will be compatible with the EnvironmentListOptions implementation.
This commit implements EnvironmentListOptions for the ListEnvironments method by adding a new parameter and using the addOptions function. Additionally I've created a new struct called EnvironmentListOptions and embedded ListOptions with the idea that this could be expanded one day.
This commit adds an example to show how to work with ListEnvironments and it's new opts parameter.
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.
Thank you, @chelnak !
Just a few changes are needed for the example... then we will be ready for a second LGTM before merging.
Codecov Report
@@ Coverage Diff @@
## master #2258 +/- ##
=======================================
Coverage 97.81% 97.81%
=======================================
Files 114 114
Lines 10266 10269 +3
=======================================
+ Hits 10042 10045 +3
Misses 156 156
Partials 68 68
Continue to review full report at Codecov.
|
Made some minor change to this example that include removing os.Exit(), fixing some unnecessary variable declarations and godoc improvements.
@gmlewis All of your comments should now be resolved. Thanks for taking the time to review. |
"unnecessary leading newline (whitespace)"
Co-authored-by: Glenn Lewis <6598971+gmlewis@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.
Thank you, @chelnak !
LGTM.
Awaiting second LGTM before merging.
Hello! Is there anything else you would like me to change for this PR? |
No, thank you. We are awaiting any other contributor to this repo to give an LGTM and approve this PR before merging. |
Hey hey! Hope everything is going well! Wondering if we could request a review from another contributor 🙏? Appreciate everyone is super busy though. |
Thank you 🙏 😄 |
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.
LGTM.
Than you, @Parker77 ! |
import "github.com/google/go-github/v43/github" |
Closes #2257
This PR introduces an EnvironmentListOptions parameter for the ListEnvironments method.
Tests have also been updated to reflect the changes and an example has been added to the example directory.