model

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PullRequest

type PullRequest struct {
	RepoOwner string
	RepoName  string
	FullName  string
	Number    int
	Username  string
	Ref       string
	Sha       string
	Labels    []string
	State     string
	URL       string
	CreatedAt time.Time
}

PullRequest defines a pr

func PullRequestFromJSON

func PullRequestFromJSON(data io.Reader) (*PullRequest, error)

PullRequestFromJSON convert from json to the struct

func (*PullRequest) ToJSON

func (o *PullRequest) ToJSON() (string, error)

ToJSON converts to json

Jump to

Keyboard shortcuts

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