diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..378b862 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,9 @@ +## 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..e1ad478 --- /dev/null +++ b/.github/workflows/discord.yml @@ -0,0 +1,25 @@ +name: Discord PR Notification + +on: + pull_request: + types: [opened] + +jobs: + notify: + runs-on: ubuntu-latest + + steps: + - name: Send PR notification to Discord + run: | + curl -H "Content-Type: application/json" \ + -d '{ + "content": "🚀 New Pull Request created!", + "embeds": [ + { + "title": "${{ github.event.pull_request.title }}", + "url": "${{ github.event.pull_request.html_url }}", + "description": "Author: ${{ github.event.pull_request.user.login }}" + } + ] + }' \ + "${{ secrets.DISCORD_WEBHOOK }}" diff --git a/README.md b/README.md index 6f95131..7cc2547 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Task on GitHub Topic -1. Add user `softservedata` to this repository. +1. Add user `softservedata` to this repository 2. Create branch `develop` as default branch.