repo

package
v0.0.0-...-dc77c34 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

Repo represents a GitHub repository.

func New

func New(cli github.Client, path string) *Repo

New creates a new Repo.

func (*Repo) AddAssignees

func (r *Repo) AddAssignees(issueNumber int, assignees []string) error

AddAssignees assigns users to the issue.

func (*Repo) CreateHook

func (r *Repo) CreateHook(params *github.CreateHookParams) (*github.Hook, error)

CreateHook creates a hook.

func (*Repo) CreateLabel

func (r *Repo) CreateLabel(params *github.CreateLabelParams) (*github.Label, error)

CreateLabel creates a new label.

func (*Repo) CreateMilestone

func (r *Repo) CreateMilestone(params *github.CreateMilestoneParams) (*github.Milestone, error)

CreateMilestone creates a milestone.

func (*Repo) CreateProject

func (r *Repo) CreateProject(params *github.CreateProjectParams) (*github.Project, error)

CreateProject creates a project.

func (*Repo) CreateProjectCard

func (r *Repo) CreateProjectCard(columnID int, params *github.CreateProjectCardParams) (*github.ProjectCard, error)

CreateProjectCard creates a project card.

func (*Repo) CreateProjectColumn

func (r *Repo) CreateProjectColumn(projectID int, name string) (*github.ProjectColumn, error)

CreateProjectColumn creates a project column.

func (*Repo) DeleteMilestone

func (r *Repo) DeleteMilestone(milestoneNumber int) error

DeleteMilestone deletes the milestone.

func (*Repo) DeleteProject

func (r *Repo) DeleteProject(projectID int) error

DeleteProject deletes the project.

func (*Repo) Get

func (r *Repo) Get() (*github.Repo, error)

Get the repository.

func (*Repo) GetCompare

func (r *Repo) GetCompare(base, head string) (string, error)

GetCompare gets the compare.

func (*Repo) GetDiff

func (r *Repo) GetDiff(sha string) (string, error)

GetDiff gets the diff.

func (*Repo) GetHook

func (r *Repo) GetHook(hookID int) (*github.Hook, error)

GetHook gets the hook.

func (*Repo) GetImport

func (r *Repo) GetImport(id int) (*github.ImportResult, error)

GetImport gets the importing status.

func (*Repo) GetIssue

func (r *Repo) GetIssue(issueNumber int) (*github.Issue, error)

GetIssue gets the issue.

func (*Repo) GetMilestone

func (r *Repo) GetMilestone(milestoneNumber int) (*github.Milestone, error)

GetMilestone gets the milestone.

func (*Repo) GetProject

func (r *Repo) GetProject(projectID int) (*github.Project, error)

GetProject gets the project.

func (*Repo) GetProjectCard

func (r *Repo) GetProjectCard(projectCardID int) (*github.ProjectCard, error)

GetProjectCard gets the project card.

func (*Repo) GetProjectColumn

func (r *Repo) GetProjectColumn(projectColumnID int) (*github.ProjectColumn, error)

GetProjectColumn gets the project column.

func (*Repo) GetPullReq

func (r *Repo) GetPullReq(pullNumber int) (*github.PullReq, error)

GetPullReq gets the pull request.

func (*Repo) GetReview

func (r *Repo) GetReview(pullNumber, reviewID int) (*github.Review, error)

GetReview lists the reviews.

func (*Repo) GetUser

func (r *Repo) GetUser(name string) (*github.User, error)

GetUser gets a user.

func (*Repo) Import

func (r *Repo) Import(x *github.Import) (*github.ImportResult, error)

Import an object.

func (*Repo) ListComments

func (r *Repo) ListComments(issueNumber int) github.Comments

ListComments lists the comments.

func (*Repo) ListEvents

func (r *Repo) ListEvents(issueNumber int) github.Events

ListEvents lists the events.

func (*Repo) ListHooks

func (r *Repo) ListHooks() github.Hooks

ListHooks lists the hooks.

func (*Repo) ListIssues

func (r *Repo) ListIssues() github.Issues

ListIssues lists the issues.

func (*Repo) ListLabels

func (r *Repo) ListLabels() github.Labels

ListLabels lists the labels.

func (*Repo) ListMembers

func (r *Repo) ListMembers() github.Members

ListMembers lists the members.

func (*Repo) ListMilestones

func (r *Repo) ListMilestones(params *github.ListMilestonesParams) github.Milestones

ListMilestones lists the milestones.

func (*Repo) ListProjectCards

func (r *Repo) ListProjectCards(columnID int) github.ProjectCards

ListProjectCards lists the project cards.

func (*Repo) ListProjectColumns

func (r *Repo) ListProjectColumns(projectID int) github.ProjectColumns

ListProjectColumns lists the project columns.

func (*Repo) ListProjects

func (r *Repo) ListProjects() github.Projects

ListProjects lists the projects.

func (*Repo) ListPullReqCommits

func (r *Repo) ListPullReqCommits(pullNumber int) github.Commits

ListPullReqCommits lists the commits of a pull request.

func (*Repo) ListPullReqs

func (r *Repo) ListPullReqs() github.PullReqs

ListPullReqs lists the pull requests.

func (*Repo) ListReviewComments

func (r *Repo) ListReviewComments(pullNumber int) github.ReviewComments

ListReviewComments lists the review comments.

func (*Repo) ListReviews

func (r *Repo) ListReviews(pullNumber int) github.Reviews

ListReviews lists the reviews.

func (*Repo) MoveProjectCard

func (r *Repo) MoveProjectCard(projectCardID int, params *github.MoveProjectCardParams) (*github.ProjectCard, error)

MoveProjectCard moves the project card..

func (*Repo) NewPath

func (r *Repo) NewPath(path string) *Repo

NewPath creates a new Repo with the same client.

func (*Repo) Update

func (r *Repo) Update(params *github.UpdateRepoParams) (*github.Repo, error)

Update the repository.

func (*Repo) UpdateHook

func (r *Repo) UpdateHook(hookID int, params *github.UpdateHookParams) (*github.Hook, error)

UpdateHook updates the hook.

func (*Repo) UpdateLabel

func (r *Repo) UpdateLabel(name string, params *github.UpdateLabelParams) (*github.Label, error)

UpdateLabel creates a new label.

func (*Repo) UpdateMilestone

func (r *Repo) UpdateMilestone(milestoneNumber int, params *github.UpdateMilestoneParams) (*github.Milestone, error)

UpdateMilestone updates the milestone.

func (*Repo) UpdateProject

func (r *Repo) UpdateProject(projectID int, params *github.UpdateProjectParams) (*github.Project, error)

UpdateProject updates the project.

func (*Repo) UpdateProjectCard

func (r *Repo) UpdateProjectCard(projectCardID int, params *github.UpdateProjectCardParams) (*github.ProjectCard, error)

UpdateProjectCard updates the project card..

func (*Repo) UpdateProjectColumn

func (r *Repo) UpdateProjectColumn(projectColumnID int, name string) (*github.ProjectColumn, error)

UpdateProjectColumn updates the project column..

Jump to

Keyboard shortcuts

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