From 29e9be9d552e80b5d16bf06b91104c165305bbf1 Mon Sep 17 00:00:00 2001 From: Sukriti-sood Date: Fri, 20 Aug 2021 23:05:57 +0530 Subject: [PATCH] added greeting bot Signed-off-by: Sukriti-sood --- .github/workflows/greetings.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/greetings.yml diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml new file mode 100644 index 0000000..12fab0e --- /dev/null +++ b/.github/workflows/greetings.yml @@ -0,0 +1,29 @@ +name: Greetings + +on: + issues: + types: [opened] + pull_request_target: + types: [closed] + pull_request: + types: [opened] + +jobs: + greeting: + runs-on: ubuntu-latest + steps: + - name: Greet New Contributors for Creating New PR/Issues. + uses: actions/first-interaction@v1 + if: github.event.action =='opened' && (github.event_name == 'pull_request' || github.event_name == 'issues') + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: "@${{ github.actor }} Welcome to moja_global_docs🥳 Thanks for opening this Issue 🙌, This Will definitely Improve our Project💖.While we are having a look at this. If you want to work on this then,feel free to self-assign and start working on it.📄 **Use `/assign` to self-assign this issue**." + pr-message: "@${{ github.actor }} Thank you for Opening pull request🥳. We will get back to you as soon as possible. Your patience is greatly appreciated! Thanks! 🥳. PS: Please double check that you linked the corresponding issue." + + - name: Congratulate on every PR merge + if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true + uses: peter-evans/create-or-update-comment@v1 + with: + issue-number: ${{tojson(github.event.number)}} + body: | + @${{ github.event.pull_request.user.login }} Hurray, your PR got merged 🥳. Thanks a bunch. Feel free to take another Issue.💖