Skip to content

Greets the first isue of a person using GitHub metadata

License

Notifications You must be signed in to change notification settings

JJ/issue-greeting-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Greeting for first pull request

Greets pull requests, using metadata such as user name. Forked from actions/first interaction

Usage

Here is an example that you could put in .github/workflows/pr-greeting.yaml

name: "PR Greeter"
on: [pull_request]

jobs:
  pr-greeter:
    runs-on: ubuntu-latest
    steps:
      - name: "Greeter"
        uses: JJ/pr-greeting-action@releases/v1
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          greeting: "Hey **#** welcome to this repo"

This action will check if it's the first pull request to the repo and greet them; if you use the hash sign inside the message, it will get substituted by the login name of the person doing the PR.

Greeting JJ for his first PR

License

The scripts and documentation in this project are released under the MIT License