View Source LastCrusader.Micropub.GitHub (Last Crusader v0.11.0)
Posts content to github
Summary
Functions
shortcut for get_file/5
Gets file content from GitHub
shortcut for new_file/6
Creates a commit with the filecontent to GitHub
shortcut for update_file/6
Updates a file on GitHub
Functions
shortcut for get_file/5
Uses Application.get_env/2
for default parameters.
@spec get_file(map(), String.t(), String.t(), String.t(), String.t()) :: {:ko, atom()} | {:ok, any()}
Gets file content from GitHub
shortcut for new_file/6
Uses Application.get_env/2
for default parameters.
Link to this function
new_file(auth, user, repo, filename, filecontent, branch \\ "master")
View Source@spec new_file(map(), String.t(), String.t(), String.t(), String.t(), String.t()) :: {:ko, atom()} | {:ok, any()}
Creates a commit with the filecontent to GitHub
shortcut for update_file/6
Uses Application.get_env/2
for default parameters.
Link to this function
update_file(auth, user, repo, filename, filecontent, branch \\ "master")
View Source@spec update_file(map(), String.t(), String.t(), String.t(), String.t(), String.t()) :: {:ko, atom()} | {:ok, any()}
Updates a file on GitHub