Commit 3cdcca5c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Resolve slash_commands commands conflict after merge from CE

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent f8a7b3eb
...@@ -105,11 +105,8 @@ class MergeRequest < ActiveRecord::Base ...@@ -105,11 +105,8 @@ class MergeRequest < ActiveRecord::Base
validates :merge_user, presence: true, if: :merge_when_pipeline_succeeds?, unless: :importing? validates :merge_user, presence: true, if: :merge_when_pipeline_succeeds?, unless: :importing?
validate :validate_branches, unless: [:allow_broken, :importing?, :closed_without_fork?] validate :validate_branches, unless: [:allow_broken, :importing?, :closed_without_fork?]
validate :validate_fork, unless: :closed_without_fork? validate :validate_fork, unless: :closed_without_fork?
<<<<<<< HEAD
validate :validate_approvals_before_merge validate :validate_approvals_before_merge
=======
validate :validate_target_project, on: :create validate :validate_target_project, on: :create
>>>>>>> ce-com/master
scope :by_source_or_target_branch, ->(branch_name) do scope :by_source_or_target_branch, ->(branch_name) do
where("source_branch = :branch OR target_branch = :branch", branch: branch_name) where("source_branch = :branch OR target_branch = :branch", branch: branch_name)
......
...@@ -330,7 +330,6 @@ module SlashCommands ...@@ -330,7 +330,6 @@ module SlashCommands
@updates[:target_branch] = branch_name if project.repository.branch_names.include?(branch_name) @updates[:target_branch] = branch_name if project.repository.branch_names.include?(branch_name)
end end
<<<<<<< HEAD
desc 'Set weight' desc 'Set weight'
params Issue::WEIGHT_RANGE.to_s.squeeze('.').tr('.', '-') params Issue::WEIGHT_RANGE.to_s.squeeze('.').tr('.', '-')
condition do condition do
...@@ -352,7 +351,8 @@ module SlashCommands ...@@ -352,7 +351,8 @@ module SlashCommands
end end
command :clear_weight do command :clear_weight do
@updates[:weight] = nil @updates[:weight] = nil
======= end
desc 'Move issue from one column of the board to another' desc 'Move issue from one column of the board to another'
params '~"Target column"' params '~"Target column"'
condition do condition do
...@@ -373,7 +373,6 @@ module SlashCommands ...@@ -373,7 +373,6 @@ module SlashCommands
issuable.labels.on_project_boards(issuable.project_id).where.not(id: label_id).pluck(:id) issuable.labels.on_project_boards(issuable.project_id).where.not(id: label_id).pluck(:id)
@updates[:add_label_ids] = [label_id] @updates[:add_label_ids] = [label_id]
end end
>>>>>>> ce-com/master
end end
def find_label_ids(labels_param) def find_label_ids(labels_param)
......
...@@ -36,9 +36,6 @@ do. ...@@ -36,9 +36,6 @@ do.
| `/remove_time_spent` | Remove time spent | | `/remove_time_spent` | Remove time spent |
| `/target_branch <Branch Name>` | Set target branch for current merge request | | `/target_branch <Branch Name>` | Set target branch for current merge request |
| `/award :emoji:` | Toggle award for :emoji: | | `/award :emoji:` | Toggle award for :emoji: |
<<<<<<< HEAD
| `/weight <1-9>` | Set the weight of the issue | | `/weight <1-9>` | Set the weight of the issue |
| `/clear_weight` | Clears the issue weight | | `/clear_weight` | Clears the issue weight |
=======
| `/board_move ~column` | Move issue to column on the board | | `/board_move ~column` | Move issue to column on the board |
>>>>>>> ce-com/master
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment