resolved by: #2898
Describe the need
go get github.com/google/go-github/[email protected]
Required changes
// OLD (v67/v68):
func resourceGithubRulesetObject(d *schema.ResourceData, org string) *github.Ruleset
func expandConditions(input []interface{}, org bool) *github.RulesetConditions
// NEW (v79):
func resourceGithubRulesetObject(d *schema.ResourceData, org string) *github.RepositoryRuleset
func expandConditions(input []interface{}, org bool) *github.RepositoryRulesetConditions
Breaking change:
Ruleset method signature
CreateRuleset and UpdateRuleset now pass ruleset parameter by-value instead of by-reference.
Impact:
client.Repositories.CreateRuleset(ctx, owner, repoName, rulesetReq)
client.Repositories.UpdateRulesetNoBypassActor(ctx, owner, repoName, rulesetID, rulesetReq)
client.Organizations.CreateOrganizationRuleset(ctx, owner, rulesetReq)
client.Organizations.UpdateOrganizationRuleset(ctx, owner, rulesetID, rulesetReq)
We need to update the method calls to pass by value instead of by reference (remove & operators if any).
Code of Conduct
resolved by: #2898
Describe the need
go get github.com/google/go-github/[email protected]Required changes
Breaking change:
Ruleset method signature
CreateRuleset and UpdateRuleset now pass ruleset parameter by-value instead of by-reference.
Impact:
client.Repositories.CreateRuleset(ctx, owner, repoName, rulesetReq)
client.Repositories.UpdateRulesetNoBypassActor(ctx, owner, repoName, rulesetID, rulesetReq)
client.Organizations.CreateOrganizationRuleset(ctx, owner, rulesetReq)
client.Organizations.UpdateOrganizationRuleset(ctx, owner, rulesetID, rulesetReq)
We need to update the method calls to pass by value instead of by reference (remove & operators if any).
Code of Conduct