Skip to content

Commit

Permalink
feat(GitHub): add review request notification for maintainers interna…
Browse files Browse the repository at this point in the history
…l channel
  • Loading branch information
hamikhambardzumyan committed Feb 19, 2024
1 parent 7397bd9 commit d70b128
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/notify-reviewers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Internal Notification Channel
on:
pull_request:
types: [opened, edited]
branches: ["release/*"]
jobs:
send_notification:
runs-on: ubuntu-latest
steps:
- name: Send Notification
env:
INTERNAL_NOTIFICATION_CHANNEL_API_ENDPOINT: ${{ secrets.INTERNAL_NOTIFICATION_CHANNEL_API_ENDPOINT }}
run: |
PR_ID=${{ github.event.pull_request.number }}
PR_URL=${{ github.event.pull_request.html_url }}
PR_AUTHOR=${{ github.event.pull_request.user.login }}
REVIEWERS=${{ github.event.pull_request.requested_reviewers.*.login }}
MESSAGE="New Pull Request: #$PR_ID by @$PR_AUTHOR\nLink: $PR_URL\nRequested Reviewers: $REVIEWERS"
curl -X POST -H "Content-Type: application/json" -d "{\"message\": \"$MESSAGE\"}" $INTERNAL_NOTIFICATION_CHANNEL_API_ENDPOINT

0 comments on commit d70b128

Please sign in to comment.