diff --git a/github/util_v4_branch_protection.go b/github/util_v4_branch_protection.go index 58ed795bd2..e3e2ee1a40 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)) } } @@ -204,7 +204,10 @@ func setPushActorIDs(actors []PushActorTypes) []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)) + } + if a.Actor.App != (Actor{}) { + pushActors = append(pushActors, a.Actor.App.ID.(string)) } }