pulltest

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 1 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 {
	OwnerValue  string
	RepoValue   string
	NumberValue int

	AuthorValue  string
	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

	HasReviewersValue bool
	HasReviewersError error

	LatestStatusesValue map[string]string
	LatestStatusesError error

	LabelsValue []string
	LabelsError error

	Draft bool
}

func (*Context) Author

func (c *Context) Author() string

func (*Context) Branches

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

func (*Context) ChangedFiles

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

func (*Context) Comments

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

func (*Context) Commits

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

func (*Context) HasReviewers

func (c *Context) HasReviewers() (bool, error)

func (*Context) HeadSHA

func (c *Context) HeadSHA() string

func (*Context) IsCollaborator

func (c *Context) IsCollaborator(org, repo, user, desiredPerm string) (bool, error)

func (*Context) IsDraft

func (c *Context) IsDraft() 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) Number

func (c *Context) Number() int

func (*Context) OrganizationMembers

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

func (*Context) RepositoryCollaborators

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

func (*Context) RepositoryName

func (c *Context) RepositoryName() string

func (*Context) RepositoryOwner

func (c *Context) RepositoryOwner() string

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]string, error)

Jump to

Keyboard shortcuts

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