types

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ViewPr

type ViewPr struct {
	ReviewStatus             string
	Url                      string
	Title                    string
	Author                   string
	RepoName                 string
	RepoOwner                string
	RepoUrl                  string
	IsDraft                  bool
	LastUpdated              time.Time
	LastPrCommenter          string
	UnrespondedThreads       int
	Additions                int
	Deletions                int
	ReviewRequestedFromUsers []string
	Buried                   bool
}

ViewPr must contain everything needed to order/compare them against other PRs, since ViewPr is also what we store.

func (ViewPr) Id

func (pr ViewPr) Id() string

func (ViewPr) ToggleBuryUrl

func (pr ViewPr) ToggleBuryUrl() string

ToggleBuryUrl() introduces the concept of base64-encoded-PR-URL as an "ID", in the sense of a REST API's resource. This feels cleaner than having to escape things, or constructing an ID with a owner/repo/pr# or such. If we want to support something else than Github later, an URL is still a good ID.

Jump to

Keyboard shortcuts

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