Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WebhookHandler ¶ added in v0.3.1
WebhookHandler returns a generic GitHub Webhook handler for GitHub events.
Types ¶
type Repositories ¶
type Repositories interface {
ListByUser(ctx context.Context, user string, opts *github.RepositoryListByUserOptions) ([]*github.Repository, *github.Response, error)
}
type Stargazer ¶ added in v0.3.1
type Stargazer struct {
StarredAt time.Time `json:"starred_at"`
Action string `json:"-"`
RepoName string `json:"repo_name"`
RepoHTMLURL string `json:"repo_html_url"`
Login string `json:"login"`
UserHTMLURL string `json:"user_html_url"`
}
Stargazer represents a star from one user for one repository.
type WebhookHandlers ¶ added in v0.3.1
WebhookHandlers is a collection of handlers for GitHub events.
func (WebhookHandlers) Has ¶ added in v0.3.1
func (h WebhookHandlers) Has(evt string) bool
Has returns true if the handler for the given event is defined.