Versions in this module Expand all Collapse all v0 v0.5.18 Mar 23, 2026 Changes in this version + const PullRequest + const PushEvent + const WebhookCreated + const WebhookDeleted + const WebhookUpdated + func SendEventRequest(t *testing.T, event GithubEvent, url, secret string, payload []byte) + type GithubEvent string + type Hook struct + type TestServer struct + WebhookEvents chan webhookEvent + func NewTestServer(t *testing.T, opts ...TestServerOption) (*TestServer, *url.URL) + func (s *TestServer) GetStatus(t *testing.T, ctx context.Context) *github.StatusEvent + func (s *TestServer) HasWebhook() bool + func (s *TestServer) SendEvent(t *testing.T, event GithubEvent, payload []byte) + type TestServerOption func(*TestServer) + func WithArchive(tarball []byte) TestServerOption + func WithCommit(commit string) TestServerOption + func WithDefaultBranch(branch string) TestServerOption + func WithDisableTLS() TestServerOption + func WithHandler(path string, h http.HandlerFunc) TestServerOption + func WithHook(hook Hook) TestServerOption + func WithPullRequest(pullNumber string, changedPaths ...string) TestServerOption + func WithRefs(refs ...string) TestServerOption + func WithRepo(repo vcs.Repo) TestServerOption + func WithUsername(username user.Username) TestServerOption