From be7cfe80e399003b469a0133bd4113eb1d5b5a37 Mon Sep 17 00:00:00 2001 From: Bertrand Paquet Date: Thu, 22 Jun 2023 22:30:36 +0200 Subject: [PATCH] Fix #1555: Avoid duplication of pull reqyuest bypasser (#1711) Co-authored-by: Keegan Campbell --- github/util_v4_branch_protection.go | 1 + 1 file changed, 1 insertion(+) diff --git a/github/util_v4_branch_protection.go b/github/util_v4_branch_protection.go index 79aff4d823..d3ca38de54 100644 --- a/github/util_v4_branch_protection.go +++ b/github/util_v4_branch_protection.go @@ -411,6 +411,7 @@ func setBypassPullRequestActorIDs(actors []BypassPullRequestActorTypes, data Bra } if a.Actor.User.Login != "" { bypassActors = append(bypassActors, "/"+string(a.Actor.User.Login)) + continue } if a.Actor.App != (Actor{}) { bypassActors = append(bypassActors, a.Actor.App.ID.(string))