In version v48.2.0, we are getting an error trying to unmarshal the UpdateBranchProtection response:
json: cannot unmarshal object into Go struct field Protection.lock_branch of type bool: the action couldn't be fully processed, please retry command
Code snippet:
protection, res, err := c.githubClient.Repositories.UpdateBranchProtection(context.TODO(), "org", "repo", "main", request)
if err != nil {
return err
}