diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..e32a21f --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @softservedata diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..5c2e160 --- /dev/null +++ b/.github/pull_request_template.md @@ -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 diff --git a/.github/workflows/discord.yml b/.github/workflows/discord.yml new file mode 100644 index 0000000..7a5c6ff --- /dev/null +++ b/.github/workflows/discord.yml @@ -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 diff --git a/README.md b/README.md index 6f95131..65a0764 100644 --- a/README.md +++ b/README.md @@ -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!!!