diff --git a/Gemfile.lock b/Gemfile.lock index 66f7a13..b7bd657 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - entitlements-github-plugin (1.2.2) + entitlements-github-plugin (1.2.3) contracts (~> 0.17.0) faraday (~> 2.0) faraday-retry (~> 2.0) diff --git a/lib/entitlements/backend/github_team/service.rb b/lib/entitlements/backend/github_team/service.rb index 6a993f1..dba731d 100644 --- a/lib/entitlements/backend/github_team/service.rb +++ b/lib/entitlements/backend/github_team/service.rb @@ -477,8 +477,6 @@ def add_user_to_team(user:, team:, role: "member") result[:state] == "active" || result[:state] == "pending" rescue Octokit::UnprocessableEntity => e - raise e unless ignore_not_found && e.message =~ /Enterprise Managed Users must be part of the organization to be assigned to the team/ - Entitlements.logger.warn "User #{user} not found in organization #{org}, ignoring." false rescue Octokit::NotFound => e diff --git a/lib/version.rb b/lib/version.rb index 06191dc..cd6c58b 100644 --- a/lib/version.rb +++ b/lib/version.rb @@ -2,6 +2,6 @@ module Entitlements module Version - VERSION = "1.2.2" + VERSION = "1.2.3" end end