Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/notify-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: PR Notification
on:
pull_request:
types: [opened]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Notify Slack
run: |
PR_TITLE="${{ github.event.pull_request.title }}"
PR_URL="${{ github.event.pull_request.html_url }}"
PR_AUTHOR="${{ github.event.pull_request.user.login }}"
PR_NUM="${{ github.event.pull_request.number }}"
curl -s -X POST "${{ secrets.SLACK_WEBHOOK }}" \
-H "Content-Type: application/json" \
-d "{\"text\": \"🔀 New PR #${PR_NUM} on aimock by *${PR_AUTHOR}*: <${PR_URL}|${PR_TITLE}>\"}"
19 changes: 19 additions & 0 deletions .github/workflows/test-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,25 @@ jobs:
if-no-files-found: warn
retention-days: 30

- name: Notify Slack
if: always()
run: |
if [ "${{ steps.drift.outputs.exit_code }}" = "2" ]; then
EMOJI="🚨"
MSG="*Drift detected* in aimock — providers changed response formats. <https://github.com/CopilotKit/aimock/actions/runs/${{ github.run_id }}|View run>"
elif [ "${{ job.status }}" = "success" ]; then
EMOJI="✅"
MSG="Drift tests passed — all providers match."
else
EMOJI="❌"
MSG="*Drift tests failed* (infra error). <https://github.com/CopilotKit/aimock/actions/runs/${{ github.run_id }}|View run>"
fi
curl -s -X POST "${{ secrets.SLACK_WEBHOOK }}" \
-H "Content-Type: application/json" \
-d "{\"text\": \"${EMOJI} ${MSG}\"}"
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

- name: Fail if critical drift detected
if: steps.drift.outputs.exit_code == '2'
run: exit 1
17 changes: 17 additions & 0 deletions .github/workflows/update-competitive-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,20 @@ jobs:
--base main
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Notify Slack
if: always()
run: |
if [ "${{ steps.changes.outputs.changed }}" = "true" ]; then
EMOJI="📊"
MSG="*Competitive matrix changes detected* — PR created with updated migration pages. <https://github.com/CopilotKit/aimock/actions/runs/${{ github.run_id }}|View run>"
elif [ "${{ job.status }}" = "success" ]; then
EMOJI="✅"
MSG="Competitive matrix check — no changes detected."
else
EMOJI="❌"
MSG="*Competitive matrix update failed*. <https://github.com/CopilotKit/aimock/actions/runs/${{ github.run_id }}|View run>"
fi
curl -s -X POST "${{ secrets.SLACK_WEBHOOK }}" \
-H "Content-Type: application/json" \
-d "{\"text\": \"${EMOJI} ${MSG}\"}"
Loading