pulltest

package
v1.43.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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) Author

func (c *Context) Author() string

func (*Context) Body added in v1.27.0

func (c *Context) Body() (*pull.Body, error)

func (*Context) Branches

func (c *Context) Branches() (base string, head string)

func (*Context) ChangedFiles

func (c *Context) ChangedFiles() ([]*pull.File, error)

func (*Context) CollaboratorPermission added in v1.22.0

func (c *Context) CollaboratorPermission(user string) (pull.Permission, error)

func (*Context) Comments

func (c *Context) Comments() ([]*pull.Comment, error)

func (*Context) Commits

func (c *Context) Commits() ([]*pull.Commit, error)

func (*Context) CreatedAt added in v1.20.0

func (c *Context) CreatedAt() time.Time

func (*Context) EvaluationTimestamp added in v1.31.0

func (c *Context) EvaluationTimestamp() time.Time

func (*Context) HeadSHA

func (c *Context) HeadSHA() string

func (*Context) IsClosed added in v1.21.3

func (c *Context) IsClosed() bool

func (*Context) IsDraft

func (c *Context) IsDraft() bool

func (*Context) IsOpen added in v1.21.3

func (c *Context) IsOpen() bool

func (*Context) IsOrgMember

func (c *Context) IsOrgMember(org, user string) (bool, error)

func (*Context) IsTeamMember

func (c *Context) IsTeamMember(team, user string) (bool, error)

func (*Context) Labels

func (c *Context) Labels() ([]string, error)

func (*Context) LatestStatuses

func (c *Context) LatestStatuses() (map[string]string, error)

func (*Context) LatestWorkflowRuns added in v1.36.0

func (c *Context) LatestWorkflowRuns() (map[string][]string, error)

func (*Context) Number

func (c *Context) Number() int

func (*Context) OrganizationMembers

func (c *Context) OrganizationMembers(org string) ([]string, error)

func (*Context) PushedAt added in v1.31.0

func (c *Context) PushedAt(sha string) (time.Time, error)

func (*Context) RepositoryCollaborators

func (c *Context) RepositoryCollaborators(minPermission pull.Permission) ([]*pull.Collaborator, error)

func (*Context) RepositoryCustomProperties added in v1.40.0

func (c *Context) RepositoryCustomProperties() (map[string]pull.CustomProperty, error)

func (*Context) RepositoryName

func (c *Context) RepositoryName() string

func (*Context) RepositoryOwner

func (c *Context) RepositoryOwner() string

func (*Context) RequestedReviewers added in v1.20.0

func (c *Context) RequestedReviewers() ([]*pull.Reviewer, error)

func (*Context) Reviews

func (c *Context) Reviews() ([]*pull.Review, error)

func (*Context) TeamMembers

func (c *Context) TeamMembers(team string) ([]string, error)

func (*Context) Teams

func (c *Context) Teams() (map[string]pull.Permission, error)

func (*Context) Title added in v1.21.0

func (c *Context) Title() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL