Documentation
¶
Index ¶
- type Context
- func (c *Context) Author() string
- func (c *Context) Branches() (base string, head string)
- func (c *Context) ChangedFiles() ([]*pull.File, error)
- func (c *Context) Comments() ([]*pull.Comment, error)
- func (c *Context) Commits() ([]*pull.Commit, error)
- func (c *Context) CreatedAt() time.Time
- func (c *Context) HeadSHA() string
- func (c *Context) IsCollaborator(org, repo, user, desiredPerm string) (bool, error)
- func (c *Context) IsDraft() bool
- func (c *Context) IsOrgMember(org, user string) (bool, error)
- func (c *Context) IsTeamMember(team, user string) (bool, error)
- func (c *Context) Labels() ([]string, error)
- func (c *Context) LatestStatuses() (map[string]string, error)
- func (c *Context) Number() int
- func (c *Context) OrganizationMembers(org string) ([]string, error)
- func (c *Context) RepositoryCollaborators() (map[string]string, error)
- func (c *Context) RepositoryName() string
- func (c *Context) RepositoryOwner() string
- func (c *Context) RequestedReviewers() ([]*pull.Reviewer, error)
- func (c *Context) Reviews() ([]*pull.Review, error)
- func (c *Context) TeamMembers(team string) ([]string, error)
- func (c *Context) Teams() (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
OwnerValue string
RepoValue string
NumberValue int
AuthorValue string
CreatedAtValue time.Time
HeadSHAValue string
BranchBaseName string
BranchHeadName string
ChangedFilesValue []*pull.File
ChangedFilesError error
CommitsValue []*pull.Commit
CommitsError error
CommentsValue []*pull.Comment
CommentsError error
ReviewsValue []*pull.Review
ReviewsError error
TeamMemberships map[string][]string
TeamMembershipError error
TeamsValue map[string]string
TeamsError error
OrgMemberships map[string][]string
OrgMembershipError error
CollaboratorMemberships map[string][]string
CollaboratorMembershipError error
RequestedReviewersValue []*pull.Reviewer
RequestedReviewersError error
LatestStatusesValue map[string]string
LatestStatusesError error
LabelsValue []string
LabelsError error
Draft bool
}
func (*Context) IsCollaborator ¶
func (*Context) OrganizationMembers ¶
func (*Context) RepositoryCollaborators ¶
func (*Context) RepositoryName ¶
func (*Context) RepositoryOwner ¶
func (*Context) RequestedReviewers ¶ added in v1.20.0
Click to show internal directories.
Click to hide internal directories.