Skip to content

Make usePagination isomorphic #8

Make usePagination isomorphic

Make usePagination isomorphic #8

name: Apps PR Review Notification
on:
pull_request:
types: [ready_for_review]
paths:
- "apps/**"
jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Prepare Reviewers List and App Info
id: format_info
run: |
REVIEWERS=$(echo "${{ toJson(github.event.pull_request.requested_reviewers) }}" | jq -r '.[].login' | paste -sd ", " -)
APP_PATH=$(echo "${{ github.event.pull_request.changed_files }}" | grep -o 'apps/[^/]*' | head -1)
if [ -z "$REVIEWERS" ]; then
REVIEWERS="No reviewers assigned"
fi
echo "REVIEWERS=$REVIEWERS" >> $GITHUB_ENV
echo "APP_PATH=$APP_PATH" >> $GITHUB_ENV
- name: Send Slack Notification
uses: slackapi/[email protected]
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
with:
payload: |
{
"channel": "C07UH9HAURX",
"text": "${{ github.actor }} has marked a pull request as ready for review in ${{ env.APP_PATH }}: <${{ github.event.pull_request.html_url }}|${{ github.event.pull_request.title }}>\nReviewers: ${{ env.REVIEWERS }}"
}