gitlab-org--gitlab-foss/app/services/issues
Rémy Coutable 0eea8c8857 Support slash commands in noteable description and notes
Some important things to note:

- commands are removed from noteable.description / note.note
- commands are translated to params so that they are treated as normal
  params in noteable Creation services
- the logic is not in the models but in the Creation services, which is
  the right place for advanced logic that has nothing to do with what
  models should be responsible of!
- UI/JS needs to be updated to handle notes which consist of commands
  only
- the `/merge` command is not handled yet

Other improvements:

- Don't process commands in commit notes and display a flash is note is only commands
- Add autocomplete for slash commands
- Add description and params to slash command DSL methods
- Ensure replying by email with a commands-only note works
- Use :subscription_event instead of calling noteable.subscribe
- Support :todo_event in IssuableBaseService

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-08-13 00:05:57 +02:00
..
base_service.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
bulk_update_service.rb Allow bulk (un)subscription from issues in issue index 2016-07-14 19:36:19 -03:00
close_service.rb Update methods that use issue close service 2016-03-17 09:54:16 +01:00
create_service.rb Support slash commands in noteable description and notes 2016-08-13 00:05:57 +02:00
move_service.rb 🚓 2016-06-03 16:35:56 +02:00
reopen_service.rb Update SystemNoteService method naming conventions 2015-05-11 00:01:15 -04:00
update_service.rb Move #create_confidentiality_note to Issues::UpdateService 2016-05-18 17:43:40 -05:00