We are looking to replace our custom-built methods for listing and updating custom property values, with the methods provided in v57.
It seems the CreateOrUpdateRepoCustomPropertyValues method has a bug however. We haven't actually tested it yet, but shouldn't the last argument be properties []*CustomPropertyValue?
// Wrong type in last arg?func (s*OrganizationsService) CreateOrUpdateRepoCustomPropertyValues(ctx context.Context, orgstring, repoNames []string, properties []*CustomProperty) (*Response, error) {
u:=fmt.Sprintf("orgs/%v/properties/values", org)
params:=struct {
RepositoryNames []string`json:"repository_names"`Properties []*CustomProperty`json:"properties"`
}{
RepositoryNames: repoNames,
Properties: properties,
}
req, err:=s.client.NewRequest("PATCH", u, params)
iferr!=nil {
returnnil, err
}
returns.client.Do(ctx, req, nil)
}
We are looking to replace our custom-built methods for listing and updating custom property values, with the methods provided in v57.
It seems the CreateOrUpdateRepoCustomPropertyValues method has a bug however. We haven't actually tested it yet, but shouldn't the last argument be
properties []*CustomPropertyValue?