Skip to content

Commit

Permalink
refactored welcome msg
Browse files Browse the repository at this point in the history
  • Loading branch information
14Richa committed Jul 25, 2023
1 parent 57fa332 commit e4b6977
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/msg-to-new-member-pr-merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,10 @@ jobs:
github-token: ${{ secrets.GH_TOKEN }}
script: |
const newMaintainers = "${{ needs.add_maintainer.outputs.newMaintainers }}".split(",");
const welcomeMessage = newMaintainers.map((maintainer) => `@${maintainer.trim().replace(/^@/, '')} I have invited you to join the AsyncAPI organization and you are added to the team that lists all Maintainers.
We use this team to mention in different discussions in different places in GitHub where Maintainer's opinion is needed or even voting on some topic. Once Maintainers are mentioned:
- You get GitHub notification
- We also drop notification in our slack in #95_bot-maintainers-mentioned channel
- We drop an email to people that subscribed to Maintainer news here https://www.asyncapi.com/community/maintainers
Pick the channel for notifications that you prefer. Welcome aboard! We are excited to have you as part of the team.`).join("\n");
const welcomeMessage = newMaintainers.map((maintainer) => `@${maintainer.trim().replace(/^@/, '')} I have invited you to join the AsyncAPI organization, and you are added to the team that lists all Maintainers.
We use this team to mention in different discussions in various places on GitHub where Maintainer's opinion is needed. Once Maintainers are mentioned:
- You will receive GitHub notifications.
Welcome aboard! We are excited to have you as part of the team.`).join("\n");
const { owner, repo } = context.repo;
const { number: issue_number } = context.issue;
return github.rest.issues.createComment({ owner, repo, issue_number, body: welcomeMessage });
Expand Down

0 comments on commit e4b6977

Please sign in to comment.