Skip to content

Instantly share code, notes, and snippets.

@deep5050
Created December 22, 2022 06:16
Show Gist options
  • Save deep5050/669b7f0c64b9697aec252d8ce5080a0f to your computer and use it in GitHub Desktop.
Save deep5050/669b7f0c64b9697aec252d8ce5080a0f to your computer and use it in GitHub Desktop.
greet an issue raiser on new issues
name: Issue Greeting
on:
issues:
types: [opened]
jobs:
greet_user:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Greet user
run: |
echo "Welcome to the repository, @${{ github.event.issue.user.login }}! Thank you for opening this issue."
echo "We'll review and address your issue as soon as possible. In the meantime, if you have any questions or need assistance, don't hesitate to ask."
echo "Thank you for your contribution to the project!"
- name: Add a comment to the issue
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.issue.number }}
body: |
Welcome to the repository, @${{ github.event.issue.user.login }}! Thank you for opening this issue.
We'll review and address your issue as soon as possible. In the meantime, if you have any questions or need assistance, don't hesitate to ask.
Thank you for your contribution to the project!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment