pr

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdPR

func NewCmdPR() *cli.Command

NewCmdPR returns the parent pr command with its subcommands.

Types

type ActivityApproval

type ActivityApproval struct {
	Date string      `json:"date"`
	User models.User `json:"user"`
}

ActivityApproval represents an approval event in a PR activity feed.

type ActivityItem

type ActivityItem struct {
	Comment  *models.Comment   `json:"comment,omitempty"`
	Update   *ActivityUpdate   `json:"update,omitempty"`
	Approval *ActivityApproval `json:"approval,omitempty"`
}

ActivityItem represents a single activity entry which contains one of comment, update, or approval.

type ActivityUpdate

type ActivityUpdate struct {
	State  string      `json:"state"`
	Date   string      `json:"date"`
	Author models.User `json:"author"`
}

ActivityUpdate represents a state-change update in a PR activity feed.

Jump to

Keyboard shortcuts

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