Welcome New Contributors with GitHub Actions

Last year, one of my favorite random contributions to the Codú codebase over the last year was by Chrissy.

It's a little GitHub action that greeted folks when they opened their first issue or pull request.

This is great since it gives new contributors immediate feedback.

The main logic handled by the garg3133/welcome-new-contributors Action, which makes it super easy to set up.

Here's the code so you can alter it and have a friendly and welcoming project:

name: 'Welcome New Contributors'

on:
  issues:
    types: [opened]
  pull_request_target:
    types: [opened]

jobs:
  welcome-new-contributor:
    runs-on: ubuntu-latest
    steps:
      - name: 'Greet the contributor'
        uses: garg3133/welcome-new-contributors@v1.2
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          issue-message: 'Hello @contributor_name, thanks for opening your first issue! Your contribution is valuable to us. The maintainers will review this issue and provide feedback as soon as possible.'
          pr-message: 'Hello @contributor_name, thanks for opening your first Pull Request. The maintainers will review this Pull Request and provide feedback as soon as possible. Keep up the great work!'

Let me know if you added it to your project in the comments. 💬

Thanks for the addition Chrissy!

Happy coding! ✨

Github ActionsOpen SourceGithub
Avatar for Niall Maher

Written by Niall Maher

Founder of Codú - The web developer community! I've worked in nearly every corner of technology businesses; Lead Developer, Software Architect, Product Manager, CTO and now happily a Founder.

Loading

Fetching comments

Hey! 👋

Got something to say?

or to leave a comment.