diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-22 00:09:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-22 00:09:30 +0300 |
commit | 664db1da1cd5951f09c0f54ff5e9dae16bcf1a92 (patch) | |
tree | 5e62895748848a94ed9775ffa5f017da4e83d25e /app/services/quick_actions | |
parent | c0b718a0dbd99e6c0d30e5bc55bdcf4a12946375 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/quick_actions')
-rw-r--r-- | app/services/quick_actions/interpret_service.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/services/quick_actions/interpret_service.rb b/app/services/quick_actions/interpret_service.rb index 1d7c5d2c80a..f1e4dac8835 100644 --- a/app/services/quick_actions/interpret_service.rb +++ b/app/services/quick_actions/interpret_service.rb @@ -158,15 +158,15 @@ module QuickActions end def map_commands(commands, method) - commands.map do |name, arg| - definition = self.class.definition_by_name(name) + commands.map do |name_or_alias, arg| + definition = self.class.definition_by_name(name_or_alias) next unless definition case method when :explain definition.explain(self, arg) when :execute_message - @execution_message[name.to_sym] || definition.execute_message(self, arg) + @execution_message[definition.name.to_sym] || definition.execute_message(self, arg) end end.compact end |