Skip to content

Commit

Permalink
Fix integrations#1555: Avoid duplication of pull reqyuest bypasser (i…
Browse files Browse the repository at this point in the history
…ntegrations#1711)

Co-authored-by: Keegan Campbell <me@kfcampbell.com>
  • Loading branch information
bpaquet and kfcampbell authored Jun 22, 2023
1 parent ce023b5 commit 6b06d13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions github/util_v4_branch_protection.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 6b06d13

Please sign in to comment.