From 1bb1d67770b79f4ff082fe07a871a1dd047a6cf0 Mon Sep 17 00:00:00 2001 From: Lena <241371603+zelenenka@users.noreply.github.com> Date: Mon, 10 Aug 2026 09:31:03 +0200 Subject: [PATCH] Accept additional Guild role for guild labeling (#62411) We added one more custom repository role that a Guild member can hold, therefore we need the labeler to accept it. Release Notes: - N/A --- .github/workflows/pr_issue_labeler.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr_issue_labeler.yml b/.github/workflows/pr_issue_labeler.yml index 27e4dc86a9..1440e687bf 100644 --- a/.github/workflows/pr_issue_labeler.yml +++ b/.github/workflows/pr_issue_labeler.yml @@ -48,9 +48,12 @@ jobs: const STAFF_TEAM_SLUG = 'staff'; const FIRST_CONTRIBUTION_LABEL = 'first contribution'; const GUILD_LABEL = 'guild'; - // Guild cohort members are outside collaborators holding this custom - // repository role, not members of an org team. - const GUILD_ROLE_NAME = 'Guild Assign issues/PRs'; + // Guild cohort members are outside collaborators holding one of these + // custom repository roles, not members of an org team. + const GUILD_ROLE_NAMES = [ + 'Guild Assign issues/PRs', + 'Guild Assign issues/PRs and Close PRs', + ]; const COMMUNITY_CHAMPION_LABEL = 'community champion'; const COMMUNITY_CHAMPIONS = [ '0x2CA', @@ -158,7 +161,8 @@ jobs: // role_name is the effective (highest) role; for cohort outside // collaborators that is the custom role. Built-in roles come back // lowercased and won't match. - return (response.data.role_name || '').toLowerCase() === GUILD_ROLE_NAME.toLowerCase(); + const roleName = (response.data.role_name || '').toLowerCase(); + return GUILD_ROLE_NAMES.some((name) => name.toLowerCase() === roleName); } catch (error) { if (error.status !== 404) { throw error;