Versions in this module Expand all Collapse all v0 v0.4.0 Jul 22, 2026 Changes in this version + var ErrAmbiguousAuth = errors.New("github: configure either Token or AppID/InstallationID/PrivateKey, not both") + var ErrBadChannelID = errors.New(`github: channel ID must be "owner/repo#number"`) + var ErrBadReactionConfig = errors.New("github: invalid reaction polling config") + var ErrMissingConfig = errors.New("github: missing required config field") + func Addr(b *core.Bot) string + func Client(b *core.Bot) *gogithub.Client + func New(cfg Config) (*core.Bot, error) + type Config struct + Addr string + AppID int64 + HTTPClient *http.Client + InstallationID int64 + OnPullRequest func(ctx context.Context, event *gogithub.PullRequestEvent) + OnPush func(ctx context.Context, event *gogithub.PushEvent) + Path string + PrivateKey []byte + ReactionPollInterval time.Duration + ReactionPollNoAutoInterval bool + ReactionPollRepos []string + Token string + WebhookSecret string + type Message struct + Event *gogithub.IssueCommentEvent + func RawEvent(m *core.Message) (*Message, bool) + type ReactionPayload struct + Comment *gogithub.IssueComment + Reaction *gogithub.Reaction + func RawReaction(r *core.Reaction) (*ReactionPayload, bool)