Versions in this module Expand all Collapse all v0 v0.4.0 Nov 24, 2026 Changes in this version + type CheckRun struct + At time.Time + Conclusion string + DetailsURL string + ExternalID string + HeadSHA string + ID int64 + Name string + Repo string + Status string + Summary string + Text string + Title string + type PR struct + Base string + Head string + HeadSHA string + Number int + type ReviewComment struct + Body string + CommitID string + ID int64 + Line int + Outdated bool + Path string + Reviewer string + Side string type Server + func (s *Server) CheckRunEvent(installationID int64, fullName string, pr PR, ...) map[string]any + func (s *Server) CheckRuns(fullName string) []CheckRun + func (s *Server) CheckSuiteEvent(installationID int64, fullName string, pr PR, app, conclusion string) map[string]any + func (s *Server) IssueCommentEvent(installationID int64, fullName string, number int, action string, ...) map[string]any + func (s *Server) ReviewCommentEvent(installationID int64, fullName string, pr PR, action string, c ReviewComment) map[string]any + func (s *Server) ReviewEvent(installationID int64, fullName string, pr PR, action string, reviewID int64, ...) map[string]any + func (s *Server) SetAppEvents(events ...string) + func (s *Server) SetAppPermission(name, level string) + func (s *Server) StatusEvent(installationID int64, fullName, sha, context, state, targetURL string) map[string]any v0.3.0 Nov 24, 2026 v0.2.0 Nov 24, 2026 Changes in this version + func DeliveryIDAt(t time.Time) string + func NewDeliveryID() string + func Sign(secret string, body []byte) string + type Account struct + Email string + ID int64 + Login string + Name string + Type string + type Delivery struct + Body []byte + Event string + ID string + Signature string + type Installation struct + Account string + All bool + ID int64 + Repos []int64 + SuspendedAt *time.Time + type Repo struct + DefaultBranch string + ID int64 + Name string + Owner string + Private bool + func (r Repo) FullName() string + type Server struct + APIURL string + Now func() time.Time + PageSize int + TokenTTL time.Duration + URL string + func New(t testing.TB) *Server + func (s *Server) Account(login string) (Account, bool) + func (s *Server) AddInstallationRepos(id int64, repos ...string) + func (s *Server) AddOrg(login string) Account + func (s *Server) AddRepo(fullName string, private bool) Repo + func (s *Server) AddUser(login string) Account + func (s *Server) App() (service.GitHubAppCredentials, bool) + func (s *Server) Calls(pattern string) int + func (s *Server) Client(t testing.TB) *github.Client + func (s *Server) Close() + func (s *Server) Configure(t testing.TB, svc *service.Service) service.GitHubAppCredentials + func (s *Server) Connector() func(service.GitHubAppCredentials) (service.GitHubAPI, error) + func (s *Server) DeleteInstallation(id int64) + func (s *Server) DeleteRepo(fullName string) Repo + func (s *Server) Deliver(t testing.TB, hookURL, event string, payload any) int + func (s *Server) DeliverRaw(t testing.TB, hookURL string, d Delivery) int + func (s *Server) DenyAuthorization(deny bool) + func (s *Server) ExpireTokens() + func (s *Server) Fail(pattern string, status, n int) + func (s *Server) Install(account string, repos ...string) int64 + func (s *Server) Installation(id int64) (Installation, bool) + func (s *Server) InstallationEvent(action string, id int64) map[string]any + func (s *Server) InstallationReposEvent(action string, id int64, repos ...string) map[string]any + func (s *Server) InstallationTokenFor(id int64) string + func (s *Server) Manifest() map[string]any + func (s *Server) ManifestCode(manifestJSON []byte) string + func (s *Server) MemberEvent(installationID int64, action, fullName, login string) map[string]any + func (s *Server) MembershipEvent(installationID int64, action, org, team, login string) map[string]any + func (s *Server) NewApp() service.GitHubAppCredentials + func (s *Server) OAuthCode(login, redirectURI, codeChallenge string) string + func (s *Server) OrgMemberEvent(installationID int64, action, org, login, role string) map[string]any + func (s *Server) Prepare(t testing.TB, svc *service.Service) + func (s *Server) PushEvent(installationID int64, fullName, ref, before, after string) map[string]any + func (s *Server) RemoveInstallationRepos(id int64, repos ...string) + func (s *Server) RenameAccount(login, newLogin string) + func (s *Server) RenameRepo(fullName, newName string) Repo + func (s *Server) Repo(fullName string) (Repo, bool) + func (s *Server) RepoRenamedEvent(installationID int64, fullName, oldName string) map[string]any + func (s *Server) RepoTransferredEvent(installationID int64, fullName, oldOwner string) map[string]any + func (s *Server) RepositoryEvent(action string, installationID int64, r Repo) map[string]any + func (s *Server) SetDefaultBranch(fullName, branch string) + func (s *Server) SetOrgMember(org, login, role string) + func (s *Server) SetPermission(fullName, login, perm string) + func (s *Server) SetPrivate(fullName string, private bool) Repo + func (s *Server) SetProfile(login, name, email string) + func (s *Server) SetupClient(t testing.TB) *github.Client + func (s *Server) Sign(body []byte) string + func (s *Server) SignIn(login string) + func (s *Server) SuspendInstallation(id int64, suspended bool) + func (s *Server) TeamAddEvent(installationID int64, org, team, fullName string) map[string]any + func (s *Server) TeamEvent(installationID int64, action, org, team, fullName string) map[string]any + func (s *Server) TransferRepo(fullName, newOwner string) Repo + func (s *Server) UserToken(login string) string