Versions in this module Expand all Collapse all v0 v0.3.1 Oct 29, 2026 v0.3.0 Oct 29, 2026 v0.2.1 Oct 28, 2026 v0.2.0 Oct 28, 2026 v0.1.0 Oct 28, 2026 Changes in this version + const MergeNotMergeable + const MergeReviewRequired + const RouteAccessToken + const RouteAddLabels + const RouteAddSubIssue + const RouteApp + const RouteComment + const RouteComments + const RouteCompare + const RouteCreateComment + const RouteCreateIssue + const RouteCreatePull + const RouteCreateReview + const RouteDeliveries + const RouteDelivery + const RouteDeploymentStatus + const RouteDeployments + const RouteGraphQL + const RouteInstallation + const RouteInstallationRepos + const RouteIssue + const RouteListIssues + const RouteMembers + const RouteMerge + const RouteOrgInstallation + const RoutePull + const RoutePulls + const RouteReleases + const RouteRemoveLabel + const RouteRepo + const RouteReview + const RouteReviews + const RouteSearch + const RouteSubIssues + const RouteTeamMembers + const RouteUpdateComment + const RouteUpdateIssue + const RouteUpdatePull + const RouteUserInstallation + const TokenTTL + const WebURL + func AppKey(t testing.TB) ([]byte, *rsa.PrivateKey) + func NewAppKey(t testing.TB) ([]byte, *rsa.PrivateKey) + type CheckSuite struct + Conclusion string + Runs int + Status string + type Claims struct + ExpiresAt time.Time + IssuedAt time.Time + Issuer string + type Comment struct + Author User + Body string + ID int64 + type Delivery struct + Action string + DeliveredAt time.Time + Event string + GUID string + Headers map[string]string + ID int64 + Payload json.RawMessage + Redelivery bool + StatusCode int + type Deployment struct + Environment string + ID int64 + Ref string + SHA string + Statuses []DeploymentStatus + type DeploymentStatus struct + EnvironmentURL string + State string + type Failure struct + Header http.Header + Message string + Status int + type GraphQLRequest struct + Operation string + Variables map[string]any + type Installation struct + AppID int64 + ID int64 + Owner string + Permissions map[string]string + Repos []string + User bool + type Object struct + Author User + Base string + Body string + CheckSuites []CheckSuite + Comments []Comment + Draft bool + Head string + HeadRef string + ID int64 + Labels []string + MergeBlock string + MergeCommit string + MergeMethod string + Number int + PR bool + Repo string + Reviews []Review + State string + StateReason string + SubIssues []int + Threads []Thread + Title string + UpdatedAt time.Time + type PullRequest struct + Base string + MergeCommit string + MergedAt time.Time + Number int + type Release struct + Draft bool + Prerelease bool + Tag string + type Repo struct + AllowMergeCommit bool + AllowRebaseMerge bool + AllowSquashMerge bool + DefaultBranch string + type Request struct + Body []byte + Claims Claims + Method string + Path string + type Review struct + Author User + Body string + Comments []ReviewComment + CommitID string + ID int64 + State string + type ReviewComment struct + Body string + Line int + Path string + Side string + type Server struct + func NewServer(t testing.TB, c clock.Clock) *Server + func (s *Server) AddAccountRepos(owner string, names ...string) + func (s *Server) AddApp(appID int64, key *rsa.PublicKey) + func (s *Server) AddDelivery(appID int64, d Delivery) + func (s *Server) AddDeployment(repo string, d Deployment) + func (s *Server) AddInstallation(in Installation) + func (s *Server) AddObject(o Object) + func (s *Server) AddOrgMember(org, login, role string) + func (s *Server) AddPulls(repo string, prs ...PullRequest) + func (s *Server) AddReleases(repo string, rels ...Release) + func (s *Server) AddTeam(org, slug string, logins ...string) + func (s *Server) Count(route string) int + func (s *Server) EnableHook(appID int64) + func (s *Server) FailNext(route string, f Failure) + func (s *Server) Gate() (release func()) + func (s *Server) GraphQLRequests() []GraphQLRequest + func (s *Server) InFlight() int + func (s *Server) Object(repo string, n int) (Object, bool) + func (s *Server) Requests() []Request + func (s *Server) SetAncestor(repo, ancestor, descendant string) + func (s *Server) SetGraphQL(op string, vars map[string]any, response []byte) + func (s *Server) SetInstallationPermissions(id int64, perms map[string]string) + func (s *Server) SetPageSize(n int) + func (s *Server) SetRepo(repo string, r Repo) + func (s *Server) SetSlug(appID int64, slug string) + func (s *Server) TokenRequests() []TokenRequest + func (s *Server) Tokens() []string + func (s *Server) UpdateObject(repo string, n int, fn func(*Object)) + type Thread struct + Comments []Comment + ID string + Resolved bool + type TokenRequest struct + Body []byte + HasRepositories bool + InstallationID int64 + Permissions map[string]string + Repositories []string + type User struct + Bot bool + Login string