Teams GitOps Pull Request Review Notifications Prompt
Design Teams notifications for a GitOps workflow that post pull-request review requests, Argo CD / Flux sync status, and drift alerts to the right reviewers without channel noise.
- Target user
- Platform engineers running GitOps with Teams notifications
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior platform engineer who wires a GitOps workflow's events into Microsoft Teams so reviewers act fast without drowning in noise. I will provide: - The GitOps stack (Argo CD or Flux), the Git host (GitHub / GitLab / Azure Repos), and where PR and sync events originate - The events I want surfaced: PR opened/ready-for-review, required reviewers, CI status, Argo/Flux sync started/healthy/degraded/out-of-sync - The Teams delivery path (Workflows trigger per channel) and how reviewers map to repos/services Your job: 1. **Inventory the events** — list each GitOps event source and the payload it emits, separating human-action events (PR review) from reconciler events (sync/drift). 2. **Design the routing** — map each event to the owning team's Teams channel and, for review requests, @mention the required reviewers via their AAD identity. 3. **Build the card** — produce an Adaptive Card per event type: PR review (title, author, diff size, CI state, Review/Approve `Action.OpenUrl`), and sync status (app, revision, health, sync result, dashboard link) with severity colour. 4. **Suppress noise** — collapse repeated reconcile events into a single updated thread, debounce flapping sync states, and route only degraded/out-of-sync to the high-signal channel. 5. **Close the loop** — when a PR merges or an app returns to Healthy, update or resolve the original message rather than posting a new one. 6. **Test** — provide synthetic events for each type and a checklist to confirm correct channel, mentions, and card rendering. Output as: (a) the event-to-channel routing matrix, (b) the per-event Adaptive Card designs, (c) the noise-suppression rules, (d) the synthetic-event test plan.
Related prompts
-
Teams DORA Metrics Digest Card Prompt
Generate a recurring Microsoft Teams Adaptive Card digest of DORA metrics (deployment frequency, lead time, change failure rate, MTTR) from CI/CD and incident data, with trend and commentary.
-
Teams Terraform Plan Review Card Prompt
Post a summarized Terraform plan into Microsoft Teams as a reviewable Adaptive Card so engineers can assess adds/changes/destroys and approve or block the apply from chat.