From 623402f823dee534016a03350ec25e5b8aa1b827 Mon Sep 17 00:00:00 2001 From: praptisharma28 <123169861+praptisharma28@users.noreply.github.com> Date: Mon, 29 Jan 2024 02:35:26 +0530 Subject: [PATCH] greetings.yml corrected closes #17 --- .github/workflows/greetings.yml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index b575c57..53d75c1 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -1,18 +1,16 @@ -name: 'Greetings' +name: Greetings -on: - issues: - types: [opened] - pull_request_target: - types: [opened] +on: [pull_request, issues] jobs: - welcome: + greeting: runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write steps: - - uses: actions/checkout@v1 - - uses: EddieHubCommunity/gh-action-community/src/welcome@main - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - issue-message: 'Congratulations, @${{ github.actor }}! 🎉 Thank you for creating your issue for URL Shortner project. Your contribution is greatly appreciated and we look forward to working with you to resolve the issue. Keep up the great work! Should you have any queries or require guidance, do not hesitate to ask.' - pr-message: 'Great job, @${{ github.actor }}! 🎉 Thank you for submitting your pull request for URL Shortner project. Our dedicated team will review it diligently.Your contribution is valuable and we appreciate your efforts to improve our project.' + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: 'Hey, @${{ github.actor }} welcome to URLShortener repository.🎊 Thank you so much for taking the time to point this out.🙌' + pr-message: 'Hey, @${{ github.actor }} welcome to URLShortener repository.🎊 Thank you so much for taking the effort to make our project better! 🙌 Keep making such awesome contributions!' \ No newline at end of file