Skip to content

Commit

Permalink
Show the reason in the notification excerpt
Browse files Browse the repository at this point in the history
  • Loading branch information
danidoni committed Apr 29, 2024
1 parent ea99fb1 commit b045c3c
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 b045c3c

Please sign in to comment.