Repository navigation
Conversation
Refactor notification sending to use temporary response file and check HTTP status.
|
@marc0der Can you please check it? |
|
@SvMak, apologies, only seeing this now! |
There was a problem hiding this comment.
Thanks for this, @SvMak — and apologies for the slow turnaround. This is a genuinely good improvement. 🙏
Replacing curl -sf with capturing %{http_code}, saving the response body, and failing loud is exactly right: with -sf, any non-2xx from the notification hook was swallowed silently, which has made real failures invisible in the Actions logs. This surfaces them immediately. set -euo pipefail is a good call too — and I checked that set -u is safe here, since every variable the script references is declared in the step's env: block.
Code-wise I'm happy — approving. One mechanical thing before it can merge:
- Please merge
mainand keep the model asanthropic/claude-haiku-4-5.mainmoved that line fromopenrouter/anthropic/...toanthropic/...on Sep 22 (the notification hook runs on the claude-cli-backed Anthropic model), and that's the only conflict. Your branch predates that change, so it still carries theopenrouter/...value — takemain's when you resolve.
Optional / non-blocking:
- It'd be great to apply the same robust-curl pattern to the two sibling workflows (
reusable-triage-fork-pr.yml,reusable-dependabot-digest.yml) so all three fail loud. Happy for that to be a follow-up PR. - Minor: a transport-level
curlfailure (DNS/connection refused) will abort viaset -ebefore theHTTP $http_statusline prints — that's fine, the step still fails and--show-errorsurfaces the reason; just noting it.
Ping me once it's rebased and I'll get it merged. Thanks again for improving this! 🙌
Refactor notification sending to use temporary response file and check HTTP status.