github

package
v1.1.1-0...-a687fc2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func (*App) AddToCommand

func (a *App) AddToCommand(cmd *cobra.Command)

AddToCommand adds the GitHub App flags to Cobra

func (*App) GetPullRequestInfo

func (a *App) GetPullRequestInfo(prNumber int) (PRInfo, error)

func (*App) Init

func (a *App) Init() error

type PRInfo

type PRInfo struct {
	ID         int
	Author     string
	Title      string
	CreatedAt  *time.Time
	Base       string
	BaseRef    string
	Head       string
	IsMerged   bool
	MergedTime *time.Time
}

Jump to

Keyboard shortcuts

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