forked from django-cms/django-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (52 loc) · 1.76 KB
/
new_contributor_pr.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: New contributor message
on:
pull_request_target:
types: [opened]
permissions:
pull-requests: write
jobs:
new:
name: Hello new contributor
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pr-message: |
Hello! Thank you for your contribution! 🎉
As it's your first contribution, be sure to check out the [contribution docs](https://docs.django-cms.org/en/latest/contributing/index.html).
If you're a Slack user and haven't joined us, please do [here](https://www.django-cms.org/slack)!
Welcome aboard ⛵️!
discord:
name: Discord Notification
runs-on: ubuntu-latest
needs: new
steps:
- name: Send Discord Webhook
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }}
DISCORD_EMBEDS: |
{
"embeds": [
{
"title": "New Contributor Alert",
"description": "A new contributor has opened a pull request!",
"color": 3066993, # You can customize the color here
"fields": [
{
"name": "Repository",
"value": "${{ github.repository }}"
},
{
"name": "Pull Request",
"value": "${{ github.event.pull_request.html_url }}"
},
{
"name": "Contributor",
"value": "${{ github.event.pull_request.user.login }}"
}
]
}
]
}
uses: Ilshidur/action-discord@master