|
5 | 5 | name: Notify slack |
6 | 6 |
|
7 | 7 | on: |
8 | | - |
9 | 8 | issues: |
10 | 9 | types: [opened, reopened] |
11 | 10 |
|
|
16 | 15 | types: [created] |
17 | 16 |
|
18 | 17 | jobs: |
| 18 | + issue: |
| 19 | + if: github.event_name == 'issues' && github.actor != 'asyncapi-bot' && github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' |
| 20 | + name: Notify slack on every new issue |
| 21 | + runs-on: ubuntu-latest |
| 22 | + steps: |
| 23 | + - name: Convert markdown to slack markdown for issue |
| 24 | + uses: LoveToKnow/[email protected] |
| 25 | + id: issuemarkdown |
| 26 | + with: |
| 27 | + text: "[${{github.event.issue.title}}](${{github.event.issue.html_url}}) \n ${{github.event.issue.body}}" |
| 28 | + - name: Send info about issue |
| 29 | + uses: rtCamp/action-slack-notify@v2 |
| 30 | + env: |
| 31 | + SLACK_WEBHOOK: ${{secrets.SLACK_GITHUB_NEWISSUEPR}} |
| 32 | + SLACK_TITLE: 🐛 New Issue in ${{github.repository}} 🐛 |
| 33 | + SLACK_MESSAGE: ${{steps.issuemarkdown.outputs.text}} |
| 34 | + MSG_MINIMAL: true |
19 | 35 |
|
20 | | - issue: |
21 | | - if: github.event_name == 'issues' && github.actor != 'asyncapi-bot' && github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' |
22 | | - name: Notify slack on every new issue |
23 | | - runs-on: ubuntu-latest |
24 | | - steps: |
25 | | - - name: Convert markdown to slack markdown for issue |
26 | | - uses: LoveToKnow/[email protected] |
27 | | - id: issuemarkdown |
28 | | - with: |
29 | | - text: "[${{github.event.issue.title}}](${{github.event.issue.html_url}}) \n ${{github.event.issue.body}}" |
30 | | - - name: Send info about issue |
31 | | - uses: rtCamp/action-slack-notify@v2 |
32 | | - env: |
33 | | - SLACK_WEBHOOK: ${{secrets.SLACK_GITHUB_NEWISSUEPR}} |
34 | | - SLACK_TITLE: 🐛 New Issue in ${{github.repository}} 🐛 |
35 | | - SLACK_MESSAGE: ${{steps.issuemarkdown.outputs.text}} |
36 | | - MSG_MINIMAL: true |
| 36 | + pull_request: |
| 37 | + if: github.event_name == 'pull_request_target' && github.actor != 'asyncapi-bot' && github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' |
| 38 | + name: Notify slack on every new pull request |
| 39 | + runs-on: ubuntu-latest |
| 40 | + steps: |
| 41 | + - name: Convert markdown to slack markdown for pull request |
| 42 | + uses: LoveToKnow/[email protected] |
| 43 | + id: prmarkdown |
| 44 | + with: |
| 45 | + text: "[${{github.event.pull_request.title}}](${{github.event.pull_request.html_url}}) \n ${{github.event.pull_request.body}}" |
| 46 | + - name: Send info about pull request |
| 47 | + uses: rtCamp/action-slack-notify@v2 |
| 48 | + env: |
| 49 | + SLACK_WEBHOOK: ${{secrets.SLACK_GITHUB_NEWISSUEPR}} |
| 50 | + SLACK_TITLE: 💪 New Pull Request in ${{github.repository}} 💪 |
| 51 | + SLACK_MESSAGE: ${{steps.prmarkdown.outputs.text}} |
| 52 | + MSG_MINIMAL: true |
37 | 53 |
|
38 | | - pull_request: |
39 | | - if: github.event_name == 'pull_request_target' && github.actor != 'asyncapi-bot' && github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' |
40 | | - name: Notify slack on every new pull request |
41 | | - runs-on: ubuntu-latest |
42 | | - steps: |
43 | | - - name: Convert markdown to slack markdown for pull request |
44 | | - uses: LoveToKnow/[email protected] |
45 | | - id: prmarkdown |
46 | | - with: |
47 | | - text: "[${{github.event.pull_request.title}}](${{github.event.pull_request.html_url}}) \n ${{github.event.pull_request.body}}" |
48 | | - - name: Send info about pull request |
49 | | - uses: rtCamp/action-slack-notify@v2 |
50 | | - env: |
51 | | - SLACK_WEBHOOK: ${{secrets.SLACK_GITHUB_NEWISSUEPR}} |
52 | | - SLACK_TITLE: 💪 New Pull Request in ${{github.repository}} 💪 |
53 | | - SLACK_MESSAGE: ${{steps.prmarkdown.outputs.text}} |
54 | | - MSG_MINIMAL: true |
55 | | - |
56 | | - discussion: |
57 | | - if: github.event_name == 'discussion' && github.actor != 'asyncapi-bot' && github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' |
58 | | - name: Notify slack on every new pull request |
59 | | - runs-on: ubuntu-latest |
60 | | - steps: |
61 | | - - name: Convert markdown to slack markdown for pull request |
62 | | - uses: LoveToKnow/[email protected] |
63 | | - id: discussionmarkdown |
64 | | - with: |
65 | | - text: "[${{github.event.discussion.title}}](${{github.event.discussion.html_url}}) \n ${{github.event.discussion.body}}" |
66 | | - - name: Send info about pull request |
67 | | - uses: rtCamp/action-slack-notify@v2 |
68 | | - env: |
69 | | - SLACK_WEBHOOK: ${{secrets.SLACK_GITHUB_NEWISSUEPR}} |
70 | | - SLACK_TITLE: 💬 New Discussion in ${{github.repository}} 💬 |
71 | | - SLACK_MESSAGE: ${{steps.discussionmarkdown.outputs.text}} |
72 | | - MSG_MINIMAL: true |
| 54 | + discussion: |
| 55 | + if: github.event_name == 'discussion' && github.actor != 'asyncapi-bot' && github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' |
| 56 | + name: Notify slack on every new pull request |
| 57 | + runs-on: ubuntu-latest |
| 58 | + steps: |
| 59 | + - name: Convert markdown to slack markdown for pull request |
| 60 | + uses: LoveToKnow/[email protected] |
| 61 | + id: discussionmarkdown |
| 62 | + with: |
| 63 | + text: "[${{github.event.discussion.title}}](${{github.event.discussion.html_url}}) \n ${{github.event.discussion.body}}" |
| 64 | + - name: Send info about pull request |
| 65 | + uses: rtCamp/action-slack-notify@v2 |
| 66 | + env: |
| 67 | + SLACK_WEBHOOK: ${{secrets.SLACK_GITHUB_NEWISSUEPR}} |
| 68 | + SLACK_TITLE: 💬 New Discussion in ${{github.repository}} 💬 |
| 69 | + SLACK_MESSAGE: ${{steps.discussionmarkdown.outputs.text}} |
| 70 | + MSG_MINIMAL: true |
0 commit comments