Skip to content

Commit

Permalink
Fix #1555: Avoid duplication of pull reqyuest bypasser (#1711)
Browse files Browse the repository at this point in the history
Co-authored-by: Keegan Campbell <me@kfcampbell.com>
  • Loading branch information
bpaquet and kfcampbell authored Jun 22, 2023
1 parent eb1b7d9 commit be7cfe8
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 be7cfe8

Please sign in to comment.