Skip to content

Commit

Permalink
Create greetings.yml
Browse files Browse the repository at this point in the history
Greets first time contributers to the repository.
Give different messages according to Issues and PRs
  • Loading branch information
cr2007 authored Dec 4, 2023
1 parent cbefb75 commit 0de2061
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Greetings

on: [pull_request_target, issues]

jobs:
greeting:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Hi there!\n\n🎉 Welcome to our GitHub repository! Thank you for opening your first issue. We appreciate your contribution to our project.\nOur team will look into the issue at the earliest. If you have any additional information or suggestions, feel free to share them. Your input is valuable to us.\n\nIf you have any questions or need assistance, don't hesitate to reach out. Happy coding!"
pr-message: "Hi there!\n\n🚀 Congratulations on your first pull request! We're thrilled to see your contribution to our project.\nOur team will review your pull request at the earliest. If there are any changes or additional information needed, we'll provide feedback. Your effort is greatly appreciated.\n\nIf you have any questions or need guidance, feel free to ask. We're here to help and excited to collaborate with you."

0 comments on commit 0de2061

Please sign in to comment.