       having: count(p.id) > 1
   end
 
-  @spec ci_skip?(%Patch{}) :: boolean()
+  @spec ci_skip?(t) :: boolean()
   def ci_skip?(patch) do
     rexp =  ~r/\[ci skip\]\[skip ci\]\[skip netlify\]/
     title = patch.title || ""

    |> unique_constraint(:pr_xref, name: :patches_pr_xref_index)
  end

  def all_for_batch(batch_id) do
    from p in Patch,
      join: l in LinkPatchBatch, on: l.patch_id == p.id,

      order_by: [desc: p.pr_xref]
  end

  @spec dups_in_batches() :: Ecto.Queryable.t
  def dups_in_batches do
    all = all_links_not_err()
    from p in Patch,
