Documentation ¶
Index ¶
- Constants
- func New(address string, branch string, secret string, logger *logrus.Logger) http.Handler
- type GithubHeaders
- type Server
- func (h *Server) CommitDir(e github.StatusEvent) ([]string, error)
- func (h *Server) HandlePullRequestEvent(g GithubHeaders, e github.PullRequestEvent) error
- func (h *Server) HandleStatusEvent(g GithubHeaders, e github.StatusEvent) error
- func (h *Server) PRDir(e github.PullRequestEvent) ([]string, error)
- func (h *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
Constants ¶
View Source
const ROUTE = "/{user:.*}/{name:.*}/"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GithubHeaders ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server handles github webhooks.
func (*Server) HandlePullRequestEvent ¶
func (h *Server) HandlePullRequestEvent(g GithubHeaders, e github.PullRequestEvent) error
func (*Server) HandleStatusEvent ¶
func (h *Server) HandleStatusEvent(g GithubHeaders, e github.StatusEvent) error
Click to show internal directories.
Click to hide internal directories.