Skip to content

Fix missing SLACK_WEBHOOK_URL in post-x workflow step#2294

Merged
hiroshinishio merged 1 commit intomainfrom
fix-slack-webhook-guard
Feb 20, 2026
Merged

Fix missing SLACK_WEBHOOK_URL in post-x workflow step#2294
hiroshinishio merged 1 commit intomainfrom
fix-slack-webhook-guard

Conversation

@hiroshinishio
Copy link
Collaborator

Summary

  • Added missing SLACK_WEBHOOK_URL env var to the post-x job in post-sns.yml - this was the root cause of the TypeError: Failed to parse URL from undefined error on line 108 of post-twitter.js
  • Added defensive guards in post-twitter.js, post-linkedin.js, and post-hackernews.js to skip Slack notification gracefully when SLACK_WEBHOOK_URL is not set

The post-x job in post-sns.yml was missing the SLACK_WEBHOOK_URL env var,
causing fetch() to fail with "Failed to parse URL from undefined". Also
added guards in all SNS scripts to skip Slack notification gracefully
when the env var is not set.
@hiroshinishio hiroshinishio self-assigned this Feb 20, 2026
@hiroshinishio hiroshinishio merged commit 6a4d4b1 into main Feb 20, 2026
@hiroshinishio hiroshinishio deleted the fix-slack-webhook-guard branch February 20, 2026 23:46
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.

1 participant