Skip to content

feat: log the text that was posted - #366

Merged
sksat (sksat) merged 1 commit into
mainfrom
feat/log-what-was-posted
Sep 14, 2026
Merged

sksat (sksat) merged 1 commit into
mainfrom
feat/log-what-was-posted

Conversation

@sksat

Copy link
Copy Markdown
Member

通知の文面が意図どおりか (誰が主語か、リンクが崩れていないか) を後から確かめる手段が無かった。POST ok は channel と本文の有無しか出しておらず、実際に送った text はどこにも残らない。結果、文面を確認するにはテストに println! を仕込んで覗くことになっていた。

送った text を info で出す。

INFO POST ok channel=memo_sksat-hubhook text=[<...|arkedge/hubhook>] <...|sksat> requested a review from <...|meltingrabbit> body="attachment text"

本文 (attachment) は出さない。長い上に、Issue の中身がログに残り続ける。有無は既に body で出している。

🤖 Generated with Claude Code

通知の文面が意図どおりか (誰が主語か、リンクが崩れていないか) を確かめる
手段が無かった。`POST ok` は channel と本文の有無しか出しておらず、実際に
送った `text` はどこにも残らない。結果、文面を確認するにはテストに println を
仕込んで覗くことになっていた。

送った `text` を info で出す。

本文 (attachment) は出さない。長い上に、Issue の中身がログに残り続ける。
有無は既に `body` で出している。

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 14, 2026 12:14
@sksat sksat (sksat) self-assigned this Sep 14, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused change has no unresolved blocking issues.

Pull request overview

Logs the posted Slack message text after successful delivery without logging attachment contents.

Changes:

  • Adds text to the POST ok info log.
  • Preserves attachment body presence-only logging.
File summaries
File Summary
src/slack.rs Includes posted text in successful-post logs.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sksat
sksat (sksat) merged commit 93de6de into main Sep 14, 2026
2 checks passed
@sksat
sksat (sksat) deleted the feat/log-what-was-posted branch September 14, 2026 12:16
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