Skip to content

Commit 89b016e

Browse files
authored
Merge pull request #110 from devsnorte/feat/contributors
Feat/contributors
2 parents 33bb8d8 + ab0c1c3 commit 89b016e

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

.all-contributorsrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@
3030
"projectName": "devsnorte-landing-page",
3131
"projectOwner": "devsnorte"
3232
}
33-

.github/workflows/contributors.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,19 @@ jobs:
9898
9999
var body = `@all-contributors please add @${pr.user.login} for ${[...contributions].join()}`;
100100
101-
if (!contributor) {
102-
body += `\n\nThis is pure magic 🪄! @holopin-bot @${pr.user.login} wizard`;
103-
}
104-
105101
console.log(`Adding comment: ${body}`);
106102
await github.rest.issues.createComment({
107103
owner, repo,
108104
issue_number: pr.number,
109105
body,
110106
});
107+
108+
if (!contributor) {
109+
var magicBody = `This is pure magic 🪄! @holopin-bot @${pr.user.login} wizard`;
110+
console.log(`Adding comment: ${magicBody}`);
111+
await github.rest.issues.createComment({
112+
owner, repo,
113+
issue_number: pr.number,
114+
body: magicBody,
115+
});
116+
}

0 commit comments

Comments
 (0)