Commit 0495773
authored
ci: only notify Slack on drift detection or failure (#106)
## Summary
Slack notifications for drift tests now follow a state-machine pattern:
| Previous run | Current run | Slack? |
|---|---|---|
| any | drift detected | Yes — "Drift detected" |
| any | infra failure | Yes — "Drift tests failed" |
| failure | success | Yes — "Drift tests passing again" (recovery) |
| success | success | No — stay quiet |
Uses `gh run list` to check the previous run's conclusion at
notification time. No external state storage needed.
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 file changed
Lines changed: 27 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
70 | 79 | | |
71 | 80 | | |
72 | 81 | | |
73 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
74 | 90 | | |
75 | 91 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 92 | + | |
| 93 | + | |
80 | 94 | | |
81 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
82 | 103 | | |
| 104 | + | |
83 | 105 | | |
84 | 106 | | |
85 | 107 | | |
| |||
0 commit comments