-
- Downloads
Make slash commands contextual
- Return only slash commands that make sense for the current noteable
- Allow slash commands decription to be dynamic
Other improvements:
- Add permission checks in slash commands definition
- Use IssuesFinder and MergeRequestsFinder
- Use next if instead of a unless block, and use splat operator instead of flatten
Signed-off-by:
Rémy Coutable <remy@rymai.me>
Showing
- Gemfile 2 additions, 1 deletionGemfile
- Gemfile.lock 2 additions, 0 deletionsGemfile.lock
- app/controllers/projects_controller.rb 1 addition, 1 deletionapp/controllers/projects_controller.rb
- app/services/projects/autocomplete_service.rb 21 additions, 2 deletionsapp/services/projects/autocomplete_service.rb
- app/services/slash_commands/interpret_service.rb 117 additions, 20 deletionsapp/services/slash_commands/interpret_service.rb
- doc/workflow/slash_commands.md 1 addition, 1 deletiondoc/workflow/slash_commands.md
- lib/gitlab/slash_commands/dsl.rb 31 additions, 9 deletionslib/gitlab/slash_commands/dsl.rb
- spec/fixtures/emails/commands_only_reply.eml 1 addition, 1 deletionspec/fixtures/emails/commands_only_reply.eml
- spec/lib/gitlab/slash_commands/dsl_spec.rb 67 additions, 15 deletionsspec/lib/gitlab/slash_commands/dsl_spec.rb
- spec/services/slash_commands/interpret_service_spec.rb 151 additions, 15 deletionsspec/services/slash_commands/interpret_service_spec.rb
Loading
| Loading
| @@ -209,7 +209,8 @@ gem 'mousetrap-rails', '~> 1.4.6' |
# Detect and convert string character encoding | ||
gem 'charlock_holmes', '~> 0.7.3' | ||
# Parse duration | ||
# Parse time & duration | ||
gem 'chronic', '~> 0.10.2' | ||
gem 'chronic_duration', '~> 0.10.6' | ||
gem 'sass-rails', '~> 5.0.0' | ||
Loading
| Loading
|
Please register or sign in to comment