lib/glman/commands/base.rb in glman-0.0.1 vs lib/glman/commands/base.rb in glman-0.0.2

- old
+ new

@@ -13,10 +13,10 @@ user_name = params[0] current_branch = git_repo.current_branch p 'You realy want to create merge request master to master ?' if current_branch == 'master' target_branch = params[2] || 'master' user_id = get_user_id(user_name) - message = params[1] || git_repo.last_commit_message + message = params[1] || git_repo.last_commit_message || current_branch.split('_').join(' ') repository_name = git_repo.repository_name params = {assignee_id: user_id, title: message, source_branch: current_branch, target_branch: target_branch} projects_repo.create_merge_request(repository_name, params) \ No newline at end of file