Teams通知をWebhook直送へ移行(通常通知はWebhook専用・エラー通知は管理者メール併用)#2
Merged
Conversation
Closed
Agent-Logs-Url: https://github.com/mitsuiJao/webc-asgmt-notify/sessions/d452a683-efe2-4cd8-ae7b-180563a82178 Co-authored-by: mitsuiJao <88090304+mitsuiJao@users.noreply.github.com>
Agent-Logs-Url: https://github.com/mitsuiJao/webc-asgmt-notify/sessions/d452a683-efe2-4cd8-ae7b-180563a82178 Co-authored-by: mitsuiJao <88090304+mitsuiJao@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Change notification method from email to webhook
Teams通知をメール経由からWebhook直送へ移行
May 26, 2026
Owner
|
@copilot |
Agent-Logs-Url: https://github.com/mitsuiJao/webc-asgmt-notify/sessions/016259d8-a7ff-4e9e-bc0a-e1385df81527 Co-authored-by: mitsuiJao <88090304+mitsuiJao@users.noreply.github.com>
Contributor
Author
メール通知機能を復元し、Webhookとメールの両方を送れるように修正しました。対応コミットは |
Copilot
AI
changed the title
Teams通知をメール経由からWebhook直送へ移行
Teams通知をWebhook直送へ移行(メール通知も併用可能)
May 26, 2026
Owner
|
@copilot |
…lerts Agent-Logs-Url: https://github.com/mitsuiJao/webc-asgmt-notify/sessions/eee5199c-8c36-487d-a3e5-f0d5fc4e4b35 Co-authored-by: mitsuiJao <88090304+mitsuiJao@users.noreply.github.com>
Contributor
Author
ご要望どおりに調整しました。通常通知はWebhookのみ、認証エラー/実行時エラーはTeamsへWebhook送信しつつ管理者メールも併用します。対応コミットは |
Copilot
AI
changed the title
Teams通知をWebhook直送へ移行(メール通知も併用可能)
Teams通知をWebhook直送へ移行(通常通知はWebhook専用・エラー時は管理者メール併用)
May 26, 2026
Owner
|
@copilot 実行時エラーはteamsにも飛ぶようになってる?メールだけにしてほしい |
Agent-Logs-Url: https://github.com/mitsuiJao/webc-asgmt-notify/sessions/c2312826-ec47-497b-921e-98ab2942c425 Co-authored-by: mitsuiJao <88090304+mitsuiJao@users.noreply.github.com>
Contributor
Author
実行時エラー通知はメール専用に変更しました(Teams送信はしません)。対応コミットは |
Copilot
AI
changed the title
Teams通知をWebhook直送へ移行(通常通知はWebhook専用・エラー時は管理者メール併用)
Teams通知をWebhook直送へ移行(通常通知はWebhook専用・エラー通知は管理者メール併用)
May 26, 2026
mitsuiJao
approved these changes
May 26, 2026
mitsuiJao
marked this pull request as ready for review
May 26, 2026 07:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
現在の通知経路を、Teams Incoming Webhook への直接送信に対応させる変更です。
レビュー指摘を反映し、通常通知はWebhookのみ、エラー通知は管理者メールを併用する構成に調整しました(実行時エラーはメールのみ)。
通知送信基盤の更新
src/sender.jsでfetchによる Teams WebhookPOSTを実装sendNotification) はWebhook送信のみに統一sendLoginRequiredNotification) は Teams Webhook + 管理者メール併用sendErrorNotification) は 管理者メールのみ 送信(Teams送信なし)実行フローの更新
index.jsでloginRequired時にsendLoginRequiredNotification(...)を送信catchでsendErrorNotification(error)を送信設定モデルの整理
src/config.jsのTEAMS_WEBHOOK_URLをWebhook通知に利用APIKEY / SENDFROM / SENDTOはエラー時の管理者メール通知用途として維持運用・補助コードの追従
debug_sender.jsをWebhook送信デバッグ用に更新.github/workflows/cron.disable.yml)でWebhook/メール両方の環境変数に対応README.mdの.env説明を、メール設定は管理者エラー通知向けである旨に更新依存関係
resendはエラー時の管理者メール通知のため利用継続