Documentation
¶
Index ¶
- type Context
- func (c *Context) Author() string
- func (c *Context) Body() (*pull.Body, error)
- func (c *Context) Branches() (base string, head string)
- func (c *Context) ChangedFiles() ([]*pull.File, error)
- func (c *Context) CollaboratorPermission(user string) (pull.Permission, error)
- func (c *Context) Comments() ([]*pull.Comment, error)
- func (c *Context) Commits() ([]*pull.Commit, error)
- func (c *Context) CreatedAt() time.Time
- func (c *Context) EvaluationTimestamp() time.Time
- func (c *Context) HeadSHA() string
- func (c *Context) IsClosed() bool
- func (c *Context) IsDraft() bool
- func (c *Context) IsOpen() 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) LatestWorkflowRuns() (map[string][]string, error)
- func (c *Context) Number() int
- func (c *Context) OrganizationMembers(org string) ([]string, error)
- func (c *Context) PushedAt(sha string) (time.Time, error)
- func (c *Context) RepositoryCollaborators() ([]*pull.Collaborator, error)
- func (c *Context) RepositoryCustomProperties() (map[string]pull.CustomProperty, 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]pull.Permission, error)
- func (c *Context) Title() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
EvaluationTimestampValue time.Time
OwnerValue string
RepoValue string
NumberValue int
TitleValue string
AuthorValue string
CreatedAtValue time.Time
StateValue string
HeadSHAValue string
BranchBaseName string
BranchHeadName string
BodyValue *pull.Body
BodyError error
ChangedFilesValue []*pull.File
ChangedFilesError error
CommitsValue []*pull.Commit
CommitsError error
PushedAtValue map[string]time.Time
CommentsValue []*pull.Comment
CommentsError error
ReviewsValue []*pull.Review
ReviewsError error
TeamMemberships map[string][]string
TeamMembershipError error
TeamsValue map[string]pull.Permission
TeamsError error
OrgMemberships map[string][]string
OrgMembershipError error
CollaboratorsValue []*pull.Collaborator
CollaboratorsError error
RequestedReviewersValue []*pull.Reviewer
RequestedReviewersError error
LatestStatusesValue map[string]string
LatestStatusesError error
LatestWorkflowRunsValue map[string][]string
LatestWorkflowRunsError error
LabelsValue []string
LabelsError error
RepositoryCustomPropertiesValue map[string]pull.CustomProperty
RepositoryCustomPropertiesError error
Draft bool
}
func (*Context) CollaboratorPermission ¶ added in v1.22.0
func (c *Context) CollaboratorPermission(user string) (pull.Permission, error)
func (*Context) EvaluationTimestamp ¶ added in v1.31.0
func (*Context) LatestWorkflowRuns ¶ added in v1.36.0
func (*Context) OrganizationMembers ¶
func (*Context) RepositoryCollaborators ¶
func (c *Context) RepositoryCollaborators() ([]*pull.Collaborator, error)
func (*Context) RepositoryCustomProperties ¶ added in v1.40.0
func (c *Context) RepositoryCustomProperties() (map[string]pull.CustomProperty, error)
func (*Context) RepositoryName ¶
func (*Context) RepositoryOwner ¶
func (*Context) RequestedReviewers ¶ added in v1.20.0
Click to show internal directories.
Click to hide internal directories.