fix!: Add ListOptions to ListDeploymentBranchPolicies and ListCustomDeploymentRuleIntegrations#3988
Conversation
…entRuleIntegrations
gmlewis
left a comment
There was a problem hiding this comment.
Thank you, @Not-Dhananjay-Mishra!
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3988 +/- ##
=======================================
Coverage 93.52% 93.52%
=======================================
Files 207 207
Lines 17590 17596 +6
=======================================
+ Hits 16451 16457 +6
Misses 938 938
Partials 201 201 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
And now I'm left wondering why new iterators weren't created by |
|
And why didn't the CI/CD catch that the iterators had not been updated? |
Both of these functions return a struct not a array of struct. even when I add var customTestJSON = map[string]string{
"ListAllTopics": `{"names": []}`,
"ListUserInstallations": `{"installations": []}`,
"DeploymentBranchPolicyResponse": `{"branch_policies": []}`,
"ListCustomDeploymentRuleIntegrationsResponse": `{"available_custom_deployment_protection_rule_integrations": []}`,
}and run Edit : I don't think customTestJSON will work if function returns struct |
Ah! OK, maybe it needs to support the return of a struct? Sounds like a feature request! @Not-Dhananjay-Mishra - would you mind opening a new issue to add support to |
gmlewis
left a comment
There was a problem hiding this comment.
Excellent! Thank you, @Not-Dhananjay-Mishra!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
cc: @stevehipwell - @alexandear - @zyfy29
|
@Not-Dhananjay-Mishra - it will be interesting to see how #3991 affects this PR. |
|
Thank you, @alexandear! |
BREAKING CHANGE:
RepositoriesService.ListDeploymentBranchPoliciesandRepositoriesService.ListCustomDeploymentRuleIntegrationsnow accept one more parameterListOptionsRepositoriesService.ListCustomDeploymentRuleIntegrations also support pagination acc to docs.
RepositoriesService.ListDeploymentBranchPolicies also support pagination acc to docs.
Updates: #3976