class
Notify::Message
- Notify::Message
- Reference
- Object
Overview
送信先に依存しない中立な通知メッセージ。 Slack / Discord などのアダプタがそれぞれの形式へ変換する。
Defined in:
notify/models.crConstructors
Instance Method Summary
- #author_icon : String | Nil
- #author_link : String | Nil
- #author_name : String | Nil
- #color : String | Nil
- #footer : String | Nil
- #footer_icon : String | Nil
-
#important? : Bool
重要度の高い(自分宛ての)通知か。メンション対象かどうかで投稿を区切り、
@channel付きの投稿に自分宛て以外を混ぜないために使う(issue #120)。 - #mention? : Bool
- #pretext : String | Nil
- #text : String | Nil
- #title : String | Nil
- #title_link : String | Nil
Constructor Detail
Instance Method Detail
def important? : Bool
#
重要度の高い(自分宛ての)通知か。メンション対象かどうかで投稿を区切り、
@channel 付きの投稿に自分宛て以外を混ぜないために使う(issue #120)。
mention? とは別に持つ。mention? は CI が赤い PR でチャンネル全体を叩かない ための抑止(issue #105)が掛かった後の値で、抑止されても通知の重要度自体は 下がらない。両者を同じフラグにすると、CI が赤いレビュー依頼が通常の通知に 混ざってしまう。