API Reference gogs v0.3.0

modules

Modules

Documentation for the main Gogs functions. <br /> 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.

Mock functions to simulate Git commands. Sadly, this is necessary until we figure out how to get write-access on GitHub CI. See: https://github.com/dwyl/gogs/issues/15

This is a set up to mock (stub) our API requests to the Gogs API so that we can test all of our code (with Mocks) on GitHub CI. These are just functions that pattern match on the entries and return the expected responses. If you know of a better way of doing this (without introducing more dependencies ...) Please share: https://github.com/dwyl/gogs/issues

Helper functions that can be unit tested independently of the main functions. If you spot any way to make these better: https://github.com/dwyl/gogs/issues