Go-Semaphore is an SDK to map to the SemaphoreApp API. This lets you check on build status, branch status and branch history. Check the GoDoc link for a list of functions you can call. Check the semaphore api for more information.
TODO: Implement build from commit.
Get the package
go get -u github.com/jbydeley/go-semaphore
Import it
import "github.com/jbydeley/go-semaphore"
api := semaphore.NewSemaphore("auth_token")
projects, err := api.GetProjects()
GetProjects returns a project.
api := semaphore.NewSemaphore("auth_token")
branches, err := api.GetBranches("project_hash")
GetBranches returns an array of branches.
api := semaphore.NewSemaphore("auth_token")
branchStatus, err := api.GetBranchStatus("project_hash", branch_id)
GetBranchStatus returns a branch status.