diff --git a/cf-admin-bot/src/main/java/org/commonhaus/automation/admin/github/TeamMemberSync.java b/cf-admin-bot/src/main/java/org/commonhaus/automation/admin/github/TeamMemberSync.java index de50484..f6b7835 100644 --- a/cf-admin-bot/src/main/java/org/commonhaus/automation/admin/github/TeamMemberSync.java +++ b/cf-admin-bot/src/main/java/org/commonhaus/automation/admin/github/TeamMemberSync.java @@ -286,6 +286,10 @@ void doSyncTeamMembers(TeamSourceConfig config, String fullTeamName, Set 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); }