pr

package
v0.0.0-...-a430e6a Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Ref string `json:"ref"`
}

Base struct handles the base branch which user wants to merge the changes.

type Branch

type Branch struct {
	Name string `json:"name"`
}

Branch struct handles git branch.

type Commit

type Commit struct {
	Info Info `json:"commit"`
}

Commit struct handles the commits of the head branch.

func (*Commit) PrintCommit

func (cm *Commit) PrintCommit(w io.Writer)

PrintCommit function for showing Commit log.

type Committer

type Committer struct {
	Name string `json:"name"`
	Date string `json:"date"`
}

Committer struct handles the information of committer.

type Head struct {
	Ref string `json:"ref"`
}

Head struct handles the branch which user changed the content.

type Info

type Info struct {
	Message   string    `json:"message"`
	Committer Committer `json:"committer"`
}

Info struct handles concrete information of the commit.

type NewPr

type NewPr struct {
	Title string `json:"title"`
	Body  string `json:"body"`
	Head  string `json:"head"`
	Base  string `json:"base"`
}

NewPr struct is for creating new pull request.

type NewPrRes

type NewPrRes struct {
	URL string `json:"html_url"`
}

NewPrRes struct is for managing the response after creating new pull request.

type Pr

type Pr struct {
	URL       string `json:"html_url"`
	Title     string `json:"title"`
	Number    int    `json:"number"`
	Body      string `json:"body"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
	User      User   `json:"user"`
	Head      Head   `json:"head"`
	Base      Base   `json:"base"`
}

Pr struct handles abstract of PR.

func (*Pr) PrintDetail

func (pr *Pr) PrintDetail(w io.Writer)

PrintDetail function for showing Pull Request's body.

func (*Pr) PrintSummary

func (pr *Pr) PrintSummary(w io.Writer)

PrintSummary function for showing each Pull Request abstract.

type User

type User struct {
	Login string `json:"login"`
}

User struct handles login user which means who created this PR.

Jump to

Keyboard shortcuts

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