Module: Gitlab::SlashCommands::Presenters::NoteBase
- Included in:
- IssueComment
- Defined in:
- lib/gitlab/slash_commands/presenters/note_base.rb
Constant Summary collapse
- GREEN =
'#38ae67'
Instance Method Summary collapse
Instance Method Details
#author ⇒ Object
21 22 23 |
# File 'lib/gitlab/slash_commands/presenters/note_base.rb', line 21 def resource. end |
#color(_) ⇒ Object
9 10 11 |
# File 'lib/gitlab/slash_commands/presenters/note_base.rb', line 9 def color(_) GREEN end |
#fields ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'lib/gitlab/slash_commands/presenters/note_base.rb', line 25 def fields [ { title: 'Comment', value: resource.note } ] end |
#issue ⇒ Object
13 14 15 |
# File 'lib/gitlab/slash_commands/presenters/note_base.rb', line 13 def issue resource.noteable end |
#project ⇒ Object
17 18 19 |
# File 'lib/gitlab/slash_commands/presenters/note_base.rb', line 17 def project issue.project end |