ghbot

package module
v0.0.0-...-33ddd0e Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

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

func New

func New(cfg Config) *Bot

func (*Bot) AddCheckRunEventHook

func (bot *Bot) AddCheckRunEventHook(hook CheckRunEventHook)

func (*Bot) AddCheckSuiteEventHook

func (bot *Bot) AddCheckSuiteEventHook(hook CheckSuiteEventHook)

func (*Bot) AddCommitCommentEventHook

func (bot *Bot) AddCommitCommentEventHook(hook CommitCommentEventHook)

func (*Bot) AddCreateEventHook

func (bot *Bot) AddCreateEventHook(hook CreateEventHook)

func (*Bot) AddDeleteEventHook

func (bot *Bot) AddDeleteEventHook(hook DeleteEventHook)

func (*Bot) AddDeployKeyEventHook

func (bot *Bot) AddDeployKeyEventHook(hook DeployKeyEventHook)

func (*Bot) AddDeploymentEventHook

func (bot *Bot) AddDeploymentEventHook(hook DeploymentEventHook)

func (*Bot) AddDeploymentStatusEventHook

func (bot *Bot) AddDeploymentStatusEventHook(hook DeploymentStatusEventHook)

func (*Bot) AddForkEventHook

func (bot *Bot) AddForkEventHook(hook ForkEventHook)

func (*Bot) AddGitHubAppAuthorizationEventHook

func (bot *Bot) AddGitHubAppAuthorizationEventHook(hook GitHubAppAuthorizationEventHook)

func (*Bot) AddGollumEventHook

func (bot *Bot) AddGollumEventHook(hook GollumEventHook)

func (*Bot) AddInstallationEventHook

func (bot *Bot) AddInstallationEventHook(hook InstallationEventHook)

func (*Bot) AddInstallationRepositoriesEventHook

func (bot *Bot) AddInstallationRepositoriesEventHook(hook InstallationRepositoriesEventHook)

func (*Bot) AddIssueCommentEventHook

func (bot *Bot) AddIssueCommentEventHook(hook IssueCommentEventHook)

func (*Bot) AddIssueEventHook

func (bot *Bot) AddIssueEventHook(hook IssueEventHook)

func (*Bot) AddIssuesEventHook

func (bot *Bot) AddIssuesEventHook(hook IssuesEventHook)

func (*Bot) AddLabelEventHook

func (bot *Bot) AddLabelEventHook(hook LabelEventHook)

func (*Bot) AddMarketplacePurchaseEventHook

func (bot *Bot) AddMarketplacePurchaseEventHook(hook MarketplacePurchaseEventHook)

func (*Bot) AddMemberEventHook

func (bot *Bot) AddMemberEventHook(hook MemberEventHook)

func (*Bot) AddMembershipEventHook

func (bot *Bot) AddMembershipEventHook(hook MembershipEventHook)

func (*Bot) AddMetaEventHook

func (bot *Bot) AddMetaEventHook(hook MetaEventHook)

func (*Bot) AddMilestoneEventHook

func (bot *Bot) AddMilestoneEventHook(hook MilestoneEventHook)

func (*Bot) AddOrgBlockEventHook

func (bot *Bot) AddOrgBlockEventHook(hook OrgBlockEventHook)

func (*Bot) AddOrganizationEventHook

func (bot *Bot) AddOrganizationEventHook(hook OrganizationEventHook)

func (*Bot) AddPageBuildEventHook

func (bot *Bot) AddPageBuildEventHook(hook PageBuildEventHook)

func (*Bot) AddPingEventHook

func (bot *Bot) AddPingEventHook(hook PingEventHook)

func (*Bot) AddProjectCardEventHook

func (bot *Bot) AddProjectCardEventHook(hook ProjectCardEventHook)

func (*Bot) AddProjectColumnEventHook

func (bot *Bot) AddProjectColumnEventHook(hook ProjectColumnEventHook)

func (*Bot) AddProjectEventHook

func (bot *Bot) AddProjectEventHook(hook ProjectEventHook)

func (*Bot) AddPublicEventHook

func (bot *Bot) AddPublicEventHook(hook PublicEventHook)

func (*Bot) AddPullRequestEventHook

func (bot *Bot) AddPullRequestEventHook(hook PullRequestEventHook)

func (*Bot) AddPullRequestReviewCommentEventHook

func (bot *Bot) AddPullRequestReviewCommentEventHook(hook PullRequestReviewCommentEventHook)

func (*Bot) AddPullRequestReviewEventHook

func (bot *Bot) AddPullRequestReviewEventHook(hook PullRequestReviewEventHook)

func (*Bot) AddPushEventHook

func (bot *Bot) AddPushEventHook(hook PushEventHook)

func (*Bot) AddReleaseEventHook

func (bot *Bot) AddReleaseEventHook(hook ReleaseEventHook)

func (*Bot) AddRepositoryEventHook

func (bot *Bot) AddRepositoryEventHook(hook RepositoryEventHook)

func (*Bot) AddRepositoryVulnerabilityAlertEventHook

func (bot *Bot) AddRepositoryVulnerabilityAlertEventHook(hook RepositoryVulnerabilityAlertEventHook)

func (*Bot) AddStarEventHook

func (bot *Bot) AddStarEventHook(hook StarEventHook)

