ci: handle labeling CONTRIBUTOR and COLLABORATOR author associations
This commit is contained in:
6
.github/workflows/label-author.yml
vendored
6
.github/workflows/label-author.yml
vendored
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user