pulltest

package
v1.40.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

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() ([]*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