From 225ac6bad07e184bf78b835c1f9846566d03c848 Mon Sep 17 00:00:00 2001 From: softservedata Date: Fri, 25 Apr 2025 02:11:17 +0300 Subject: [PATCH 1/4] add a CODEOWNER file with information about owner code --- .github/CODEOWNERS | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..a2b47be4 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +@softservedata \ No newline at end of file From 9aa3a1bb24c6f4775c99e3aa17d05c75cfbca85e Mon Sep 17 00:00:00 2001 From: softservedata Date: Fri, 25 Apr 2025 02:24:37 +0300 Subject: [PATCH 2/4] add a pull request template in a root dir --- .github/pull_request_template.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 00000000..b7829769 --- /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 \ No newline at end of file From b6d9e9f5f8001bb70bc8f8c3c3b9666db2411222 Mon Sep 17 00:00:00 2001 From: softservedata Date: Fri, 25 Apr 2025 03:04:31 +0300 Subject: [PATCH 3/4] add a triger for pull request --- .gitignore | 3 +++ test.js | 1 + 2 files changed, 4 insertions(+) create mode 100644 .gitignore create mode 100644 test.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..3a98ac4b --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# SSH keys +deploy_key +deploy_key.pub \ No newline at end of file diff --git a/test.js b/test.js new file mode 100644 index 00000000..fce398ea --- /dev/null +++ b/test.js @@ -0,0 +1 @@ +'promt for create pull request :)' \ No newline at end of file From ae3867eb50393e6b9cab19b584f5b2ffe619f651 Mon Sep 17 00:00:00 2001 From: softservedata Date: Fri, 25 Apr 2025 05:10:35 +0300 Subject: [PATCH 4/4] try to envoke pull request --- .github/workflows/pr-to-discord.yml | 18 ++++++++++++++++++ test.js | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pr-to-discord.yml diff --git a/.github/workflows/pr-to-discord.yml b/.github/workflows/pr-to-discord.yml new file mode 100644 index 00000000..338e3ffa --- /dev/null +++ b/.github/workflows/pr-to-discord.yml @@ -0,0 +1,18 @@ +name: Notify Discord on Pull Request + +on: + pull_request: + types: [opened] + +jobs: + notify: + runs-on: ubuntu-latest + steps: + - name: Send Discord message + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "content": "🔔 New Pull Request by **${{ github.actor }}**: [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})" + }' \ + ${{ secrets.DISCORD_WEBHOOK_URL }} diff --git a/test.js b/test.js index fce398ea..509484d2 100644 --- a/test.js +++ b/test.js @@ -1 +1,2 @@ -'promt for create pull request :)' \ No newline at end of file +'promt for create pull request :)' +'promt for create pull request :) x2' \ No newline at end of file