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

Add workflow to welcome first-time contributors #1579

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mhucka
Copy link
Contributor

@mhucka mhucka commented Mar 4, 2025

This adds a workflow that triggers on new issues and PRs. If the author has not contributed to this repository before, the workflow will add a comment with an informative welcome message to the issue or PR. The goal is to try to be welcoming of contributions and simultaneously steer people towards information they may have missed.

@mhucka mhucka marked this pull request as ready for review March 4, 2025 22:29
uses: actions/first-interaction@2ec0f0fd78838633cd1c1342e4536d49ef72be54 # v1.3.0
with:
repo-token: ${{secrets.GITHUB_TOKEN}}
issue-message: |
Copy link
Collaborator

Choose a reason for hiding this comment

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

does this trigger on issues as well? or just PRs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi – both issues and PRs. Or more specifically, when either is opened. The conditions are in the on: block near the top:

on:
  issues:
    types: [opened]
  pull_request:
    types: [opened]

@mhucka mhucka requested a review from mpharrigan March 7, 2025 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants