Merge pull request #416 from Vikash-8090-Yadav/GithubActions-1

This commit is contained in:
Michael Cade 2023-05-21 13:27:31 +02:00 committed by GitHub
commit 216a4695ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 54 additions and 0 deletions

View File

@ -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.😄

View File

@ -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"

View File

@ -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"