From da72525fdc04e36626512f978b7ce9dc7e5084d4 Mon Sep 17 00:00:00 2001 From: Corwin Smith Date: Thu, 23 Jan 2025 11:26:44 -0700 Subject: [PATCH 1/2] update ethereum.org comment for 2025 --- src/utils.ts | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index 1dd5a7e..f035e6f 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -43,7 +43,9 @@ const addHeadOverToGitPOAP = (comment: string): string => // Hardcode extra comments for ethereum-org-website const ethereumOrgWebsiteComment = - 'Be sure to join the [Ethereum.org discord](https://ethereum.org/discord) if you are interested in contributing further to the project or have any questions for the team.'; + 'Join the [ethereum.org Discord server](https://ethereum.org/discord) to explore more ways to contribute to the project. Depending on the tasks you complete, you may also unlock additional badges (OATs). Visit [ethereum.org/contributing](https://ethereum.org/contributing) to learn more.'; + +const ethereumOrgWebsiteSubcomment = 'Keep buidling, keep learning, and let\'s grow the Ethereum open-source community together 🌱' export function generateComment(repoId: number, claims: BotClaimData[]): string { let qualifier: string; @@ -55,10 +57,6 @@ export function generateComment(repoId: number, claims: BotClaimData[]): string let comment = `Congrats, your important contribution to this open-source project has earned you ${qualifier}!\n\n`; - if (repoId === ETHEREUM_ORG_WEBSITE_ID) { - comment += `${ethereumOrgWebsiteComment}\n\n`; - } - for (const claim of claims) { if (claim.gitPOAP.id && claim.gitPOAP.name && claim.gitPOAP.imageUrl) { comment += ` @@ -68,7 +66,17 @@ export function generateComment(repoId: number, claims: BotClaimData[]): string } } + + if (repoId === ETHEREUM_ORG_WEBSITE_ID) { + comment += `${ethereumOrgWebsiteComment}\n\n`; + } + comment = addHeadOverToGitPOAP(comment); + + if (repoId === ETHEREUM_ORG_WEBSITE_ID) { + comment += `${ethereumOrgWebsiteSubcomment}\n\n`; + } + comment = addLearnMore(comment); return comment; From ecf7c3d1e08d1cbad81dc27495f24e8930097ced Mon Sep 17 00:00:00 2001 From: Corwin Smith Date: Mon, 27 Jan 2025 10:31:33 -0700 Subject: [PATCH 2/2] Update src/utils.ts --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index f035e6f..5e4c202 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -43,7 +43,7 @@ const addHeadOverToGitPOAP = (comment: string): string => // Hardcode extra comments for ethereum-org-website const ethereumOrgWebsiteComment = - 'Join the [ethereum.org Discord server](https://ethereum.org/discord) to explore more ways to contribute to the project. Depending on the tasks you complete, you may also unlock additional badges (OATs). Visit [ethereum.org/contributing](https://ethereum.org/contributing) to learn more.'; + 'Join the [ethereum.org Discord server](https://ethereum.org/discord) to explore more ways to contribute to the project. Depending on the tasks you complete, you may also unlock additional rewards. Visit [ethereum.org/contributing](https://ethereum.org/contributing) to learn more.'; const ethereumOrgWebsiteSubcomment = 'Keep buidling, keep learning, and let\'s grow the Ethereum open-source community together 🌱'