diff --git a/github/util_v4_branch_protection.go b/github/util_v4_branch_protection.go index 58ed795bd2..c10e5e948f 100644 --- a/github/util_v4_branch_protection.go +++ b/github/util_v4_branch_protection.go @@ -190,7 +190,7 @@ func setDismissalActorIDs(actors []DismissalActorTypes) []string { pushActors = append(pushActors, a.Actor.Team.ID.(string)) } if a.Actor.User != (Actor{}) { - pushActors = append(pushActors, a.Actor.Team.ID.(string)) + pushActors = append(pushActors, a.Actor.User.ID.(string)) } }