Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeFileOperation ¶
type ChangeFileOperation struct {
Operation string `json:"operation"` // create, update, upload, rename, delete
Path string `json:"path"`
Content string `json:"content"` // base64 encoded for create/update
SHA string `json:"sha,omitempty"` // required for update/delete
FromPath string `json:"from_path,omitempty"` // for rename
}
ChangeFileOperation represents a file operation in batch
type ChangeFilesOptions ¶
type ChangeFilesOptions struct {
Files []*ChangeFileOperation `json:"files"`
Message string `json:"message"`
Branch string `json:"branch,omitempty"`
NewBranch string `json:"new_branch,omitempty"`
ForcePush bool `json:"force_push,omitempty"`
Author Identity `json:"author"`
Committer Identity `json:"committer"`
Dates CommitDateOptions `json:"dates"`
Signoff bool `json:"signoff,omitempty"`
}
ChangeFilesOptions options for batch file operations
type IssueConfigValidation ¶
IssueConfigValidation represents the validation result for issue config
type ListRepoActivityFeedsOptions ¶
type ListRepoActivityFeedsOptions struct {
ListOptions
Date string `json:"date"` // the date of the activities to be found (format: YYYY-MM-DD)
}
ListRepoActivityFeedsOptions options for listing repository activity feeds
type MergeUpstreamRequest ¶
MergeUpstreamRequest options for merging upstream
type MergeUpstreamResponse ¶
type MergeUpstreamResponse struct {
MergeStyle string `json:"merge_type"`
}
MergeUpstreamResponse represents the response from merging upstream
type NewIssuePinsAllowed ¶
type NewIssuePinsAllowed struct {
Issues bool `json:"issues"`
PullRequests bool `json:"pull_requests"`
}
NewIssuePinsAllowed represents whether new issue/PR pins are allowed
type TopicResponse ¶
type TopicResponse struct {
ID int64 `json:"id"`
Name string `json:"topic_name"`
RepoCount int `json:"repo_count"`
Created time.Time `json:"created"`
Updated time.Time `json:"updated"`
}
TopicResponse represents a topic
type TopicSearchOptions ¶
type TopicSearchOptions struct {
ListOptions
Query string `json:"q"` // query string
}
TopicSearchOptions options for searching topics
type TopicSearchResult ¶
type TopicSearchResult struct {
Topics []*TopicResponse `json:"topics"`
}
TopicSearchResult represents a topic search result
Click to show internal directories.
Click to hide internal directories.