Skip to content

Commit

Permalink
check github login instead of name
Browse files Browse the repository at this point in the history
Signed-off-by: Mauro Stettler <[email protected]>
  • Loading branch information
replay committed May 29, 2024
1 parent 6146932 commit 0a27e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/icassigner/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (a *Action) Run(ctx context.Context, event *github.IssuesEvent, dryRun bool
// check if someone from the team is already assigned (skip in this case)
for _, m := range teamMembers {
for _, a := range event.Issue.Assignees {
if a.GetName() == m.Name {
if a.GetLogin() == m.Name {
log.Printf("Found assignee %q which is member of the matched team %q. Stopping\n", m.Name, teamName)
return nil
}
Expand Down

0 comments on commit 0a27e49

Please sign in to comment.