Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckRequest ¶
CheckRequest ...
type CheckResponse ¶
type CheckResponse []Version
CheckResponse ...
func (CheckResponse) Len ¶
func (p CheckResponse) Len() int
func (CheckResponse) Less ¶
func (p CheckResponse) Less(i, j int) bool
func (CheckResponse) Swap ¶
func (p CheckResponse) Swap(i, j int)
type Commit ¶
type Commit struct {
ID string
OID string
PushedDate githubv4.DateTime
Message string
Author struct {
User struct {
Login string
}
}
}
Commit represents the GraphQL commit node. https://developer.github.com/v4/object/commit/
type GetParameters ¶
type GetParameters struct{}
GetParameters for the resource.
func (*GetParameters) Validate ¶
func (p *GetParameters) Validate() error
Validate the get parameters.
type GetRequest ¶
type GetRequest struct {
Source Source `json:"source"`
Version Version `json:"version"`
Params GetParameters `json:"params"`
}
GetRequest ...
type GetResponse ¶
type GetResponse struct {
Version Version `json:"version"`
Metadata []Metadata `json:"metadata,omitempty"`
}
GetResponse ...
type PullRequest ¶
type PullRequest struct {
ID string
Number int
Title string
URL string
BaseRefName string
HeadRefName string
}
PullRequest represents the GraphQL commit node. https://developer.github.com/v4/object/commit/
type PullRequestCommits ¶
type PullRequestCommits struct {
PullRequest
Commits struct {
Edges []struct {
Node struct {
Commit Commit
}
}
} `graphql:"commits(last:$commitsLast)"`
}
PullRequestCommits represents the GraphQL node with PR/Commit. https://developer.github.com/v4/object/pullrequest/
func (*PullRequestCommits) GetLastCommit ¶
func (p *PullRequestCommits) GetLastCommit() (Commit, bool)
GetLastCommit returns the last commit in a PullRequestAndCommits
type PutParameters ¶
type PutParameters struct {
Path string `json:"path"`
Context string `json:"context"`
Status string `json:"status"`
CommentFile string `json:"comment_file"`
Comment string `json:"comment"`
}
PutParameters for the resource.
func (*PutParameters) Validate ¶
func (p *PutParameters) Validate() error
Validate the put parameters.
type PutRequest ¶
type PutRequest struct {
Source Source `json:"source"`
Params PutParameters `json:"params"`
}
PutRequest ...
type PutResponse ¶
type PutResponse struct {
Version Version `json:"version"`
Metadata []Metadata `json:"metadata,omitempty"`
}
PutResponse ...
Click to show internal directories.
Click to hide internal directories.