     delete_merged_branches = true
     """}
 
+  @doc """
+  Creates a single installation with a single repo where
+  nothing has happened yet.
+  """
   def init_state() do
-    # Creates a single installation with a single repo where
-    # nothing has happened yet.
-    # Will do everything through webhook notifications.
     ServerMock.put_state(%{
       {:installation, 91} => %{ repos: [
           %BorsNG.GitHub.Repo{

                statuses: %{"SHA-1" => %{"ci" => :running}}
          }
        }
  """

  alias BorsNG.GitHub.ServerMock

    update_mock([:pr_commits, pr_num], &(&1 ++ [commit]))
  end

  @doc """
  Adds a reviewer comment.
  """
  def add_comment(pr_num, body, author \\ @def_user) do
    pr = Enum.find(prs(), &(match?(%{number: ^pr_num}, &1)))
    update_mock([:comments, pr_num], &([body | &1]))
    WebhookController.do_webhook(%{
