ci: handle labeling CONTRIBUTOR and COLLABORATOR author associations

This commit is contained in:
Elliot DeNolf
2024-09-24 13:47:41 -04:00
parent 28ea0c59e8
commit a033cfe1c4

View File

@@ -33,7 +33,11 @@ jobs:
const type = context.payload.pull_request ? 'pull_request' : 'issue';
const association = context.payload[type].author_association;
let label = ''
if (association === 'MEMBER' || association === 'OWNER') {
if (
association === 'MEMBER' ||
association === 'OWNER' ||
['paulpopus', 'r1tsuu'].includes(context.actor)
) {
label = 'created-by: Payload team';
} else if (association === 'CONTRIBUTOR') {
label = 'created-by: Contributor';