-
-
Notifications
You must be signed in to change notification settings - Fork 411
41 lines (37 loc) · 1.79 KB
/
greetings.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Greetings
on:
issues:
types: [opened]
pull_request:
types: [opened]
pull_request_target:
types: [closed]
jobs:
greet_issues:
runs-on: ubuntu-latest
if: github.event_name == 'issues'
steps:
- name: Greet New Issue Contributors
uses: actions/[email protected] # Update the version to v1.1.1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "@${{ github.actor }} <h1>It's great having you contribute to this project</h1> Thanks for opening this<strong>Issue 🙌</strong>, Welcome to <strong>Project Guidance 💖</strong> We will review everything and get back to you.<br> Make sure to give a star to this repo before making a fork! Thank you :)"
greet_prs:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Greet New PR Contributors
uses: actions/[email protected] # Update the version to v1.1.1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pr-message: "@${{ github.actor }} <h1>It's great having you contribute to this project</h1> Thank you for opening a <strong>Pull Request 🙌</strong>, Welcome to <strong>Project Guidance 💖</strong> We will review everything and get back to you."
congratulate:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true
steps:
- name: Congratulate on every PR merge
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
@${{ github.event.pull_request.user.login }} Hurray, your PR got merged into our Project-Guidance 🥳. Thanks a bunch. Feel free to take another Issue. 💖