github

package
v0.0.0-...-a8af605 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 7 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 GithubBranch

type GithubBranch struct {
	Name        string
	AuthorEmail string
}

func (GithubBranch) GetAuthor

func (branch GithubBranch) GetAuthor() string

func (GithubBranch) GetUrl

func (branch GithubBranch) GetUrl(config GithubConfig) string

type GithubClient

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

func NewGithubClient

func NewGithubClient(config GithubConfig) *GithubClient

func (GithubClient) CreateBranch

func (client GithubClient) CreateBranch(base string, name string) (*string, error)

func (GithubClient) CreateReview

func (client GithubClient) CreateReview(sourceBranch string, targetBranch string, title string, description string) (*GithubReview, error)

func (GithubClient) GetBranches

func (client GithubClient) GetBranches() ([]GithubBranch, error)

func (GithubClient) GetReviews

func (client GithubClient) GetReviews() ([]GithubReview, error)

type GithubConfig

type GithubConfig struct {
	Token      string `yaml:"token"`
	Owner      string `yaml:"owner"`
	Repository string `yaml:"repo"`
}

type GithubReview

type GithubReview struct {
	ID                 int
	Title              string
	Author             string
	RequestedReviewers []string
	CreatedAt          *time.Time
}

type IssueTimelineItem

type IssueTimelineItem struct {
	CreatedAt *string `json:"created_at"`
	Event     *string `json:"event"`
}

Jump to

Keyboard shortcuts

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