diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index e100887..8c09462 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 api-docucraft 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 api-docucraft 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 api-docucraft repository.🎊 Thank you so much for taking the time to point this out.🙌' + pr-message: 'Hey, @${{ github.actor }} welcome to api-docucraft 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