-
- Downloads
Simplify the slash commands DSL to store action blocks instead of creating methods
Other improvements:
- Ensure slash commands autocomplete doesn't break when noteable_type is not given
- Slash commands: improve autocomplete behavior and /due command
- We don't display slash commands for note edit forms.
- Add tests for reply by email with slash commands
- Be sure to execute slash commands after the note creation in Notes::CreateService
Signed-off-by:
Rémy Coutable <remy@rymai.me>
Showing
- app/assets/javascripts/gfm_auto_complete.js.es6 3 additions, 1 deletionapp/assets/javascripts/gfm_auto_complete.js.es6
- app/controllers/projects_controller.rb 3 additions, 5 deletionsapp/controllers/projects_controller.rb
- app/services/issuable_base_service.rb 2 additions, 2 deletionsapp/services/issuable_base_service.rb
- app/services/notes/create_service.rb 3 additions, 2 deletionsapp/services/notes/create_service.rb
- app/services/notes/slash_commands_service.rb 9 additions, 6 deletionsapp/services/notes/slash_commands_service.rb
- app/services/projects/autocomplete_service.rb 21 additions, 13 deletionsapp/services/projects/autocomplete_service.rb
- app/services/projects/participants_service.rb 15 additions, 10 deletionsapp/services/projects/participants_service.rb
- app/services/slash_commands/interpret_service.rb 14 additions, 19 deletionsapp/services/slash_commands/interpret_service.rb
- app/views/layouts/_init_auto_complete.html.haml 1 addition, 1 deletionapp/views/layouts/_init_auto_complete.html.haml
- doc/workflow/slash_commands.md 1 addition, 1 deletiondoc/workflow/slash_commands.md
- lib/gitlab/slash_commands/dsl.rb 45 additions, 43 deletionslib/gitlab/slash_commands/dsl.rb
- spec/features/issues/user_uses_slash_commands_spec.rb 0 additions, 1 deletionspec/features/issues/user_uses_slash_commands_spec.rb
- spec/fixtures/emails/commands_in_reply.eml 43 additions, 0 deletionsspec/fixtures/emails/commands_in_reply.eml
- spec/fixtures/emails/commands_only_reply.eml 1 addition, 0 deletionsspec/fixtures/emails/commands_only_reply.eml
- spec/lib/gitlab/email/handler/create_note_handler_spec.rb 43 additions, 2 deletionsspec/lib/gitlab/email/handler/create_note_handler_spec.rb
- spec/lib/gitlab/slash_commands/dsl_spec.rb 92 additions, 53 deletionsspec/lib/gitlab/slash_commands/dsl_spec.rb
spec/fixtures/emails/commands_in_reply.eml
0 → 100644
Please register or sign in to comment