From 32c8d2821b8d02e8702692bbd181551f3ac64bf4 Mon Sep 17 00:00:00 2001 From: Elliot DeNolf Date: Tue, 24 Sep 2024 16:03:44 -0400 Subject: [PATCH] ci: add missing gh usernames for label-author --- .github/workflows/label-author.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/label-author.yml b/.github/workflows/label-author.yml index b0084c1fb..ff7c2ebfd 100644 --- a/.github/workflows/label-author.yml +++ b/.github/workflows/label-author.yml @@ -32,11 +32,25 @@ jobs: script: | const type = context.payload.pull_request ? 'pull_request' : 'issue'; const association = context.payload[type].author_association; - let label = '' + let label = ''; if ( association === 'MEMBER' || association === 'OWNER' || - ['paulpopus', 'r1tsuu'].includes(context.actor) + [ + 'denolfe', + 'jmikrut', + 'danribbens', + + 'alessiogr', + 'jacobsfletch', + 'jarrodmflesch', + 'jesschowdhury', + 'kendelljoseph', + 'patrikkozak', + 'paulpopus', + 'r1tsuu', + 'tylandavis', + ].includes(context.actor.toLowerCase()) ) { label = 'created-by: Payload team'; } else if (association === 'CONTRIBUTOR') { @@ -51,4 +65,4 @@ jobs: repo: context.repo.repo, labels: [label], }); - console.log('Added created-by: Payload team label'); + console.log(`Added '${label}' label`);