Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shashankdangi/add blue sky sharelink Addresses #91497 #91518

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions .github/workflows/auto-pr-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ on:
pull_request_target:
types: [opened, synchronize]
paths:
- 'Contributors.md' # <- only run if only contributors file changed
- "Contributors.md" # <- only run if only contributors file changed

jobs:
auto-merge:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write

steps:
# Check out the repository code
- name: Checkout code
Expand All @@ -31,7 +31,7 @@ jobs:
FILES_CHANGED=$(echo $PR_FILES | tr '\n' ' ')

echo "files_changed=$FILES_CHANGED" >> $GITHUB_ENV

if [[ "${FILES_CHANGED// /}" == "Contributors.md" ]]; then

echo "only_contributors=true" >> $GITHUB_ENV
Expand All @@ -55,7 +55,7 @@ jobs:
echo "one_line_change=false" >> $GITHUB_ENV
fi

# Merge the pull request if it only modifies the Contributors.md file or if it fail to do then drop failure message as post
# Merge the pull request if it only modifies the Contributors.md file or if it fail to do then drop failure message as post
- name: Merge PR
id: merge_pr
if: env.only_contributors == 'true' && env.one_line_change == 'true'
Expand Down Expand Up @@ -101,6 +101,9 @@ jobs:
const linkedin_share_link = 'https://www.linkedin.com/sharing/share-offsite/?url=https://github.com/firstcontributions/first-contributions';
const dev_share_link = "https://dev.to/new?prefill=---%0Atitle%3A%20First%20Contributions%3A%20learn%20how%20to%20contribute%20to%20open%20source%20projects%0Apublished%3A%20true%0Atags%3A%20opensource%2C%20beginners%2C%20tutorial%0A---%0A%0AI%20followed%20the%20hands-on%20tutorial%20in%20the%20Readme%20of%20first%20contributions%20and%20made%20my%20first%20pull%20request%20to%20the%20same%20repo.%0A%0A%0A%7B%25%20embed%20https%3A%2F%2Fgithub.com%2Ffirstcontributions%2Ffirst-contributions%20%25%7D";
const hackernews_share_link = 'https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fgithub.com%2Ffirstcontributions%2Ffirst-contributions&t=Show%20HN%3A%20Hands%20on%20tutorial%20for%20open%20source%20contribution'
const bluesky_share_link = 'https://bsky.app/intent/compose?text=I%20just%20made%20my%20first%20contribution%20to%20open%20source%20with%20First%20Contributions!%20🎉%20Check%20it%20out:%20https%3A%2F%2Fgithub.com%2Ffirstcontributions%2Ffirst-contributions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const bluesky_share_link = 'https://bsky.app/intent/compose?text=I%20just%20made%20my%20first%20contribution%20to%20open%20source%20with%20First%20Contributions!%20🎉%20Check%20it%20out:%20https%3A%2F%2Fgithub.com%2Ffirstcontributions%2Ffirst-contributions
const bluesky_share_link = 'https://bsky.app/intent/compose?text=I%20just%20made%20my%20first%20contribution%20to%20open%20source%20with%20First%20Contributions%21%20%F0%9F%8E%89%20Check%20it%20out%3A%0A%0A%0Ahttps%3A%2F%2Fgithub.com%2Ffirstcontributions%2Ffirst-contributions%2F%0A%0A%0A%23opensource

'


// social logo
const repo_logo = "https://avatars0.githubusercontent.com/u/65761570?s=88&u=640f39b808c75c6b86460aa907dd030bcca2f3c7&v=4"
Expand All @@ -111,14 +114,15 @@ jobs:
const linkedin_logo = "https://edent.github.io/SuperTinyIcons/images/svg/linkedin.svg";
const dev_logo = "https://edent.github.io/SuperTinyIcons/images/svg/dev_to.svg";
const hackernews_logo = "https://edent.github.io/SuperTinyIcons/images/svg/hackernews.svg";
const bluesky_logo = "https://edent.github.io/SuperTinyIcons/images/svg/bluesky.svg";



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. <img alt="star screenshot" title="star button" src="https://firstcontributions.github.io/assets/star.png">`;

const nextSteps = `# Next steps \n - Continue contributing: If you're looking for projects to contribute to, checkout our [<img src="${repo_logo}" width="22" title="web app" /> webapp](${web_url}). \n - Join our Slack group: We have a community to help/support contributors. [<img src="${slack_logo}" width="22" title="Slack" /> Join slack group](${slack_invite_url}). \n - Share on social media: You can share this content to help more people. [ <img alt="twitter" title="twitter" src="${twitter_logo}" width="22"> tweet](${twitter_tweet_share}). [<img alt="twitter" title="twitter" src="${fb_logo}" width="22"> share](${fb_share_link}). [ <img alt="reddit" title="reddit" src="${reddit_logo}" width="22"> share](${reddit_link}). [<img alt="linkedin" title="linkedin" src="${linkedin_logo}" width="22"> post](${linkedin_share_link}). [<img alt="devio" title="devio" src="${dev_logo}" width="22"> publish](${dev_share_link}). [<img src="${hackernews_logo}" width="22" title="HackerNews" /> Post on HackerNews](${hackernews_share_link}).`;
const nextSteps = `# Next steps \n - Continue contributing: If you're looking for projects to contribute to, checkout our [<img src="${repo_logo}" width="22" title="web app" /> webapp](${web_url}). \n - Join our Slack group: We have a community to help/support contributors. [<img src="${slack_logo}" width="22" title="Slack" /> Join slack group](${slack_invite_url}). \n - Share on social media: You can share this content to help more people. \n -[<img src="${bluesky_logo}" width="22" title="Bluesky" /> Post on Bluesky](${bluesky_share_link}). \n - [<img alt="facebook" title="facebook" src="${fb_logo}" width="22"> share](${fb_share_link}).\n - [ <img alt="reddit" title="reddit" src="${reddit_logo}" width="22"> share](${reddit_link}).\n - [<img alt="linkedin" title="linkedin" src="${linkedin_logo}" width="22"> post](${linkedin_share_link}). \n -[<img alt="devio" title="devio" src="${dev_logo}" width="22"> publish](${dev_share_link}).\n - [<img src="${hackernews_logo}" width="22" title="HackerNews" /> Post on HackerNews](${hackernews_share_link}). \n -[ <img alt="twitter" title="twitter" src="${twitter_logo}" width="22"> tweet](${twitter_tweet_share}).`;
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()})`;
Expand Down Expand Up @@ -213,5 +217,5 @@ jobs:
body: body
});
}

github-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions Contributors.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Contributors
- Hey there, I'm Harsh Patel. Let the world know, this is my first commit, marking the start of an incredible journey into open source! 🌟 Check out my [GitHub](https://github.com/cm-harshpatel)! **You are capable of amazing things; keep shining and making the world brighter!**
- Hi, I am NNS from Myanmar (https://github.com/NyeinNyein88/)
- Hi , I'm Shashank[シャシャンク] from Osaka , Japan .[Github](https://github.com/shashankdangi) 
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is not relevant to this PR.

- Hi, I am Topgrace from SouthKorea
- Hi, I am Nick P from USA
- Hi, my name is Emin Mammdov from Azerbaijan
Expand Down