Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCloudClientWithOAuth ¶ added in v0.3.20
func NewCloudClientWithOAuth(address, clientID, clientSecret, tokenEndpoint string) *cloudModel.Client
NewCloudClientWithOAuth creates a new cloud client with OAuth.
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
type Spinwick ¶ added in v0.3.21
type Spinwick struct {
RepoName string `json:"repo_name"`
PRNumber int `json:"pr_number"`
RepeatableID string `json:"repeatable_id"`
UniqueID string `json:"unique_id"`
}
Spinwick is a struct that holds identifiable information about a Spinwick instance
func NewSpinwick ¶ added in v0.3.21
NewSpinwick creates a new Spinwick instance, automatically calling the repeatableID and uniqueID methods
Click to show internal directories.
Click to hide internal directories.