crier

package
v0.0.0-...-5666d16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package crier sets GitHub statuses and writes comments for test statuses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReportToCrier

func ReportToCrier(url string, r Report) error

Types

type GitHubClient

type GitHubClient interface {
	CreateStatus(org, repo, ref string, s github.Status) error
	ListIssueComments(org, repo string, number int) ([]github.IssueComment, error)
	CreateComment(org, repo string, number int, comment string) error
	DeleteComment(org, repo string, ID int) error
}

type Report

type Report struct {
	RepoOwner string `json:"repo_owner"`
	RepoName  string `json:"repo_name"`
	Author    string `json:"author"`
	Number    int    `json:"number"`
	Commit    string `json:"commit"`

	Context      string `json:"context"`
	State        string `json:"state"`
	Description  string `json:"description"`
	RerunCommand string `json:"rerun_command"`
	URL          string `json:"url"`
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ghc GitHubClient) *Server

func (*Server) Run

func (s *Server) Run()

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL