Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @softservedata
10 changes: 10 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Describe your changes

## Issue ticket number and link

## Checklist before requesting a review

- [ ] I have performed a self-review of my code
- [ ] If it is a core feature, I have added thorough tests
- [ ] Do we need to implement analytics?
- [ ] Will this be part of a product update? If yes, please write one phrase about this update
38 changes: 38 additions & 0 deletions .github/workflows/discord.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Discord Notification

on:
pull_request:
types: [opened]

jobs:
notify:
runs-on: ubuntu-latest

steps:
- name: Send Discord Embed
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
run: |
curl -H "Content-Type: application/json" \
-X POST \
-d "{
\"embeds\": [{
\"title\": \"🚀 New Pull Request\",
\"description\": \"**${{ github.event.pull_request.title }}**\",
\"url\": \"${{ github.event.pull_request.html_url }}\",
\"color\": 3066993,
\"fields\": [
{
\"name\": \"Repository\",
\"value\": \"${{ github.repository }}\",
\"inline\": true
},
{
\"name\": \"Author\",
\"value\": \"${{ github.actor }}\",
\"inline\": true
}
]
}]
}" \
$DISCORD_WEBHOOK
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@
8. For github actions:
- create PAT (Personal Access Token) with **Full control of private repositories** and **Full control of orgs and teams, read and write org projects**
- add to repository actions secrets key with the name `PAT` and the value of the created PAT
I added this line for test-discord!!!
Loading