From 397cbc84de333eeb56849dc90782d365b37e60d7 Mon Sep 17 00:00:00 2001 From: Lena <241371603+zelenenka@users.noreply.github.com> Date: Fri, 25 Sep 2026 12:34:36 +0000 Subject: [PATCH] Turn off PR labeling for Guild (#64772) The second cohort is done. Release Notes: - N/A --- .github/workflows/pr_issue_labeler.yml | 32 -------------------------- 1 file changed, 32 deletions(-) diff --git a/.github/workflows/pr_issue_labeler.yml b/.github/workflows/pr_issue_labeler.yml index 4a50a051b96..804c68b183a 100644 --- a/.github/workflows/pr_issue_labeler.yml +++ b/.github/workflows/pr_issue_labeler.yml @@ -2,7 +2,6 @@ # - 'community champion' for community champions # - 'bot' for bot accounts # - 'staff' for staff team members -# - 'guild' for guild members # - 'first contribution' for first-time external contributors # Labels issues by author: # - 'community champion' for community champions @@ -47,13 +46,6 @@ jobs: const STAFF_LABEL = 'staff'; const STAFF_TEAM_SLUG = 'staff'; const FIRST_CONTRIBUTION_LABEL = 'first contribution'; - const GUILD_LABEL = 'guild'; - // 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', @@ -152,26 +144,6 @@ jobs: const isStaffMember = (author) => isTeamMember(STAFF_TEAM_SLUG, author); - const isGuildMember = async (author) => { - try { - const response = await github.rest.repos.getCollaboratorPermissionLevel({ - owner: 'zed-industries', - repo: 'zed', - username: author - }); - // 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. - const roleName = (response.data.role_name || '').toLowerCase(); - return GUILD_ROLE_NAMES.some((name) => name.toLowerCase() === roleName); - } catch (error) { - if (error.status !== 404) { - throw error; - } - return false; - } - }; - const getIssueLabels = () => { if (listIncludesAuthor(COMMUNITY_CHAMPIONS, author)) { return [COMMUNITY_CHAMPION_LABEL]; @@ -197,10 +169,6 @@ jobs: labelsToAdd.push(COMMUNITY_CHAMPION_LABEL); } - if (await isGuildMember(author)) { - labelsToAdd.push(GUILD_LABEL); - } - // We use inverted logic here due to a suspected GitHub bug where first-time contributors // get 'NONE' instead of 'FIRST_TIME_CONTRIBUTOR' or 'FIRST_TIMER'. // https://github.com/orgs/community/discussions/78038