LastCrusader.Micropub.GitLab (Last Crusader v0.14.0)

Copy Markdown View Source

Posts content to GitLab

Summary

Functions

get_file(host, token, project_id, filename, branch)

@spec get_file(String.t(), String.t(), String.t(), String.t(), String.t()) ::
  {:ko, atom(), any()} | {:ok, String.t()}

Gets file content from GitLab

new_file(host, token, project_id, filename, filecontent, branch)

@spec new_file(String.t(), String.t(), String.t(), String.t(), String.t(), String.t()) ::
  {:ko, atom(), any()} | {:ok, :content_created}

Creates a commit with the filecontent to GitLab

update_file(host, token, project_id, filename, filecontent, branch)

@spec update_file(
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t()
) ::
  {:ko, atom(), any()} | {:ok, :content_updated}

Updates a file on GitLab