func (*Bot) AddStatusEventHook

func (bot *Bot) AddStatusEventHook(hook StatusEventHook)

func (*Bot) AddTeamAddEventHook

func (bot *Bot) AddTeamAddEventHook(hook TeamAddEventHook)

func (*Bot) AddTeamEventHook

func (bot *Bot) AddTeamEventHook(hook TeamEventHook)

func (*Bot) AddWatchEventHook

func (bot *Bot) AddWatchEventHook(hook WatchEventHook)

func (*Bot) Run

func (bot *Bot) Run(port int) error

func (*Bot) SetLogger

func (bot *Bot) SetLogger(logger Logger)

type CheckRunEventHook

type CheckRunEventHook func(context.Context, *github.CheckRunEvent) error

type CheckSuiteEventHook

type CheckSuiteEventHook func(context.Context, *github.CheckSuiteEvent) error

type CommitCommentEventHook

type CommitCommentEventHook func(context.Context, *github.CommitCommentEvent) error

type Config

type Config struct {
	WebHookSecret string
}

type CreateEventHook

type CreateEventHook func(context.Context, *github.CreateEvent) error

type DeleteEventHook

type DeleteEventHook func(context.Context, *github.DeleteEvent) error

type DeployKeyEventHook

type DeployKeyEventHook func(context.Context, *github.DeployKeyEvent) error

type DeploymentEventHook

type DeploymentEventHook func(context.Context, *github.DeploymentEvent) error

type DeploymentStatusEventHook

type DeploymentStatusEventHook func(context.Context, *github.DeploymentStatusEvent) error

type ForkEventHook

type ForkEventHook func(context.Context, *github.ForkEvent) error

type GitHubAppAuthorizationEventHook

type GitHubAppAuthorizationEventHook func(context.Context, *github.GitHubAppAuthorizationEvent) error

type GollumEventHook

type GollumEventHook func(context.Context, *github.GollumEvent) error

type InstallationEventHook

type InstallationEventHook func(context.Context, *github.InstallationEvent) error

type InstallationRepositoriesEventHook

type InstallationRepositoriesEventHook func(context.Context, *github.InstallationRepositoriesEvent) error

type IssueCommentEventHook

type IssueCommentEventHook func(context.Context, *github.IssueCommentEvent) error

type IssueEventHook

type IssueEventHook func(context.Context, *github.IssueEvent) error

type IssuesEventHook

type IssuesEventHook func(context.Context, *github.IssuesEvent) error

type LabelEventHook

type LabelEventHook func(context.Context, *github.LabelEvent) error

type Logger

type Logger interface {
	Print(args ...interface{})
	Printf(format string, args ...interface{})
	Println(args ...interface{})
}

type MarketplacePurchaseEventHook

type MarketplacePurchaseEventHook func(context.Context, *github.MarketplacePurchaseEvent) error

type MemberEventHook

type MemberEventHook func(context.Context, *github.MemberEvent) error

type MembershipEventHook

type MembershipEventHook func(context.Context, *github.MembershipEvent) error

type MetaEventHook

type MetaEventHook func(context.Context, *github.MetaEvent) error

type MilestoneEventHook

type MilestoneEventHook func(context.Context, *github.MilestoneEvent) error

type OrgBlockEventHook

type OrgBlockEventHook func(context.Context, *github.OrgBlockEvent) error

type OrganizationEventHook

type OrganizationEventHook func(context.Context, *github.OrganizationEvent) error

type PageBuildEventHook

type PageBuildEventHook func(context.Context, *github.PageBuildEvent) error

type PingEventHook

type PingEventHook func(context.Context, *github.PingEvent) error

type ProjectCardEventHook

type ProjectCardEventHook func(context.Context, *github.ProjectCardEvent) error

type ProjectColumnEventHook

type ProjectColumnEventHook func(context.Context, *github.ProjectColumnEvent) error

type ProjectEventHook

type ProjectEventHook func(context.Context, *github.ProjectEvent) error

type PublicEventHook

type PublicEventHook func(context.Context, *github.PublicEvent) error

type PullRequestEventHook

type PullRequestEventHook func(context.Context, *github.PullRequestEvent) error

type PullRequestReviewCommentEventHook

type PullRequestReviewCommentEventHook func(context.Context, *github.PullRequestReviewCommentEvent) error

type PullRequestReviewEventHook

type PullRequestReviewEventHook func(context.Context, *github.PullRequestReviewEvent) error

type PushEventHook

type PushEventHook func(context.Context, *github.PushEvent) error

type ReleaseEventHook

type ReleaseEventHook func(context.Context, *github.ReleaseEvent) error

type RepositoryEventHook

type RepositoryEventHook func(context.Context, *github.RepositoryEvent) error

type StarEventHook

type StarEventHook func(context.Context, *github.StarEvent) error

type StatusEventHook

type StatusEventHook func(context.Context, *github.StatusEvent) error

type TeamAddEventHook

type TeamAddEventHook func(context.Context, *github.TeamAddEvent) error

type TeamEventHook

type TeamEventHook func(context.Context, *github.TeamEvent) error

type WatchEventHook

type WatchEventHook func(context.Context, *github.WatchEvent) error

Jump to

Keyboard shortcuts

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