API Reference gogs v0.2.0
modules
Modules
Documentation for Gogs
.
This package is an Elixir
interface to our Gogs
Server.
It contains all functions we need to create repositories,
clone, add data to files, commit, push and diff.
Some of these functions use Git
and others use the REST API
.
We would obviously prefer if everything was one or the other,
but sadly, some things cannot be done via Git
or REST
so we have adopted a "hybrid" approach.
This is a set up to mock (stub) our API requests to the GitHub API so that we can test all of our code in ElixirAuthGithub. These are just functions that pattern match on the entries and return things in the way we expect, so that we can check the pipeline in ElixirAuthGithub.github_auth