-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat: Add support for network-configurations endpoints #3497
Conversation
…endpoints Implement functionality to list, create, get, update, and delete enterprise network configurations, as well as get network settings resources. References: - GitHub REST API: https://docs.github.com/en/enterprise-cloud@latest/rest/enterprise-admin/network-configurations
…endpoints Unified the create and update into a single EnterpriseNetworkConfigurationRequest struct, Refactored struct types, fixed urls and return response in the case of an error.
…endpoints Implementation of tests for all network configuration functions.
…endpoints Adding generated accessors for all network configuration structures.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3497 +/- ##
==========================================
+ Coverage 91.02% 91.21% +0.18%
==========================================
Files 179 182 +3
Lines 15561 15930 +369
==========================================
+ Hits 14165 14531 +366
- Misses 1223 1225 +2
- Partials 173 174 +1 ☔ View full report in Codecov by Sentry. |
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, @jndz2!
This is looking great! Just a couple minor tweaks, please, then we should be ready for a second LGTM+Approval from any other contributor to this repo before merging.
@stevehipwell - might you have time for a code review? Thank you!
…nction signature.
All code suggestions fixed. |
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, @jndz2!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
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.
Whups, I did it again!
I've got to remember to wait for tests to pass first.
Please address step 4 of CONTRIBUTING.md before we proceed and push the changes.
Interesting the generate script ignores my type change from *[]string to []string. Do I also have to call the metadata script here, because of this warnings? could not find operation "GET /enterprises/{enterprise}/network-configurations" in openapi_operations.yaml |
Hmmm... That's odd. Maybe we have a bug in our generators? |
Okay, it seems like I'm stuck. When I run the tests, I don't get any errors, I have run all the scripts and only get the information “could not find operation”. |
Sorry about that. It looks like we may have introduced a flaky test recently. Rerunning the jobs appears to have fixed it. |
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, @jndz2!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
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
Thank you, @stevehipwell! |
This pull request introduces support for the hosted compute network configurations in the go-github library, addressing #3462.
Changes Include:
Implementation of API endpoints for managing network-configuration endpoints.
Support for the following operations:
Additional Information:
API Reference: GitHub REST API: Network Configurations.