feat(slack-deploy-notification): include version + diff since last prod release#143
Conversation
…od release
Adds two things to the prod deploy Slack message:
1. The deployed image tag on its own line (previously only in the accessory button)
2. A 'View changes since <prev>' link that opens a GitHub compare view
between the previous prod release and the current one
The shared workflow is always called with `if: inputs.environment == 'prod'`
by every consumer, so no new input is needed. The previous prod release is
computed by walking the GH Releases API and picking the most recent
non-current, non-draft, non-prerelease entry.
Edge cases:
- First-ever prod release for a repo → the diff line is omitted gracefully
- Same tag deployed twice (rollback / redeploy) → filters self out,
picks the next most recent
Refs DEVEX-1653.
PR SummaryLow Risk Overview A new step resolves the prior production release via Reviewed by Cursor Bugbot for commit c2ec023. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit c2ec023. Configure here.
| printf '%s' "$DIFF_LINE" | ||
| echo | ||
| echo "EOF" | ||
| } >> "$GITHUB_OUTPUT" |
There was a problem hiding this comment.
Multiline output breaks Slack JSON
High Severity
The diff_line step output is written with a multiline GITHUB_OUTPUT block that includes an extra echo after printf, so the stored value ends with a real newline. That output is pasted raw into the Slack payload JSON text field, which produces invalid JSON and can cause the notification step to fail on prod deploys.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit c2ec023. Configure here.


Summary
Enriches the shared prod-deploy Slack message with two things:
Rendered example (mrkdwn)
Before:
After:
Design
Blast radius
Every consumer of `slack-deploy-notification.yaml` picks up the change on next prod deploy. Callers observed via cross-repo search: 20+ repos including internal_api, radmin, prices-api, laravel-api-template, reporting-app, suppliers-api, payment_api, pub_buyer_api, etc.
Verification
Once merged, the next prod deploy for any consumer will emit an enriched message. The compute step also `echo`s the previous tag + compare URL to the workflow run log for debugging.
Follow-ups
Related