Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Accept additional Guild role for guild labeling (#62411)
Lenaf99aad788b9c
diff --git a/.github/workflows/pr_issue_labeler.yml b/.github/workflows/pr_issue_labeler.ymlindex 27e4dc86a98..1440e687bf3 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;