     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{

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

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

  def full_example() do
    # Example function.
    # Call from iex with
    #   iex> FriendlyMock.full_example
    # Then modify, `recompile()` and run again.
    alias BorsNG.GitHub.FriendlyMock
    FriendlyMock.init_state
    FriendlyMock.make_admin

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

  Now try

      iex> FriendlyMock.ci_status("SHA-1", "ci", :ok)

  instead of :running above.
  """

  alias BorsNG.GitHub.ServerMock
