Skip to content

Improve notification handling in triage workflow - #23

Open
SvMak wants to merge 3 commits into
sdkman:mainfrom
SvMak:patch-1
Open

SvMak wants to merge 3 commits into
sdkman:mainfrom
SvMak:patch-1

Conversation

@SvMak

@SvMak SvMak commented Sep 20, 2026

Copy link
Copy Markdown
Member

Refactor notification sending to use temporary response file and check HTTP status.

Refactor notification sending to use temporary response file and check HTTP status.
@SvMak

SvMak commented Sep 20, 2026

Copy link
Copy Markdown
Member Author

@marc0der Can you please check it?

@marc0der

Copy link
Copy Markdown
Member

@SvMak, apologies, only seeing this now!

@chloe41427 chloe41427 Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 main and keep the model as anthropic/claude-haiku-4-5. main moved that line from openrouter/anthropic/... to anthropic/... 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 the openrouter/... value — take main'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 curl failure (DNS/connection refused) will abort via set -e before the HTTP $http_status line prints — that's fine, the step still fails and --show-error surfaces the reason; just noting it.

Ping me once it's rebased and I'll get it merged. Thanks again for improving this! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants