From 7a292f28bf307f083917c03f2b189ff68681f4a7 Mon Sep 17 00:00:00 2001 From: Vikash KUmar Yadav Date: Thu, 11 May 2023 02:51:19 +0530 Subject: [PATCH 1/3] added the github action when someone opens the issue --- .../workflows/Auto_message_on_creatingissues.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/Auto_message_on_creatingissues.yml diff --git a/.github/workflows/Auto_message_on_creatingissues.yml b/.github/workflows/Auto_message_on_creatingissues.yml new file mode 100644 index 0000000..97489f9 --- /dev/null +++ b/.github/workflows/Auto_message_on_creatingissues.yml @@ -0,0 +1,16 @@ +name: Auto message on Creating a Issue. + +on: + issues: + types: [opened] + +jobs: + greeting: + runs-on: ubuntu-latest + steps: + - name: Create comment for issue + if: github.event_name =='issues' + uses: peter-evans/create-or-update-comment@v1 + with: + issue-number: ${{tojson(github.event.issue.number)}} + body: Hello there!👋, @${{ github.actor }} Welcome to the Solidity-Pathshala! 🚀⚡Thank you and Congratulations🎉 for opening a issue in this project. Please make sure not to start working on this issue, unless you are assigned to it.😄 From 6f821fe9a2ec89806444b50489c50dff76103ceb Mon Sep 17 00:00:00 2001 From: Vikash KUmar Yadav Date: Thu, 11 May 2023 02:51:49 +0530 Subject: [PATCH 2/3] added the github action when author merge the pr --- .../workflows/Auto_message_on_pr_merge.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/Auto_message_on_pr_merge.yml diff --git a/.github/workflows/Auto_message_on_pr_merge.yml b/.github/workflows/Auto_message_on_pr_merge.yml new file mode 100644 index 0000000..d06f122 --- /dev/null +++ b/.github/workflows/Auto_message_on_pr_merge.yml @@ -0,0 +1,19 @@ +name: Auto message on Pr merge + +on: + pull_request_target: + types: [closed] + +jobs: + auto-response: + runs-on: ubuntu-latest + + steps: + - uses: derekprior/add-autoresponse@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + respondableId: ${{ github.event.pull_request.node_id }} + response: "Thank you @${{ github.event.pull_request.user.login }} for taking out your valuable time in order to contribute to our project. Looking forward for more such amazing contributions :)" + author: ${{ github.event.pull_request.user.login }} + exemptedAuthors: "Vikash-8090-Yadav" From 878cb8c45bece8ea34d70733a71011ca6cf0c05e Mon Sep 17 00:00:00 2001 From: Vikash KUmar Yadav Date: Thu, 11 May 2023 02:52:26 +0530 Subject: [PATCH 3/3] added the github action when someone opens the pr --- .github/workflows/Auto_message_on_pr_open.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/Auto_message_on_pr_open.yml diff --git a/.github/workflows/Auto_message_on_pr_open.yml b/.github/workflows/Auto_message_on_pr_open.yml new file mode 100644 index 0000000..a932c05 --- /dev/null +++ b/.github/workflows/Auto_message_on_pr_open.yml @@ -0,0 +1,19 @@ +name: Auto message on PR opened + +on: + pull_request_target: + types: [opened] + +jobs: + auto-response: + runs-on: ubuntu-latest + + steps: + - uses: derekprior/add-autoresponse@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + respondableId: ${{ github.event.pull_request.node_id }} + response: "Our team will soon review your PR. Thanks @${{ github.event.pull_request.user.login }} :)" + author: ${{ github.event.pull_request.user.login }} + exemptedAuthors: "Vikash-8090-Yadav"