 
     changeset = WorkflowDB.new(%{
       :id => raw_workflow_id,
-      :deployment_repo => params["deployment_repo"],
+      :deployment_repo => trimTrailing(params["deployment_repo"]),
       :deployment_repo_git_ref => params["deployment_repo_git_ref"],
-      :source_repo => params["source_repo"],
+      :source_repo => trimTrailing(params["source_repo"]),
       :source_repo_git_ref => params["source_repo_git_ref"],
       :source_commit_hash => params["source_commit_hash"],
       :milestones => milestones,

      |> json FormatHelper.keywords_to_map(changeset.errors)
    end
  end

  @doc """
  PUT/PATCH /workflows/:id - Update a Workflow

      :workflow_completed => workflow_completed,
      :event_log => event_log,
    })
    IO.inspect(changeset)
    if changeset.valid? do
      try do
        raw_workflow = Repo.insert(changeset)
