def prepare(force_new_branch = false, feature_name = nil)
      current_branch = local.source_branch
      if force_new_branch || !local.on_feature_branch?
        feature_name ||= get_branch_name
        feature_branch = move_local_changes(
          current_branch, local.sanitize_branch_name(feature_name)
        )
      else
        feature_branch = current_branch
      end
      [current_branch, feature_branch]
    end
def prepare(force_new_branch = false, feature_name = nil)
      current_branch = local.source_branch
      if force_new_branch || !local.on_feature_branch?
        feature_name ||= get_branch_name
        feature_branch = move_local_changes(
          current_branch, local.sanitize_branch_name(feature_name)
        )
      else
        feature_branch = current_branch
      end
      [current_branch, feature_branch]
    end
Prepare local repository to create a new request.
 NOTE:
   People should work on local branches, but especially for single commit
   changes, more often than not, they don't. Therefore this is called
   automatically before creating a pull request, such that we create a
   proper feature branch for them, to be able to use code review the way it
   is intended.