Skip to content

Commit

Permalink
Merge pull request #16046 from danidoni/show-the-reason-in-the-notifi…
Browse files Browse the repository at this point in the history
…cation-excerpt-for-the-new-decision-favored-types

Show the reason in the notification excerpt for the new decision favored types
  • Loading branch information
saraycp committed Apr 29, 2024
2 parents ea99fb1 + b045c3c commit f335582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/components/notification_excerpt_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def call
@notifiable.description.to_s # description can be nil
when 'Comment'
helpers.render_without_markdown(@notifiable.body)
when 'Report', 'Decision', 'Appeal', 'DecisionFavoredWithDeleteRequest', 'DecisionFavoredWithUserCommentingRestrictions'
when 'Report', 'Decision', 'Appeal', 'DecisionFavoredWithDeleteRequest', 'DecisionFavoredWithUserCommentingRestrictions', 'DecisionFavoredWithCommentModeration', 'DecisionFavoredWithUserDeletion'
@notifiable.reason
when 'WorkflowRun'
"In repository #{@notifiable.repository_full_name}"
Expand Down

0 comments on commit f335582

Please sign in to comment.