summaryrefslogtreecommitdiff
path: root/lib/gitlab/quick_actions/common_actions.rb
diff options
context:
space:
mode:
authorAlexandru Croitor <acroitor@gitlab.com>2019-03-13 12:45:43 +0200
committerAlexandru Croitor <acroitor@gitlab.com>2019-03-29 12:53:28 +0200
commit4b9ff4d2fe2eb22e3abed32f56aef6b24d40aa31 (patch)
tree3a432dbc2ed53ba021f83191e507d098756d1e61 /lib/gitlab/quick_actions/common_actions.rb
parentfea9400ec8a2a31d582a425226494f5fb9f90495 (diff)
downloadgitlab-ce-4b9ff4d2fe2eb22e3abed32f56aef6b24d40aa31.tar.gz
Extend quick actions dsl50199-quick-actions-refactor
* Extend quick actions dsl to allow specifying model types to which given quick action applies * Rename issuable attribute to noteable in interpret_service.rb * Refactor and reorder quick action specs * Create a shared example spec for each quick action to be used for issue, merge request and commit specs. https://gitlab.com/gitlab-org/gitlab-ce/issues/50199
Diffstat (limited to 'lib/gitlab/quick_actions/common_actions.rb')
-rw-r--r--lib/gitlab/quick_actions/common_actions.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/gitlab/quick_actions/common_actions.rb b/lib/gitlab/quick_actions/common_actions.rb
new file mode 100644
index 00000000000..5d2732d4826
--- /dev/null
+++ b/lib/gitlab/quick_actions/common_actions.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+module Gitlab
+ module QuickActions
+ module CommonActions
+ extend ActiveSupport::Concern
+ include Gitlab::QuickActions::Dsl
+
+ included do
+ # This is a dummy command, so that it appears in the autocomplete commands
+ desc 'CC'
+ params '@user'
+ command :cc
+ end
+ end
+ end
+end