Repository navigation
feat: 除外ラベルの付いた通知を、除去ではなくメンションの対象外にする - #134
Merged
Merged
Conversation
EXCLUDE_LABELS のラベルが付いた通知を送信対象から外すのをやめ、 通常の通知として送ったうえでメンションの対象から外す。 投稿の分割でもメンション対象以外の側に入れる。 ラベルを調べるのは mention 系 reason の通知に限る。 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
概要
#133 で追加したラベルによる除外の挙動を変える。
EXCLUDE_LABELSのラベルが付いた PR / Issue の通知を送信対象から外すのをやめ、通知は送ったうえでメンションの対象から外す。変更内容
Notify::Usecaseから、通知の除去と、それに伴う既読化の分岐を取り除く(feat: EXCLUDE_LABELS で指定したラベルの通知を送信対象から除外する #133 以前の形に戻る)Github::Usecase#build_messageで、mention 系 reason でも除外ラベルが付いていればメンションしないimportantも false にする。投稿の分割で、@channelの付く投稿に入らない挙動
EXCLUDE_LABELSが未設定ならラベルを取得せず、feat: EXCLUDE_LABELS で指定したラベルの通知を送信対象から除外する #133 以前と同じ挙動になる環境変数名について
環境変数名は
EXCLUDE_LABELSのままにしている。dev / prod の
env.ymlに設定済みで、名前を変えると設定の入れ替えが必要になるため。意味は「通知の除外」から「メンションの除外」に変わる。
確認
crystal spec: 141 examples, 0 failurescrystal tool format --checkと ameba が通ることを確認した🤖 Generated with Claude Code