ci: add missing gh usernames for label-author
This commit is contained in:
20
.github/workflows/label-author.yml
vendored
20
.github/workflows/label-author.yml
vendored
@@ -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`);
|
||||||
|
|||||||
Reference in New Issue
Block a user