Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchResponse ¶
type Commit ¶
type Commit struct { SHA *string `json:"sha,omitempty"` Author *CommitAuthor `json:"author,omitempty"` Committer *CommitAuthor `json:"committer,omitempty"` Message *string `json:"message,omitempty"` //Tree *Tree `json:"tree,omitempty"` Parents []Commit `json:"parents,omitempty"` Stats *CommitStats `json:"stats,omitempty"` HTMLURL *string `json:"html_url,omitempty"` URL *string `json:"url,omitempty"` //Verification *SignatureVerification `json:"verification,omitempty"` NodeID *string `json:"node_id,omitempty"` // CommentCount is the number of GitHub comments on the commit. This // is only populated for requests that fetch GitHub data like // Pulls.ListCommits, Repositories.ListCommits, etc. CommentCount *int `json:"comment_count,omitempty"` // SigningKey denotes a key to sign the commit with. If not nil this key will // be used to sign the commit. The private key must be present and already // decrypted. Ignored if Verification.Signature is defined. SigningKey *openpgp.Entity `json:"-"` }
type CommitAuthor ¶
type CommitStats ¶
type GithubRepository ¶
type GithubRepository interface { }
type ListOptions ¶
type Repo ¶
type Repo interface { ListTags(ctx context.Context, owner, repo string, opts *ListOptions) (res []*TagResponse, err error) ListBranch(ctx context.Context, owner, repo string, opts *ListOptions) (res []*BranchResponse, err error) GetFile(ctx context.Context, owner, repo, branch, fileName string) (string, error) }
type TagResponse ¶
Click to show internal directories.
Click to hide internal directories.