diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..dfb3796 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @softservedata \ No newline at end of file diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..c20b1a9 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,11 @@ +## 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 \ No newline at end of file diff --git a/.github/workflows/discord-notify.yml b/.github/workflows/discord-notify.yml new file mode 100644 index 0000000..564159c --- /dev/null +++ b/.github/workflows/discord-notify.yml @@ -0,0 +1,18 @@ +name: Discord PR Notification + +on: + pull_request: + types: [opened] + +jobs: + notify: + runs-on: ubuntu-latest + steps: + - name: Send Discord notification + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + PR_TITLE: ${{ github.event.pull_request.title }} + PR_AUTHOR: ${{ github.event.pull_request.user.login }} + PR_URL: ${{ github.event.pull_request.html_url }} + run: | + curl -H "Content-Type: application/json" -d "{\"content\": \"New Pull Request opened: **${PR_TITLE}** by ${PR_AUTHOR} - ${PR_URL}\"}" "$DISCORD_WEBHOOK"