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

    delete_merged_branches = true
    """}

  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{

    BorsNG.ProjectController.add_reviewer(project, %{"reviewer" => user})
  end

  @doc "Set CI status"
  def ci_status(hash, ci_name, status) do
    update_mock([:statuses, hash], &(Map.put(&1, ci_name, status)))
  end

  @doc """
  An example function.
  Call from iex with

     iex> FriendlyMock.full_example

  Then modify, `recompile()` and run again.
  """
  def full_example() do
    alias BorsNG.GitHub.FriendlyMock
    FriendlyMock.init_state
    FriendlyMock.make_admin
