Skip to content

Commit

Permalink
🎨 no email if no changes in team sync dry run
Browse files Browse the repository at this point in the history
  • Loading branch information
ebullient committed Jun 10, 2024
1 parent fb09668 commit 7449f2b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ void doSyncTeamMembers(TeamSourceConfig config, String fullTeamName, Set<String>
finalLogins.addAll(toAdd);
finalLogins.removeAll(toRemove);

if (toAdd.isEmpty() && toRemove.isEmpty()) {
// no action required
return;
}
Logins allLogins = new Logins(currentLogins, toAdd, toRemove, finalLogins);
sendDryRunEmail(fullTeamName, allLogins, dryRunEmail);
}
Expand Down

0 comments on commit 7449f2b

Please sign in to comment.