Commit 14ef46f
authored
fix(ci): report merge train merged alerts against the base branch (#24939)
## Summary
Retargeted to `merge-train/spartan-v5` per request. The matching
`merge-train/spartan` port is
[aztec-packages#24940](#24940).
The merge-train merged Slack alert was reporting the PR head branch as
the destination. For
[aztec-packages#24851](#24851),
the PR head was `merge-train/spartan-v5` but the actual base was
`v5-next`, so the Slack message was misleading.
## Changes
- Pass `github.event.pull_request.base.ref` to the merged notification
step as `TARGET_BRANCH`.
- Make `ci3/merge_train_failure_slack_notify --merged` prefer
`TARGET_BRANCH`, with a `REF_NAME` fallback for direct/local use.
## Tests
- `bash -n ci3/merge_train_failure_slack_notify`
- `git diff --check`
---
*Created by
[claudebox](https://claudebox.work/v2/sessions/85cdf7ecc9727322/jobs/1)
· group: `slackbot` · requested by Facundo Carreiro · [Slack
thread](https://aztecprotocol.slack.com/archives/C0AU8BULZHC/p1784809391722469?thread_ts=1784809391.722469&cid=C0AU8BULZHC)*2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
0 commit comments