Uh oh!
There was an error while loading. Please reload this page.
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. |
gmlewis
left a comment
There was a problem hiding this comment.
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!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jndz2
commented
Mar 2, 2025
All code suggestions fixed. |
gmlewis
left a comment
There was a problem hiding this comment.
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.
jndz2
commented
Mar 2, 2025
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 |
gmlewis
commented
Mar 2, 2025
Hmmm... That's odd. Maybe we have a bug in our generators? |
jndz2
commented
Mar 3, 2025
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”. |
gmlewis
commented
Mar 3, 2025
Sorry about that. It looks like we may have introduced a flaky test recently. Rerunning the jobs appears to have fixed it. |
gmlewis
commented
Mar 3, 2025
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.