From 2be2b7175a845830c84b33609173527420b947ff Mon Sep 17 00:00:00 2001 From: nobe4 Date: Mon, 3 Aug 2026 08:25:17 +0200 Subject: [PATCH 1/3] fix(github_team): rescue all UnprocessableEntity For all intent and purposes, every cases of UnprocessableEntity should be rescued, as they might all lead to the same underlying issue of a user blocking the invites. This means that the full reconciliation will have to happen out of bounds, but at least the deployment will not fail. --- lib/entitlements/backend/github_team/service.rb | 2 -- 1 file changed, 2 deletions(-) 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 From 526be25e6b42c1865f8292b94c01af9de591ef30 Mon Sep 17 00:00:00 2001 From: nobe4 Date: Mon, 3 Aug 2026 08:27:37 +0200 Subject: [PATCH 2/3] chore(version): bump --- Gemfile.lock | 4 ++-- lib/version.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 66f7a13..69696fd 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) @@ -180,4 +180,4 @@ DEPENDENCIES webmock (~> 3.23, >= 3.23.1) BUNDLED WITH - 2.5.9 + 2.7.2 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 From 31c762cd87e3a2898158952b954d44c6ef54de81 Mon Sep 17 00:00:00 2001 From: nobe4 Date: Mon, 3 Aug 2026 08:29:45 +0200 Subject: [PATCH 3/3] fix(Gemfile): downgrade to prevent change My local is newer, which I didn't mean to push. --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 69696fd..b7bd657 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -180,4 +180,4 @@ DEPENDENCIES webmock (~> 3.23, >= 3.23.1) BUNDLED WITH - 2.7.2 + 2.5.9