ci: add missing gh usernames for label-author

This commit is contained in:
Elliot DeNolf
2024-09-24 16:03:44 -04:00
parent a37abd16ac
commit 32c8d2821b

View File

@@ -32,11 +32,25 @@ jobs:
script: | script: |
const type = context.payload.pull_request ? 'pull_request' : 'issue'; const type = context.payload.pull_request ? 'pull_request' : 'issue';
const association = context.payload[type].author_association; const association = context.payload[type].author_association;
let label = '' let label = '';
if ( if (
association === 'MEMBER' || association === 'MEMBER' ||
association === 'OWNER' || 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'; label = 'created-by: Payload team';
} else if (association === 'CONTRIBUTOR') { } else if (association === 'CONTRIBUTOR') {
@@ -51,4 +65,4 @@ jobs:
repo: context.repo.repo, repo: context.repo.repo,
labels: [label], labels: [label],
}); });
console.log('Added created-by: Payload team label'); console.log(`Added '${label}' label`);