chore: award holopin wizard to new contributors

This commit is contained in:
Jan De Dobbeleer 2023-04-08 10:48:52 +02:00 committed by Jan De Dobbeleer
parent 386072318f
commit a58aebcd5c
2 changed files with 6 additions and 2 deletions

2
.github/holopin.yml vendored
View file

@ -3,4 +3,4 @@ defaultSticker: clg0u51g681700fmfr086ofc6
stickers: stickers:
- -
id: clg0u51g681700fmfr086ofc6 id: clg0u51g681700fmfr086ofc6
alias: oss alias: wizard

View file

@ -70,7 +70,11 @@ jobs:
return; return;
} }
const body = `@all-contributors please add @${pr.user.login} for ${contributions.join()}`; var body = `@all-contributors please add @${pr.user.login} for ${contributions.join()}`;
if (!contributor) {
body += `\n\nThis is pure magic 🪄! @holopin-bot @${pr.user.login} wizard`;
}
console.log(`Adding comment: ${body}`); console.log(`Adding comment: ${body}`);
await github.rest.issues.createComment({ await github.rest.issues.createComment({