From e888845a8fea815975382c903072a2c9ba0d906d Mon Sep 17 00:00:00 2001 From: Teja Kusireddy Date: Wed, 4 Dec 2024 00:41:05 -0500 Subject: [PATCH 1/2] Enhance: Add Bluesky share link to merge message --- .github/workflows/auto-pr-merge.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-pr-merge.yml b/.github/workflows/auto-pr-merge.yml index e85df517efa..6b950260865 100644 --- a/.github/workflows/auto-pr-merge.yml +++ b/.github/workflows/auto-pr-merge.yml @@ -116,10 +116,9 @@ jobs: const getMergeMessage = (username) => { const greeting = `Hello @${username}, congratulations! You've successfully submitted a pull request. 🎉`; - const starRepoMessage = `If you liked the tutorial, please star this repo by clicking the star button on the top right of this page. star screenshot`; + const starRepoMessage = `If you liked the tutorial, please star this repo by clicking the star button on the top right of this page. star screenshot`; - const nextSteps = `# Next steps \n - Continue contributing: If you're looking for projects to contribute to, checkout our [ webapp](${web_url}). \n - Join our Slack group: We have a community to help/support contributors. [ Join slack group](${slack_invite_url}). \n - Share on social media: You can share this content to help more people. [ twitter tweet](${twitter_tweet_share}). [twitter share](${fb_share_link}). [ reddit share](${reddit_link}). [linkedin post](${linkedin_share_link}). [devio publish](${dev_share_link}). [ Post on HackerNews](${hackernews_share_link}).`; - const feedbackMessage = `We'd love to hear your thoughts about this project. Let us know how we can improve by commenting or opening an issue here.`; + const nextSteps = `# Next steps \n - Continue contributing: If you're looking for projects to contribute to, checkout our [ webapp](${web_url}). \n - Join our Slack group: We have a community to help/support contributors. [ Join slack group](${slack_invite_url}). \n - Share on social media: You can share this content to help more people. [ twitter tweet](${twitter_tweet_share}). [twitter share](${fb_share_link}). [ reddit share](${reddit_link}). [linkedin post](${linkedin_share_link}). [devio publish](${dev_share_link}). [ Post on HackerNews](${hackernews_share_link}).`[ Share on Bluesky](https://bsky.app/intent/tweet?text=I+just+contributed+to+First+Contributions!+Check+it+out:+https://github.com/firstcontributions).; const feedbackMessage = `We'd love to hear your thoughts about this project. Let us know how we can improve by commenting or opening an issue here.`; const gif = `![celebration gif](${getRandomGif()})`; From da3c9a7fa5bbca094704916830d3e54f0c08033e Mon Sep 17 00:00:00 2001 From: Teja Kusireddy Date: Wed, 4 Dec 2024 15:08:18 -0500 Subject: [PATCH 2/2] Enhance: Add hashtags to social media share links in merge message --- .github/workflows/auto-pr-merge.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/auto-pr-merge.yml b/.github/workflows/auto-pr-merge.yml index 6b950260865..8debab68797 100644 --- a/.github/workflows/auto-pr-merge.yml +++ b/.github/workflows/auto-pr-merge.yml @@ -115,16 +115,25 @@ jobs: const getMergeMessage = (username) => { - const greeting = `Hello @${username}, congratulations! You've successfully submitted a pull request. 🎉`; - const starRepoMessage = `If you liked the tutorial, please star this repo by clicking the star button on the top right of this page. star screenshot`; - - const nextSteps = `# Next steps \n - Continue contributing: If you're looking for projects to contribute to, checkout our [ webapp](${web_url}). \n - Join our Slack group: We have a community to help/support contributors. [ Join slack group](${slack_invite_url}). \n - Share on social media: You can share this content to help more people. [ twitter tweet](${twitter_tweet_share}). [twitter share](${fb_share_link}). [ reddit share](${reddit_link}). [linkedin post](${linkedin_share_link}). [devio publish](${dev_share_link}). [ Post on HackerNews](${hackernews_share_link}).`[ Share on Bluesky](https://bsky.app/intent/tweet?text=I+just+contributed+to+First+Contributions!+Check+it+out:+https://github.com/firstcontributions).; const feedbackMessage = `We'd love to hear your thoughts about this project. Let us know how we can improve by commenting or opening an issue here.`; - - const gif = `![celebration gif](${getRandomGif()})`; - - return `${greeting}\n\n${starRepoMessage}\n\n${nextSteps}\n\n${feedbackMessage}\n\n${gif}`; + const greeting = `Hello @${username}, congratulations! You've successfully submitted a pull request. 🎉`; + const starRepoMessage = `If you liked the tutorial, please star this repo by clicking the star button on the top right of this page. star screenshot`; + + const nextSteps = `# Next steps + - Continue contributing: Check out our [ webapp](${web_url}). + - Join our Slack group: [ Join Slack group](${slack_invite_url}). + - Share on social media: + - [ Share on Twitter](https://twitter.com/intent/tweet?text=I+just+contributed+to+First+Contributions!+Check+it+out:+https://github.com/firstcontributions/first-contributions+%23OpenSource+%23FirstContributions) + - [ Share on LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https://github.com/firstcontributions/first-contributions&title=I+just+contributed+to+First+Contributions!+%23OpenSource+%23FirstContributions) + - [ Share on Bluesky](https://bsky.app/intent/tweet?text=I+just+contributed+to+First+Contributions!+Check+it+out:+https://github.com/firstcontributions/first-contributions+%23OpenSource+%23FirstContributions)`; + + const feedbackMessage = `We'd love to hear your thoughts about this project. Let us know how we can improve by commenting or opening an issue here.`; + + const gif = `![celebration gif](${getRandomGif()})`; + + return `${greeting}\n\n${starRepoMessage}\n\n${nextSteps}\n\n${feedbackMessage}\n\n${gif}`; } + // Generate the merge message using the getMergeMessage function const message = getMergeMessage(context.payload.pull_request.user.login);