Skip to content

Commit 8af6305

Browse files
fix github actions workflow
2 parents 4bca3ff + cd0d4a4 commit 8af6305

5 files changed

Lines changed: 19 additions & 10 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@@softservedata

.github/pull_request_template.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Describe your changes
2+
...
3+
4+
## Issue ticket number and link
5+
...
6+
7+
## Checklist before requesting a review
8+
- [ ] I have performed a self-review of my code
9+
- [ ] If it is a core feature, I have added thorough tests
10+
- [ ] Do we need to implement analytics?
11+
- [ ] Will this be part of a product update? If yes, please write one phrase about this update

.github/tests/test/script_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ def test_PR_template_present
110110
assert_not_nil(actual, 'Pull request template is absent')
111111
end
112112

113-
end
113+
end

.github/workflows/discord.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
1-
name: Discord PR Notification
1+
name: Discord Notify
22

33
on:
44
pull_request:
55
types: [opened]
6-
7-
on:
86
push:
9-
pull_request:
10-
types: [opened]
11-
7+
128
jobs:
139
notify:
1410
runs-on: ubuntu-latest
1511

1612
steps:
17-
- name: Send message to Discord
13+
- name: Send Discord message
1814
run: |
19-
curl -X POST ${{ secrets.DISCORD_WEBHOOK }} \
15+
curl -X POST "${{ secrets.DISCORD_WEBHOOK }}" \
2016
-H "Content-Type: application/json" \
21-
-d '{"content": "New PR created: ${{ github.event.pull_request.html_url }}"}'
17+
-d '{"content":"Event triggered: ${{ github.event_name }}"}'

src/.file

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dfgdfgasdasd

0 commit comments

Comments
 (0)