From 4edb7eeecacd572cb1a093ffa90b7e7a07497d78 Mon Sep 17 00:00:00 2001 From: Chris Gavin Date: Fri, 1 Dec 2023 10:28:17 +0000 Subject: [PATCH] Fix an issue where upper-case letters in desired maintainers always cause a diff to be generated. --- lib/entitlements/backend/github_team/provider.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/entitlements/backend/github_team/provider.rb b/lib/entitlements/backend/github_team/provider.rb index f979c1f..7becd20 100644 --- a/lib/entitlements/backend/github_team/provider.rb +++ b/lib/entitlements/backend/github_team/provider.rb @@ -200,7 +200,7 @@ def diff_existing_updated_metadata(existing_group, group, base_diff) end existing_maintainers = existing_group.metadata_fetch_if_exists("team_maintainers") - changed_maintainers = group.metadata_fetch_if_exists("team_maintainers") + changed_maintainers = group.metadata_fetch_if_exists("team_maintainers")&.downcase if existing_maintainers != changed_maintainers base_diff[:metadata] ||= {} if existing_maintainers.nil? && !changed_maintainers.nil?