Versions in this module Expand all Collapse all v0 v0.1.1 Jan 21, 2019 Changes in this version type File + ShowFiles bool v0.1.0 Jan 18, 2019 Changes in this version + func DecryptKMS(base64Text string) (string, error) + type Assignees struct + func (a *Assignees) Add(assignees ...string) + func (a *Assignees) HasAssignees() bool + func (a *Assignees) List() []string + func (a *Assignees) RemoveFromList(names ...string) + type Comment struct + func (c *Comment) Add(s string) + func (c *Comment) HasComment() bool + func (c *Comment) Show() string + type Config struct + APIToken string + APITokenKMS string + AddComment bool + BotID int64 + RepositoryList map[string]*Repository + Timeout time.Duration + WebHookSecret string + func NewConfig() (Config, error) + func (c *Config) Init() error + func (c Config) GetAPIToken() string + func (c Config) GetRepository(name string) *Repository + func (c Config) HasAPIToken() bool + type File struct + Assignees []string + Comment string + Name string + Regexp []string + Reviewers []string + func (f *File) GetComment() string + func (f *File) Init() + func (f *File) Match(path string) bool + type Repository struct + Files []*File + func (r *Repository) Init() + type WebhookHandler struct + Config Config + func New() (*WebhookHandler, error) + func NewWithConfig(conf Config) (*WebhookHandler, error) + func (h *WebhookHandler) HandleRequest(r *http.Request) error