gitee

package
v0.0.0-...-3af895b Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MulanPSL-2.0 Imports: 21 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKey takes an APIKey as authentication for the request
	ContextAPIKey = contextKey("apikey")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func ParseWebHook

func ParseWebHook(messageType string, payload []byte) (interface{}, error)

ParseWebHook parses the event payload.

func ValidatePayload

func ValidatePayload(r *http.Request, secretKey []byte) (payload []byte, err error)

ValidatePayload validates an incoming Gitee Webhook event request

func WebHookType

func WebHookType(r *http.Request) string

WebHookType returns the event type of webhook request r.

Types

type APIClient

type APIClient struct {
	ActivityApi *ActivityApiService

	EmailsApi *EmailsApiService

	EnterprisesApi *EnterprisesApiService

	GistsApi *GistsApiService

	GitDataApi *GitDataApiService

	IssuesApi *IssuesApiService

	LabelsApi *LabelsApiService

	MilestonesApi *MilestonesApiService

	MiscellaneousApi *MiscellaneousApiService

	OrganizationsApi *OrganizationsApiService

	PullRequestsApi *PullRequestsApiService

	RepositoriesApi *RepositoriesApiService

	SearchApi *SearchApiService

	UsersApi *UsersApiService

	WebhooksApi *WebhooksApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the 码云 Open API API v5.3.2 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) ChangeBasePath

func (c *APIClient) ChangeBasePath(path string)

Change base path to allow switching to mocks

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the swagger operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

type ActivityApiService

type ActivityApiService service

func (*ActivityApiService) DeleteV5UserStarredOwnerRepo

func (a *ActivityApiService) DeleteV5UserStarredOwnerRepo(ctx context.Context, owner string, repo string, localVarOptionals *DeleteV5UserStarredOwnerRepoOpts) (*http.Response, error)

func (*ActivityApiService) DeleteV5UserSubscriptionsOwnerRepo

func (a *ActivityApiService) DeleteV5UserSubscriptionsOwnerRepo(ctx context.Context, owner string, repo string, localVarOptionals *DeleteV5UserSubscriptionsOwnerRepoOpts) (*http.Response, error)

func (*ActivityApiService) GetV5Events

func (a *ActivityApiService) GetV5Events(ctx context.Context, localVarOptionals *GetV5EventsOpts) ([]Event, *http.Response, error)

func (*ActivityApiService) GetV5NetworksOwnerRepoEvents

func (a *ActivityApiService) GetV5NetworksOwnerRepoEvents(ctx context.Context, owner string, repo string, localVarOptionals *GetV5NetworksOwnerRepoEventsOpts) ([]Event, *http.Response, error)

func (*ActivityApiService) GetV5NotificationsCount

func (a *ActivityApiService) GetV5NotificationsCount(ctx context.Context, localVarOptionals *GetV5NotificationsCountOpts) (UserNotificationCount, *http.Response, error)

func (*ActivityApiService) GetV5NotificationsMessages

func (a *ActivityApiService) GetV5NotificationsMessages(ctx context.Context, localVarOptionals *GetV5NotificationsMessagesOpts) ([]UserMessageList, *http.Response, error)

func (*ActivityApiService) GetV5NotificationsMessagesId

func (a *ActivityApiService) GetV5NotificationsMessagesId(ctx context.Context, id string, localVarOptionals *GetV5NotificationsMessagesIdOpts) (UserMessage, *http.Response, error)

func (*ActivityApiService) GetV5NotificationsThreads

func (a *ActivityApiService) GetV5NotificationsThreads(ctx context.Context, localVarOptionals *GetV5NotificationsThreadsOpts) ([]UserNotificationList, *http.Response, error)

func (*ActivityApiService) GetV5NotificationsThreadsId

func (a *ActivityApiService) GetV5NotificationsThreadsId(ctx context.Context, id string, localVarOptionals *GetV5NotificationsThreadsIdOpts) (UserNotification, *http.Response, error)

func (*ActivityApiService) GetV5OrgsOrgEvents

func (a *ActivityApiService) GetV5OrgsOrgEvents(ctx context.Context, org string, localVarOptionals *GetV5OrgsOrgEventsOpts) ([]Event, *http.Response, error)

func (*ActivityApiService) GetV5ReposOwnerRepoEvents

func (a *ActivityApiService) GetV5ReposOwnerRepoEvents(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoEventsOpts) ([]Event, *http.Response, error)

func (*ActivityApiService) GetV5ReposOwnerRepoNotifications

func (a *ActivityApiService) GetV5ReposOwnerRepoNotifications(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoNotificationsOpts) ([]UserNotificationList, *http.Response, error)

func (*ActivityApiService) GetV5ReposOwnerRepoStargazers

func (a *ActivityApiService) GetV5ReposOwnerRepoStargazers(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoStargazersOpts) ([]UserBasic, *http.Response, error)

func (*ActivityApiService) GetV5ReposOwnerRepoSubscribers

func (a *ActivityApiService) GetV5ReposOwnerRepoSubscribers(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoSubscribersOpts) ([]UserBasic, *http.Response, error)

func (*ActivityApiService) GetV5UserStarred

func (a *ActivityApiService) GetV5UserStarred(ctx context.Context, localVarOptionals *GetV5UserStarredOpts) ([]Project, *http.Response, error)

func (*ActivityApiService) GetV5UserStarredOwnerRepo

func (a *ActivityApiService) GetV5UserStarredOwnerRepo(ctx context.Context, owner string, repo string, localVarOptionals *GetV5UserStarredOwnerRepoOpts) (*http.Response, error)

func (*ActivityApiService) GetV5UserSubscriptions

func (a *ActivityApiService) GetV5UserSubscriptions(ctx context.Context, localVarOptionals *GetV5UserSubscriptionsOpts) ([]Project, *http.Response, error)

func (*ActivityApiService) GetV5UserSubscriptionsOwnerRepo

func (a *ActivityApiService) GetV5UserSubscriptionsOwnerRepo(ctx context.Context, owner string, repo string, localVarOptionals *GetV5UserSubscriptionsOwnerRepoOpts) (*http.Response, error)

func (*ActivityApiService) GetV5UsersUsernameEvents

func (a *ActivityApiService) GetV5UsersUsernameEvents(ctx context.Context, username string, localVarOptionals *GetV5UsersUsernameEventsOpts) ([]Event, *http.Response, error)

func (*ActivityApiService) GetV5UsersUsernameEventsOrgsOrg

func (a *ActivityApiService) GetV5UsersUsernameEventsOrgsOrg(ctx context.Context, username string, org string, localVarOptionals *GetV5UsersUsernameEventsOrgsOrgOpts) ([]Event, *http.Response, error)

func (*ActivityApiService) GetV5UsersUsernameEventsPublic

func (a *ActivityApiService) GetV5UsersUsernameEventsPublic(ctx context.Context, username string, localVarOptionals *GetV5UsersUsernameEventsPublicOpts) ([]Event, *http.Response, error)

func (*ActivityApiService) GetV5UsersUsernameReceivedEvents

func (a *ActivityApiService) GetV5UsersUsernameReceivedEvents(ctx context.Context, username string, localVarOptionals *GetV5UsersUsernameReceivedEventsOpts) ([]Event, *http.Response, error)

func (*ActivityApiService) GetV5UsersUsernameReceivedEventsPublic

func (a *ActivityApiService) GetV5UsersUsernameReceivedEventsPublic(ctx context.Context, username string, localVarOptionals *GetV5UsersUsernameReceivedEventsPublicOpts) ([]Event, *http.Response, error)

func (*ActivityApiService) GetV5UsersUsernameStarred

func (a *ActivityApiService) GetV5UsersUsernameStarred(ctx context.Context, username string, localVarOptionals *GetV5UsersUsernameStarredOpts) ([]Project, *http.Response, error)

func (*ActivityApiService) GetV5UsersUsernameSubscriptions

func (a *ActivityApiService) GetV5UsersUsernameSubscriptions(ctx context.Context, username string, localVarOptionals *GetV5UsersUsernameSubscriptionsOpts) ([]Project, *http.Response, error)

func (*ActivityApiService) PatchV5NotificationsMessagesId

func (a *ActivityApiService) PatchV5NotificationsMessagesId(ctx context.Context, id string, localVarOptionals *PatchV5NotificationsMessagesIdOpts) (*http.Response, error)

func (*ActivityApiService) PatchV5NotificationsThreadsId

func (a *ActivityApiService) PatchV5NotificationsThreadsId(ctx context.Context, id string, localVarOptionals *PatchV5NotificationsThreadsIdOpts) (*http.Response, error)

func (*ActivityApiService) PostV5NotificationsMessages

func (a *ActivityApiService) PostV5NotificationsMessages(ctx context.Context, username string, content string, localVarOptionals *PostV5NotificationsMessagesOpts) (UserMessage, *http.Response, error)

func (*ActivityApiService) PutV5NotificationsMessages

func (a *ActivityApiService) PutV5NotificationsMessages(ctx context.Context, localVarOptionals *PutV5NotificationsMessagesOpts) (*http.Response, error)

func (*ActivityApiService) PutV5NotificationsThreads

func (a *ActivityApiService) PutV5NotificationsThreads(ctx context.Context, localVarOptionals *PutV5NotificationsThreadsOpts) (*http.Response, error)

func (*ActivityApiService) PutV5ReposOwnerRepoNotifications

func (a *ActivityApiService) PutV5ReposOwnerRepoNotifications(ctx context.Context, owner string, repo string, localVarOptionals *PutV5ReposOwnerRepoNotificationsOpts) (*http.Response, error)

func (*ActivityApiService) PutV5UserStarredOwnerRepo

func (a *ActivityApiService) PutV5UserStarredOwnerRepo(ctx context.Context, owner string, repo string, localVarOptionals *PutV5UserStarredOwnerRepoOpts) (*http.Response, error)

func (*ActivityApiService) PutV5UserSubscriptionsOwnerRepo

func (a *ActivityApiService) PutV5UserSubscriptionsOwnerRepo(ctx context.Context, owner string, repo string, watchType string, localVarOptionals *PutV5UserSubscriptionsOwnerRepoOpts) (*http.Response, error)

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type BasicInfo

type BasicInfo struct {
	Label string     `json:"label,omitempty"`
	Ref   string     `json:"ref,omitempty"`
	Sha   string     `json:"sha,omitempty"`
	User  *UserBasic `json:"user,omitempty"`
	Repo  *Project   `json:"repo,omitempty"`
}

basic information

type Blob

type Blob struct {
	Sha      string `json:"sha,omitempty"`
	Size     string `json:"size,omitempty"`
	Url      string `json:"url,omitempty"`
	Content  string `json:"content,omitempty"`
	Encoding string `json:"encoding,omitempty"`
}

获取文件Blob

type Branch

type Branch struct {
	Name          string        `json:"name,omitempty"`
	Commit        *BranchCommit `json:"commit,omitempty"`
	Protected     bool          `json:"protected,omitempty"`
	ProtectionUrl string        `json:"protection_url,omitempty"`
}

获取所有分支

type BranchCommit

type BranchCommit struct {
	Url string `json:"url,omitempty"`
	Sha string `json:"sha,omitempty"`
}

分支commit info

type BranchHook

type BranchHook struct {
	Label string       `json:"label,omitempty"`
	Ref   string       `json:"ref,omitempty"`
	Sha   string       `json:"sha,omitempty"`
	User  *UserHook    `json:"user,omitempty"`
	Repo  *ProjectHook `json:"repo,omitempty"`
}

BranchHook : 分支信息

func (*BranchHook) GetLabel

func (b *BranchHook) GetLabel() string

func (*BranchHook) GetRef

func (b *BranchHook) GetRef() string

func (*BranchHook) GetRepo

func (b *BranchHook) GetRepo() *ProjectHook

func (*BranchHook) GetSha

func (b *BranchHook) GetSha() string

func (*BranchHook) GetUser

func (b *BranchHook) GetUser() *UserHook

type BranchProtectionPutParam

type BranchProtectionPutParam struct {
	// 用户授权码
	AccessToken string `json:"access_token,omitempty"`
}

branch protection parameter

type Code

type Code struct {
	Url         string `json:"url,omitempty"`
	ForksUrl    string `json:"forks_url,omitempty"`
	CommitsUrl  string `json:"commits_url,omitempty"`
	Id          string `json:"id,omitempty"`
	Description string `json:"description,omitempty"`
	Public      string `json:"public,omitempty"`
	Owner       string `json:"owner,omitempty"`
	User        string `json:"user,omitempty"`
	Files       string `json:"files,omitempty"`
	Truncated   string `json:"truncated,omitempty"`
	HtmlUrl     string `json:"html_url,omitempty"`
	Comments    string `json:"comments,omitempty"`
	CommentsUrl string `json:"comments_url,omitempty"`
	GitPullUrl  string `json:"git_pull_url,omitempty"`
	GitPushUrl  string `json:"git_push_url,omitempty"`
	CreatedAt   string `json:"created_at,omitempty"`
	UpdatedAt   string `json:"updated_at,omitempty"`
}

搜索代码片段

type CodeComment

type CodeComment struct {
	Id        string `json:"id,omitempty"`
	Body      string `json:"body,omitempty"`
	CreatedAt string `json:"created_at,omitempty"`
	UpdatedAt string `json:"updated_at,omitempty"`
}

修改代码片段的评论

type CodeForks

type CodeForks struct {
	User      string `json:"user,omitempty"`
	Url       string `json:"url,omitempty"`
	Id        string `json:"id,omitempty"`
	CreatedAt string `json:"created_at,omitempty"`
	UpdatedAt string `json:"updated_at,omitempty"`
}

获取 Fork 了指定代码片段的列表

type CodeForksHistory

type CodeForksHistory struct {
	Url         string `json:"url,omitempty"`
	ForksUrl    string `json:"forks_url,omitempty"`
	CommitsUrl  string `json:"commits_url,omitempty"`
	Id          string `json:"id,omitempty"`
	Description string `json:"description,omitempty"`
	Public      string `json:"public,omitempty"`
	Owner       string `json:"owner,omitempty"`
	User        string `json:"user,omitempty"`
	Files       string `json:"files,omitempty"`
	Truncated   string `json:"truncated,omitempty"`
	HtmlUrl     string `json:"html_url,omitempty"`
	Comments    string `json:"comments,omitempty"`
	CommentsUrl string `json:"comments_url,omitempty"`
	GitPullUrl  string `json:"git_pull_url,omitempty"`
	GitPushUrl  string `json:"git_push_url,omitempty"`
	CreatedAt   string `json:"created_at,omitempty"`
	UpdatedAt   string `json:"updated_at,omitempty"`
	Forks       string `json:"forks,omitempty"`
	History     string `json:"history,omitempty"`
}

获取代码片段的commit

type Commit

type Commit struct {
	Id        string     `json:"id,omitempty"`
	TreeId    string     `json:"tree_id,omitempty"`
	ParentIds []string   `json:"parent_ids,omitempty"`
	Message   string     `json:"message,omitempty"`
	Timestamp time.Time  `json:"timestamp,omitempty"`
	Url       string     `json:"url,omitempty"`
	Author    *UserBasic `json:"author,omitempty"`
	Committer *UserBasic `json:"committer,omitempty"`
	Distinct  bool       `json:"distinct,omitempty"`
	Added     []string   `json:"added,omitempty"`
	Removed   []string   `json:"removed,omitempty"`
	Modified  []string   `json:"modified,omitempty"`
}

type CommitContent

type CommitContent struct {
	Content *ContentBasic `json:"content,omitempty"`
	Commit  *Commit       `json:"commit,omitempty"`
}

删除文件

type CommitHook

type CommitHook struct {
	Id        string    `json:"id,omitempty"`
	TreeId    string    `json:"tree_id,omitempty"`
	ParentIds []string  `json:"parent_ids,omitempty"`
	Message   string    `json:"message,omitempty"`
	Timestamp time.Time `json:"timestamp,omitempty"`
	Url       string    `json:"url,omitempty"`
	Author    *UserHook `json:"author,omitempty"`
	Committer *UserHook `json:"committer,omitempty"`
	Distinct  bool      `json:"distinct,omitempty"`
	Added     []string  `json:"added,omitempty"`
	Removed   []string  `json:"removed,omitempty"`
	Modified  []string  `json:"modified,omitempty"`
}

CommitHook : git commit 中的信息

func (*CommitHook) GetAuthor

func (c *CommitHook) GetAuthor() *UserHook

func (*CommitHook) GetCommitter

func (c *CommitHook) GetCommitter() *UserHook

type CommitTree

type CommitTree struct {
	Sha string `json:"sha,omitempty"`
	Url string `json:"url,omitempty"`
}

type Compare

type Compare struct {
	BaseCommit      string `json:"base_commit,omitempty"`
	MergeBaseCommit string `json:"merge_base_commit,omitempty"`
	Commits         string `json:"commits,omitempty"`
	Files           string `json:"files,omitempty"`
}

两个Commits之间对比的版本差异

type CompleteBranch

type CompleteBranch struct {
	Name          string        `json:"name,omitempty"`
	Commit        *BranchCommit `json:"commit,omitempty"`
	Links         string        `json:"_links,omitempty"`
	Protected     string        `json:"protected,omitempty"`
	ProtectionUrl string        `json:"protection_url,omitempty"`
}

创建分支

type Configuration

type Configuration struct {
	BasePath      string            `json:"basePath,omitempty"`
	Host          string            `json:"host,omitempty"`
	Scheme        string            `json:"scheme,omitempty"`
	DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
	UserAgent     string            `json:"userAgent,omitempty"`
	HTTPClient    *http.Client
}

func NewConfiguration

func NewConfiguration() *Configuration

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

type Content

type Content struct {
	Type_       string `json:"type,omitempty"`
	Encoding    string `json:"encoding,omitempty"`
	Size        string `json:"size,omitempty"`
	Name        string `json:"name,omitempty"`
	Path        string `json:"path,omitempty"`
	Content     string `json:"content,omitempty"`
	Sha         string `json:"sha,omitempty"`
	Url         string `json:"url,omitempty"`
	HtmlUrl     string `json:"html_url,omitempty"`
	DownloadUrl string `json:"download_url,omitempty"`
	Links       string `json:"_links,omitempty"`
}

获取仓库具体路径下的内容

type ContentBasic

type ContentBasic struct {
	Name        string `json:"name,omitempty"`
	Path        string `json:"path,omitempty"`
	Size        string `json:"size,omitempty"`
	Sha         string `json:"sha,omitempty"`
	Type_       string `json:"type,omitempty"`
	Url         string `json:"url,omitempty"`
	HtmlUrl     string `json:"html_url,omitempty"`
	DownloadUrl string `json:"download_url,omitempty"`
	Links       string `json:"_links,omitempty"`
}

type Contributor

type Contributor struct {
	Email         string `json:"email,omitempty"`
	Name          string `json:"name,omitempty"`
	Contributions string `json:"contributions,omitempty"`
}

获取仓库贡献者

type CreateBranchParam

type CreateBranchParam struct {
	// 用户授权码
	AccessToken string `json:"access_token,omitempty"`
	// 分支起点名称,默认master
	Refs string `json:"refs,omitempty"`
	// 新创建的分支名称
	BranchName string `json:"branch_name,omitempty"`
}

type CreatePullRequestParam

type CreatePullRequestParam struct {
	// 用户授权码
	AccessToken string `json:"access_token,omitempty"`
	// 必填。Pull Request 标题
	Title string `json:"title,omitempty"`
	// 必填。Pull Request 提交的源分支。格式:branch 或者:username:branch
	Head string `json:"head,omitempty"`
	// 必填。Pull Request 提交目标分支的名称
	Base string `json:"base,omitempty"`
	// 可选。Pull Request 内容
	Body string `json:"body,omitempty"`
	// 可选。里程碑序号(id)
	MilestoneNumber int32 `json:"milestone_number,omitempty"`
	// 用逗号分开的标签,名称要求长度在 2-20 之间且非特殊字符。如: bug,performance
	Labels string `json:"labels,omitempty"`
	// 可选。Pull Request的标题和内容可以根据指定的Issue Id自动填充
	Issue string `json:"issue,omitempty"`
	// 可选。审查人员username,可多个,半角逗号分隔,如:(username1,username2)
	Assignees string `json:"assignees,omitempty"`
	// 可选。测试人员username,可多个,半角逗号分隔,如:(username1,username2)
	Testers string `json:"testers,omitempty"`
	// 可选。合并PR后是否删除源分支,默认false(不删除)
	PruneSourceBranch bool `json:"prune_source_branch,omitempty"`
}

type DeleteV5EnterprisesEnterpriseMembersUsernameOpts

type DeleteV5EnterprisesEnterpriseMembersUsernameOpts struct {
	AccessToken optional.String
}

type DeleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsIdOpts

type DeleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsIdOpts struct {
	AccessToken optional.String
}

type DeleteV5GistsGistIdCommentsIdOpts

type DeleteV5GistsGistIdCommentsIdOpts struct {
	AccessToken optional.String
}

type DeleteV5GistsIdOpts

type DeleteV5GistsIdOpts struct {
	AccessToken optional.String
}

type DeleteV5GistsIdStarOpts

type DeleteV5GistsIdStarOpts struct {
	AccessToken optional.String
}

type DeleteV5OrgsOrgMembershipsUsernameOpts

type DeleteV5OrgsOrgMembershipsUsernameOpts struct {
	AccessToken optional.String
}

type DeleteV5ReposOwnerRepoBranchesBranchProtectionOpts

type DeleteV5ReposOwnerRepoBranchesBranchProtectionOpts struct {
	AccessToken optional.String
}

type DeleteV5ReposOwnerRepoCollaboratorsUsernameOpts

type DeleteV5ReposOwnerRepoCollaboratorsUsernameOpts struct {
	AccessToken optional.String
}

type DeleteV5ReposOwnerRepoCommentsIdOpts

type DeleteV5ReposOwnerRepoCommentsIdOpts struct {
	AccessToken optional.String
}

type DeleteV5ReposOwnerRepoContentsPathOpts

type DeleteV5ReposOwnerRepoContentsPathOpts struct {
	AccessToken    optional.String
	Branch         optional.String
	CommitterName  optional.String
	CommitterEmail optional.String
	AuthorName     optional.String
	AuthorEmail    optional.String
}

type DeleteV5ReposOwnerRepoHooksIdOpts

type DeleteV5ReposOwnerRepoHooksIdOpts struct {
	AccessToken optional.String
}

type DeleteV5ReposOwnerRepoIssuesCommentsIdOpts

type DeleteV5ReposOwnerRepoIssuesCommentsIdOpts struct {
	AccessToken optional.String
}

type DeleteV5ReposOwnerRepoIssuesNumberLabelsNameOpts

type DeleteV5ReposOwnerRepoIssuesNumberLabelsNameOpts struct {
	AccessToken optional.String
}

type DeleteV5ReposOwnerRepoIssuesNumberLabelsOpts

type DeleteV5ReposOwnerRepoIssuesNumberLabelsOpts struct {
	AccessToken optional.String
}

type DeleteV5ReposOwnerRepoKeysEnableIdOpts

type DeleteV5ReposOwnerRepoKeysEnableIdOpts struct {
	AccessToken optional.String
}

type DeleteV5ReposOwnerRepoKeysIdOpts

type DeleteV5ReposOwnerRepoKeysIdOpts struct {
	AccessToken optional.String
}

type DeleteV5ReposOwnerRepoLabelsNameOpts

type DeleteV5ReposOwnerRepoLabelsNameOpts struct {
	AccessToken optional.String
}

type DeleteV5ReposOwnerRepoMilestonesNumberOpts

type DeleteV5ReposOwnerRepoMilestonesNumberOpts struct {
	AccessToken optional.String
}

type DeleteV5ReposOwnerRepoOpts

type DeleteV5ReposOwnerRepoOpts struct {
	AccessToken optional.String
}

type DeleteV5ReposOwnerRepoPullsCommentsIdOpts

type DeleteV5ReposOwnerRepoPullsCommentsIdOpts struct {
	AccessToken optional.String
}

type DeleteV5ReposOwnerRepoPullsLabelOpts

type DeleteV5ReposOwnerRepoPullsLabelOpts struct {
	AccessToken optional.String
}

type DeleteV5ReposOwnerRepoPullsNumberAssigneesOpts

type DeleteV5ReposOwnerRepoPullsNumberAssigneesOpts struct {
	AccessToken optional.String
}

type DeleteV5ReposOwnerRepoPullsNumberTestersOpts

type DeleteV5ReposOwnerRepoPullsNumberTestersOpts struct {
	AccessToken optional.String
}

type DeleteV5ReposOwnerRepoReleasesIdOpts

type DeleteV5ReposOwnerRepoReleasesIdOpts struct {
	AccessToken optional.String
}

type DeleteV5UserFollowingUsernameOpts

type DeleteV5UserFollowingUsernameOpts struct {
	AccessToken optional.String
}

type DeleteV5UserKeysIdOpts

type DeleteV5UserKeysIdOpts struct {
	AccessToken optional.String
}

type DeleteV5UserMembershipsOrgsOrgOpts

type DeleteV5UserMembershipsOrgsOrgOpts struct {
	AccessToken optional.String
}

type DeleteV5UserStarredOwnerRepoOpts

type DeleteV5UserStarredOwnerRepoOpts struct {
	AccessToken optional.String
}

type DeleteV5UserSubscriptionsOwnerRepoOpts

type DeleteV5UserSubscriptionsOwnerRepoOpts struct {
	AccessToken optional.String
}

type Email

type Email struct {
	Email string   `json:"email,omitempty"`
	State string   `json:"state,omitempty"`
	Scope []string `json:"scope,omitempty"`
}

获取授权用户的邮件地址

type EmailsApiService

type EmailsApiService service

func (*EmailsApiService) GetV5Emails

func (a *EmailsApiService) GetV5Emails(ctx context.Context, localVarOptionals *GetV5EmailsOpts) ([]Email, *http.Response, error)

type EnterpriseBasic

type EnterpriseBasic struct {
	Id        int32  `json:"id,omitempty"`
	Path      string `json:"path,omitempty"`
	Name      string `json:"name,omitempty"`
	Url       string `json:"url,omitempty"`
	AvatarUrl string `json:"avatar_url,omitempty"`
}

获取一个企业

type EnterpriseHook

type EnterpriseHook struct {
	Name string `json:"name,omitempty"`
	Url  string `json:"url,omitempty"`
}

EnterpriseHook : 企业信息

func (*EnterpriseHook) GetName

func (eh *EnterpriseHook) GetName() string

func (*EnterpriseHook) GetUrl

func (eh *EnterpriseHook) GetUrl() string

type EnterpriseMember

type EnterpriseMember struct {
	Url        string           `json:"url,omitempty"`
	Active     string           `json:"active,omitempty"`
	Remark     string           `json:"remark,omitempty"`
	Role       string           `json:"role,omitempty"`
	Outsourced string           `json:"outsourced,omitempty"`
	Enterprise *EnterpriseBasic `json:"enterprise,omitempty"`
	User       string           `json:"user,omitempty"`
}

修改企业成员权限或备注

type EnterprisesApiService

type EnterprisesApiService service

func (*EnterprisesApiService) DeleteV5EnterprisesEnterpriseMembersUsername

func (a *EnterprisesApiService) DeleteV5EnterprisesEnterpriseMembersUsername(ctx context.Context, enterprise string, username string, localVarOptionals *DeleteV5EnterprisesEnterpriseMembersUsernameOpts) (*http.Response, error)

func (*EnterprisesApiService) DeleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsId

func (a *EnterprisesApiService) DeleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsId(ctx context.Context, enterprise string, reportId int32, id int32, localVarOptionals *DeleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsIdOpts) (*http.Response, error)

func (*EnterprisesApiService) GetV5EnterprisesEnterprise

func (a *EnterprisesApiService) GetV5EnterprisesEnterprise(ctx context.Context, enterprise string, localVarOptionals *GetV5EnterprisesEnterpriseOpts) (EnterpriseBasic, *http.Response, error)

func (*EnterprisesApiService) GetV5EnterprisesEnterpriseMembers

func (a *EnterprisesApiService) GetV5EnterprisesEnterpriseMembers(ctx context.Context, enterprise string, localVarOptionals *GetV5EnterprisesEnterpriseMembersOpts) ([]EnterpriseMember, *http.Response, error)

func (*EnterprisesApiService) GetV5EnterprisesEnterpriseMembersUsername

func (a *EnterprisesApiService) GetV5EnterprisesEnterpriseMembersUsername(ctx context.Context, enterprise string, username string, localVarOptionals *GetV5EnterprisesEnterpriseMembersUsernameOpts) (EnterpriseMember, *http.Response, error)

func (*EnterprisesApiService) GetV5EnterprisesEnterpriseUsersUsernameWeekReports

func (a *EnterprisesApiService) GetV5EnterprisesEnterpriseUsersUsernameWeekReports(ctx context.Context, enterprise string, username string, localVarOptionals *GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOpts) ([]WeekReport, *http.Response, error)

func (*EnterprisesApiService) GetV5EnterprisesEnterpriseWeekReports

func (a *EnterprisesApiService) GetV5EnterprisesEnterpriseWeekReports(ctx context.Context, enterprise string, localVarOptionals *GetV5EnterprisesEnterpriseWeekReportsOpts) ([]WeekReport, *http.Response, error)

func (*EnterprisesApiService) GetV5EnterprisesEnterpriseWeekReportsId

func (a *EnterprisesApiService) GetV5EnterprisesEnterpriseWeekReportsId(ctx context.Context, enterprise string, id int32, localVarOptionals *GetV5EnterprisesEnterpriseWeekReportsIdOpts) (WeekReport, *http.Response, error)

func (*EnterprisesApiService) GetV5EnterprisesEnterpriseWeekReportsIdComments

func (a *EnterprisesApiService) GetV5EnterprisesEnterpriseWeekReportsIdComments(ctx context.Context, enterprise string, id int32, localVarOptionals *GetV5EnterprisesEnterpriseWeekReportsIdCommentsOpts) ([]Note, *http.Response, error)

func (*EnterprisesApiService) GetV5UserEnterprises

func (a *EnterprisesApiService) GetV5UserEnterprises(ctx context.Context, localVarOptionals *GetV5UserEnterprisesOpts) ([]EnterpriseBasic, *http.Response, error)

func (*EnterprisesApiService) PatchV5EnterprisesEnterpriseWeekReportId

func (a *EnterprisesApiService) PatchV5EnterprisesEnterpriseWeekReportId(ctx context.Context, enterprise string, id int32, content string, localVarOptionals *PatchV5EnterprisesEnterpriseWeekReportIdOpts) (WeekReport, *http.Response, error)

func (*EnterprisesApiService) PostV5EnterprisesEnterpriseMembers

func (a *EnterprisesApiService) PostV5EnterprisesEnterpriseMembers(ctx context.Context, enterprise string, localVarOptionals *PostV5EnterprisesEnterpriseMembersOpts) (*http.Response, error)

func (*EnterprisesApiService) PostV5EnterprisesEnterpriseWeekReport

func (a *EnterprisesApiService) PostV5EnterprisesEnterpriseWeekReport(ctx context.Context, enterprise string, year int32, content string, weekIndex int32, username string, localVarOptionals *PostV5EnterprisesEnterpriseWeekReportOpts) (WeekReport, *http.Response, error)

func (*EnterprisesApiService) PostV5EnterprisesEnterpriseWeekReportsIdComment

func (a *EnterprisesApiService) PostV5EnterprisesEnterpriseWeekReportsIdComment(ctx context.Context, enterprise string, id int32, body string, localVarOptionals *PostV5EnterprisesEnterpriseWeekReportsIdCommentOpts) (Note, *http.Response, error)

func (*EnterprisesApiService) PutV5EnterprisesEnterpriseMembersUsername

func (a *EnterprisesApiService) PutV5EnterprisesEnterpriseMembersUsername(ctx context.Context, enterprise string, username string, localVarOptionals *PutV5EnterprisesEnterpriseMembersUsernameOpts) (EnterpriseMember, *http.Response, error)

type Event

type Event struct {
	Id        int32  `json:"id,omitempty"`
	Type_     string `json:"type,omitempty"`
	Actor     string `json:"actor,omitempty"`
	Repo      string `json:"repo,omitempty"`
	Org       string `json:"org,omitempty"`
	Public    string `json:"public,omitempty"`
	CreatedAt string `json:"created_at,omitempty"`
	// 不同类型动态的内容
	Payload *interface{} `json:"payload,omitempty"`
}

列出仓库的所有公开动态

type GenericSwaggerError

type GenericSwaggerError struct {
	// contains filtered or unexported fields
}

GenericSwaggerError Provides access to the body, error and model on returned errors.

func (GenericSwaggerError) Body

func (e GenericSwaggerError) Body() []byte

Body returns the raw bytes of the response

func (GenericSwaggerError) Error

func (e GenericSwaggerError) Error() string

Error returns non-empty string if there was an error.

func (GenericSwaggerError) Model

func (e GenericSwaggerError) Model() interface{}

Model returns the unpacked model of the error

type GetV5EmailsOpts

type GetV5EmailsOpts struct {
	AccessToken optional.String
}

type GetV5EmojisOpts

type GetV5EmojisOpts struct {
	AccessToken optional.String
}

type GetV5EnterprisesEnterpriseIssuesNumberCommentsOpts

type GetV5EnterprisesEnterpriseIssuesNumberCommentsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5EnterprisesEnterpriseIssuesNumberLabelsOpts

type GetV5EnterprisesEnterpriseIssuesNumberLabelsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5EnterprisesEnterpriseIssuesNumberOpts

type GetV5EnterprisesEnterpriseIssuesNumberOpts struct {
	AccessToken optional.String
}

type GetV5EnterprisesEnterpriseIssuesOpts

type GetV5EnterprisesEnterpriseIssuesOpts struct {
	AccessToken optional.String
	State       optional.String
	Labels      optional.String
	Sort        optional.String
	Direction   optional.String
	Since       optional.String
	Page        optional.Int32
	PerPage     optional.Int32
	Schedule    optional.String
	Deadline    optional.String
	CreatedAt   optional.String
	FinishedAt  optional.String
	Milestone   optional.String
	Assignee    optional.String
	Creator     optional.String
	Program     optional.String
}

type GetV5EnterprisesEnterpriseLabelsNameOpts

type GetV5EnterprisesEnterpriseLabelsNameOpts struct {
	AccessToken optional.String
}

type GetV5EnterprisesEnterpriseLabelsOpts

type GetV5EnterprisesEnterpriseLabelsOpts struct {
	AccessToken optional.String
}

type GetV5EnterprisesEnterpriseMembersOpts

type GetV5EnterprisesEnterpriseMembersOpts struct {
	AccessToken optional.String
	Role        optional.String
}

type GetV5EnterprisesEnterpriseMembersUsernameOpts

type GetV5EnterprisesEnterpriseMembersUsernameOpts struct {
	AccessToken optional.String
}

type GetV5EnterprisesEnterpriseOpts

type GetV5EnterprisesEnterpriseOpts struct {
	AccessToken optional.String
}

type GetV5EnterprisesEnterpriseReposOpts

type GetV5EnterprisesEnterpriseReposOpts struct {
	AccessToken optional.String
	Type_       optional.String
	Direct      optional.Bool
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOpts

type GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5EnterprisesEnterpriseWeekReportsIdCommentsOpts

type GetV5EnterprisesEnterpriseWeekReportsIdCommentsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5EnterprisesEnterpriseWeekReportsIdOpts

type GetV5EnterprisesEnterpriseWeekReportsIdOpts struct {
	AccessToken optional.String
}

type GetV5EnterprisesEnterpriseWeekReportsOpts

type GetV5EnterprisesEnterpriseWeekReportsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
	Username    optional.String
	Year        optional.Int32
	WeekIndex   optional.Int32
	Date        optional.String
}

type GetV5EventsOpts

type GetV5EventsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5GistsGistIdCommentsIdOpts

type GetV5GistsGistIdCommentsIdOpts struct {
	AccessToken optional.String
}

type GetV5GistsGistIdCommentsOpts

type GetV5GistsGistIdCommentsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5GistsIdCommitsOpts

type GetV5GistsIdCommitsOpts struct {
	AccessToken optional.String
}

type GetV5GistsIdForksOpts

type GetV5GistsIdForksOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5GistsIdOpts

type GetV5GistsIdOpts struct {
	AccessToken optional.String
}

type GetV5GistsIdStarOpts

type GetV5GistsIdStarOpts struct {
	AccessToken optional.String
}

type GetV5GistsOpts

type GetV5GistsOpts struct {
	AccessToken optional.String
	Since       optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5GistsPublicOpts

type GetV5GistsPublicOpts struct {
	AccessToken optional.String
	Since       optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5GistsStarredOpts

type GetV5GistsStarredOpts struct {
	AccessToken optional.String
	Since       optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5GitignoreTemplatesNameOpts

type GetV5GitignoreTemplatesNameOpts struct {
	AccessToken optional.String
}

type GetV5GitignoreTemplatesNameRawOpts

type GetV5GitignoreTemplatesNameRawOpts struct {
	AccessToken optional.String
}

type GetV5GitignoreTemplatesOpts

type GetV5GitignoreTemplatesOpts struct {
	AccessToken optional.String
}

type GetV5IssuesOpts

type GetV5IssuesOpts struct {
	AccessToken optional.String
	Filter      optional.String
	State       optional.String
	Labels      optional.String
	Sort        optional.String
	Direction   optional.String
	Since       optional.String
	Page        optional.Int32
	PerPage     optional.Int32
	Schedule    optional.String
	Deadline    optional.String
	CreatedAt   optional.String
	FinishedAt  optional.String
}

type GetV5LicensesLicenseOpts

type GetV5LicensesLicenseOpts struct {
	AccessToken optional.String
}

type GetV5LicensesLicenseRawOpts

type GetV5LicensesLicenseRawOpts struct {
	AccessToken optional.String
}

type GetV5LicensesOpts

type GetV5LicensesOpts struct {
	AccessToken optional.String
}

type GetV5NetworksOwnerRepoEventsOpts

type GetV5NetworksOwnerRepoEventsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5NotificationsCountOpts

type GetV5NotificationsCountOpts struct {
	AccessToken optional.String
	Unread      optional.Bool
}

type GetV5NotificationsMessagesIdOpts

type GetV5NotificationsMessagesIdOpts struct {
	AccessToken optional.String
}

type GetV5NotificationsMessagesOpts

type GetV5NotificationsMessagesOpts struct {
	AccessToken optional.String
	Unread      optional.Bool
	Since       optional.String
	Before      optional.String
	Ids         optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5NotificationsThreadsIdOpts

type GetV5NotificationsThreadsIdOpts struct {
	AccessToken optional.String
}

type GetV5NotificationsThreadsOpts

type GetV5NotificationsThreadsOpts struct {
	AccessToken   optional.String
	Unread        optional.Bool
	Participating optional.Bool
	Type_         optional.String
	Since         optional.String
	Before        optional.String
	Ids           optional.String
	Page          optional.Int32
	PerPage       optional.Int32
}

type GetV5OrgsOrgEventsOpts

type GetV5OrgsOrgEventsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5OrgsOrgIssuesOpts

type GetV5OrgsOrgIssuesOpts struct {
	AccessToken optional.String
	Filter      optional.String
	State       optional.String
	Labels      optional.String
	Sort        optional.String
	Direction   optional.String
	Since       optional.String
	Page        optional.Int32
	PerPage     optional.Int32
	Schedule    optional.String
	Deadline    optional.String
	CreatedAt   optional.String
	FinishedAt  optional.String
}

type GetV5OrgsOrgMembersOpts

type GetV5OrgsOrgMembersOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
	Role        optional.String
}

type GetV5OrgsOrgMembershipsUsernameOpts

type GetV5OrgsOrgMembershipsUsernameOpts struct {
	AccessToken optional.String
}

type GetV5OrgsOrgOpts

type GetV5OrgsOrgOpts struct {
	AccessToken optional.String
}

type GetV5OrgsOrgReposOpts

type GetV5OrgsOrgReposOpts struct {
	AccessToken optional.String
	Type_       optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerIssuesNumberOperateLogsOpts

type GetV5ReposOwnerIssuesNumberOperateLogsOpts struct {
	AccessToken optional.String
	Repo        optional.String
	Sort        optional.String
}

type GetV5ReposOwnerRepoBranchesBranchOpts

type GetV5ReposOwnerRepoBranchesBranchOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoBranchesOpts

type GetV5ReposOwnerRepoBranchesOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoCollaboratorsOpts

type GetV5ReposOwnerRepoCollaboratorsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerRepoCollaboratorsUsernameOpts

type GetV5ReposOwnerRepoCollaboratorsUsernameOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoCollaboratorsUsernamePermissionOpts

type GetV5ReposOwnerRepoCollaboratorsUsernamePermissionOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoCommentsIdOpts

type GetV5ReposOwnerRepoCommentsIdOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoCommentsOpts

type GetV5ReposOwnerRepoCommentsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerRepoCommitsOpts

type GetV5ReposOwnerRepoCommitsOpts struct {
	AccessToken optional.String
	Sha         optional.String
	Path        optional.String
	Author      optional.String
	Since       optional.String
	Until       optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerRepoCommitsRefCommentsOpts

type GetV5ReposOwnerRepoCommitsRefCommentsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerRepoCommitsShaOpts

type GetV5ReposOwnerRepoCommitsShaOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoCompareBaseHeadOpts

type GetV5ReposOwnerRepoCompareBaseHeadOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoContentsPathOpts

type GetV5ReposOwnerRepoContentsPathOpts struct {
	AccessToken optional.String
	Ref         optional.String
}

type GetV5ReposOwnerRepoContributorsOpts

type GetV5ReposOwnerRepoContributorsOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoEventsOpts

type GetV5ReposOwnerRepoEventsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerRepoForksOpts

type GetV5ReposOwnerRepoForksOpts struct {
	AccessToken optional.String
	Sort        optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerRepoGitBlobsShaOpts

type GetV5ReposOwnerRepoGitBlobsShaOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoGitTreesShaOpts

type GetV5ReposOwnerRepoGitTreesShaOpts struct {
	AccessToken optional.String
	Recursive   optional.Int32
}

type GetV5ReposOwnerRepoHooksIdOpts

type GetV5ReposOwnerRepoHooksIdOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoHooksOpts

type GetV5ReposOwnerRepoHooksOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerRepoIssuesCommentsIdOpts

type GetV5ReposOwnerRepoIssuesCommentsIdOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoIssuesCommentsOpts

type GetV5ReposOwnerRepoIssuesCommentsOpts struct {
	AccessToken optional.String
	Sort        optional.String
	Direction   optional.String
	Since       optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerRepoIssuesNumberCommentsOpts

type GetV5ReposOwnerRepoIssuesNumberCommentsOpts struct {
	AccessToken optional.String
	Since       optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerRepoIssuesNumberLabelsOpts

type GetV5ReposOwnerRepoIssuesNumberLabelsOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoIssuesNumberOpts

type GetV5ReposOwnerRepoIssuesNumberOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoIssuesOpts

type GetV5ReposOwnerRepoIssuesOpts struct {
	AccessToken optional.String
	State       optional.String
	Labels      optional.String
	Sort        optional.String
	Direction   optional.String
	Since       optional.String
	Page        optional.Int32
	PerPage     optional.Int32
	Schedule    optional.String
	Deadline    optional.String
	CreatedAt   optional.String
	FinishedAt  optional.String
	Milestone   optional.String
	Assignee    optional.String
	Creator     optional.String
	Program     optional.String
}

type GetV5ReposOwnerRepoKeysAvailableOpts

type GetV5ReposOwnerRepoKeysAvailableOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerRepoKeysIdOpts

type GetV5ReposOwnerRepoKeysIdOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoKeysOpts

type GetV5ReposOwnerRepoKeysOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerRepoLabelsNameOpts

type GetV5ReposOwnerRepoLabelsNameOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoLabelsOpts

type GetV5ReposOwnerRepoLabelsOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoLicenseOpts

type GetV5ReposOwnerRepoLicenseOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoMilestonesNumberOpts

type GetV5ReposOwnerRepoMilestonesNumberOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoMilestonesOpts

type GetV5ReposOwnerRepoMilestonesOpts struct {
	AccessToken optional.String
	State       optional.String
	Sort        optional.String
	Direction   optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerRepoNotificationsOpts

type GetV5ReposOwnerRepoNotificationsOpts struct {
	AccessToken   optional.String
	Unread        optional.Bool
	Participating optional.Bool
	Type_         optional.String
	Since         optional.String
	Before        optional.String
	Ids           optional.String
	Page          optional.Int32
	PerPage       optional.Int32
}

type GetV5ReposOwnerRepoOpts

type GetV5ReposOwnerRepoOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoPagesOpts

type GetV5ReposOwnerRepoPagesOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoPullsCommentsIdOpts

type GetV5ReposOwnerRepoPullsCommentsIdOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoPullsCommentsOpts

type GetV5ReposOwnerRepoPullsCommentsOpts struct {
	AccessToken optional.String
	Sort        optional.String
	Direction   optional.String
	Since       optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerRepoPullsNumberCommentsOpts

type GetV5ReposOwnerRepoPullsNumberCommentsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerRepoPullsNumberCommitsOpts

type GetV5ReposOwnerRepoPullsNumberCommitsOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoPullsNumberFilesOpts

type GetV5ReposOwnerRepoPullsNumberFilesOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoPullsNumberIssuesOpts

type GetV5ReposOwnerRepoPullsNumberIssuesOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerRepoPullsNumberLabelsOpts

type GetV5ReposOwnerRepoPullsNumberLabelsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerRepoPullsNumberMergeOpts

type GetV5ReposOwnerRepoPullsNumberMergeOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoPullsNumberOperateLogsOpts

type GetV5ReposOwnerRepoPullsNumberOperateLogsOpts struct {
	AccessToken optional.String
	Sort        optional.String
}

type GetV5ReposOwnerRepoPullsNumberOpts

type GetV5ReposOwnerRepoPullsNumberOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoPullsOpts

type GetV5ReposOwnerRepoPullsOpts struct {
	AccessToken     optional.String
	State           optional.String
	Head            optional.String
	Base            optional.String
	Sort            optional.String
	Direction       optional.String
	MilestoneNumber optional.Int32
	Labels          optional.String
	Page            optional.Int32
	PerPage         optional.Int32
}

type GetV5ReposOwnerRepoReadmeOpts

type GetV5ReposOwnerRepoReadmeOpts struct {
	AccessToken optional.String
	Ref         optional.String
}

type GetV5ReposOwnerRepoReleasesIdOpts

type GetV5ReposOwnerRepoReleasesIdOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoReleasesLatestOpts

type GetV5ReposOwnerRepoReleasesLatestOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoReleasesOpts

type GetV5ReposOwnerRepoReleasesOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerRepoReleasesTagsTagOpts

type GetV5ReposOwnerRepoReleasesTagsTagOpts struct {
	AccessToken optional.String
}

type GetV5ReposOwnerRepoStargazersOpts

type GetV5ReposOwnerRepoStargazersOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerRepoSubscribersOpts

type GetV5ReposOwnerRepoSubscribersOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5ReposOwnerRepoTagsOpts

type GetV5ReposOwnerRepoTagsOpts struct {
	AccessToken optional.String
}

type GetV5SearchGistsOpts

type GetV5SearchGistsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
	Language    optional.String
	Owner       optional.String
	Sort        optional.String
	Order       optional.String
}

type GetV5SearchIssuesOpts

type GetV5SearchIssuesOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
	Repo        optional.String
	Language    optional.String
	Label       optional.String
	State       optional.String
	Author      optional.String
	Assignee    optional.String
	Sort        optional.String
	Order       optional.String
}

type GetV5SearchRepositoriesOpts

type GetV5SearchRepositoriesOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
	Owner       optional.String
	Fork        optional.Bool
	Language    optional.String
	Sort        optional.String
	Order       optional.String
}

type GetV5SearchUsersOpts

type GetV5SearchUsersOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
	Sort        optional.String
	Order       optional.String
}

type GetV5UserEnterprisesOpts

type GetV5UserEnterprisesOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
	Admin       optional.Bool
}

type GetV5UserFollowersOpts

type GetV5UserFollowersOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5UserFollowingOpts

type GetV5UserFollowingOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5UserFollowingUsernameOpts

type GetV5UserFollowingUsernameOpts struct {
	AccessToken optional.String
}

type GetV5UserIssuesOpts

type GetV5UserIssuesOpts struct {
	AccessToken optional.String
	Filter      optional.String
	State       optional.String
	Labels      optional.String
	Sort        optional.String
	Direction   optional.String
	Since       optional.String
	Page        optional.Int32
	PerPage     optional.Int32
	Schedule    optional.String
	Deadline    optional.String
	CreatedAt   optional.String
	FinishedAt  optional.String
}

type GetV5UserKeysIdOpts

type GetV5UserKeysIdOpts struct {
	AccessToken optional.String
}

type GetV5UserKeysOpts

type GetV5UserKeysOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5UserMembershipsOrgsOpts

type GetV5UserMembershipsOrgsOpts struct {
	AccessToken optional.String
	Active      optional.Bool
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5UserMembershipsOrgsOrgOpts

type GetV5UserMembershipsOrgsOrgOpts struct {
	AccessToken optional.String
}

type GetV5UserNamespaceOpts

type GetV5UserNamespaceOpts struct {
	AccessToken optional.String
}

type GetV5UserNamespacesOpts

type GetV5UserNamespacesOpts struct {
	AccessToken optional.String
	Mode        optional.String
}

type GetV5UserOpts

type GetV5UserOpts struct {
	AccessToken optional.String
}

type GetV5UserOrgsOpts

type GetV5UserOrgsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
	Admin       optional.Bool
}

type GetV5UserReposOpts

type GetV5UserReposOpts struct {
	AccessToken optional.String
	Visibility  optional.String
	Affiliation optional.String
	Type_       optional.String
	Sort        optional.String
	Direction   optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5UserStarredOpts

type GetV5UserStarredOpts struct {
	AccessToken optional.String
	Sort        optional.String
	Direction   optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5UserStarredOwnerRepoOpts

type GetV5UserStarredOwnerRepoOpts struct {
	AccessToken optional.String
}

type GetV5UserSubscriptionsOpts

type GetV5UserSubscriptionsOpts struct {
	AccessToken optional.String
	Sort        optional.String
	Direction   optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5UserSubscriptionsOwnerRepoOpts

type GetV5UserSubscriptionsOwnerRepoOpts struct {
	AccessToken optional.String
}

type GetV5UsersUsernameEventsOpts

type GetV5UsersUsernameEventsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5UsersUsernameEventsOrgsOrgOpts

type GetV5UsersUsernameEventsOrgsOrgOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5UsersUsernameEventsPublicOpts

type GetV5UsersUsernameEventsPublicOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5UsersUsernameFollowersOpts

type GetV5UsersUsernameFollowersOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5UsersUsernameFollowingOpts

type GetV5UsersUsernameFollowingOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5UsersUsernameFollowingTargetUserOpts

type GetV5UsersUsernameFollowingTargetUserOpts struct {
	AccessToken optional.String
}

type GetV5UsersUsernameGistsOpts

type GetV5UsersUsernameGistsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5UsersUsernameKeysOpts

type GetV5UsersUsernameKeysOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5UsersUsernameOpts

type GetV5UsersUsernameOpts struct {
	AccessToken optional.String
}

type GetV5UsersUsernameOrgsOpts

type GetV5UsersUsernameOrgsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5UsersUsernameReceivedEventsOpts

type GetV5UsersUsernameReceivedEventsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5UsersUsernameReceivedEventsPublicOpts

type GetV5UsersUsernameReceivedEventsPublicOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5UsersUsernameReposOpts

type GetV5UsersUsernameReposOpts struct {
	AccessToken optional.String
	Type_       optional.String
	Sort        optional.String
	Direction   optional.String
	Page        optional.Int32
	PerPage     optional.Int32
}

type GetV5UsersUsernameStarredOpts

type GetV5UsersUsernameStarredOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
	Sort        optional.String
	Direction   optional.String
}

type GetV5UsersUsernameSubscriptionsOpts

type GetV5UsersUsernameSubscriptionsOpts struct {
	AccessToken optional.String
	Page        optional.Int32
	PerPage     optional.Int32
	Sort        optional.String
	Direction   optional.String
}

type GistsApiService

type GistsApiService service

func (*GistsApiService) DeleteV5GistsGistIdCommentsId

func (a *GistsApiService) DeleteV5GistsGistIdCommentsId(ctx context.Context, gistId string, id int32, localVarOptionals *DeleteV5GistsGistIdCommentsIdOpts) (*http.Response, error)

func (*GistsApiService) DeleteV5GistsId

func (a *GistsApiService) DeleteV5GistsId(ctx context.Context, id string, localVarOptionals *DeleteV5GistsIdOpts) (*http.Response, error)

func (*GistsApiService) DeleteV5GistsIdStar

func (a *GistsApiService) DeleteV5GistsIdStar(ctx context.Context, id string, localVarOptionals *DeleteV5GistsIdStarOpts) (*http.Response, error)

func (*GistsApiService) GetV5Gists

func (a *GistsApiService) GetV5Gists(ctx context.Context, localVarOptionals *GetV5GistsOpts) ([]Code, *http.Response, error)

func (*GistsApiService) GetV5GistsGistIdComments

func (a *GistsApiService) GetV5GistsGistIdComments(ctx context.Context, gistId string, localVarOptionals *GetV5GistsGistIdCommentsOpts) ([]CodeComment, *http.Response, error)

func (*GistsApiService) GetV5GistsGistIdCommentsId

func (a *GistsApiService) GetV5GistsGistIdCommentsId(ctx context.Context, gistId string, id int32, localVarOptionals *GetV5GistsGistIdCommentsIdOpts) (CodeComment, *http.Response, error)

func (*GistsApiService) GetV5GistsId

func (a *GistsApiService) GetV5GistsId(ctx context.Context, id string, localVarOptionals *GetV5GistsIdOpts) (CodeForksHistory, *http.Response, error)

func (*GistsApiService) GetV5GistsIdCommits

func (a *GistsApiService) GetV5GistsIdCommits(ctx context.Context, id string, localVarOptionals *GetV5GistsIdCommitsOpts) (CodeForksHistory, *http.Response, error)

func (*GistsApiService) GetV5GistsIdForks

func (a *GistsApiService) GetV5GistsIdForks(ctx context.Context, id string, localVarOptionals *GetV5GistsIdForksOpts) (CodeForks, *http.Response, error)

func (*GistsApiService) GetV5GistsIdStar

func (a *GistsApiService) GetV5GistsIdStar(ctx context.Context, id string, localVarOptionals *GetV5GistsIdStarOpts) (*http.Response, error)

func (*GistsApiService) GetV5GistsPublic

func (a *GistsApiService) GetV5GistsPublic(ctx context.Context, localVarOptionals *GetV5GistsPublicOpts) ([]Code, *http.Response, error)

func (*GistsApiService) GetV5GistsStarred

func (a *GistsApiService) GetV5GistsStarred(ctx context.Context, localVarOptionals *GetV5GistsStarredOpts) ([]Code, *http.Response, error)

func (*GistsApiService) GetV5UsersUsernameGists

func (a *GistsApiService) GetV5UsersUsernameGists(ctx context.Context, username string, localVarOptionals *GetV5UsersUsernameGistsOpts) ([]Code, *http.Response, error)

func (*GistsApiService) PatchV5GistsGistIdCommentsId

func (a *GistsApiService) PatchV5GistsGistIdCommentsId(ctx context.Context, gistId string, id int32, body string, localVarOptionals *PatchV5GistsGistIdCommentsIdOpts) (CodeComment, *http.Response, error)

func (*GistsApiService) PatchV5GistsId

func (a *GistsApiService) PatchV5GistsId(ctx context.Context, id string, localVarOptionals *PatchV5GistsIdOpts) (CodeForksHistory, *http.Response, error)

func (*GistsApiService) PostV5Gists

func (a *GistsApiService) PostV5Gists(ctx context.Context, files *os.File, description string, localVarOptionals *PostV5GistsOpts) ([]CodeForksHistory, *http.Response, error)

func (*GistsApiService) PostV5GistsGistIdComments

func (a *GistsApiService) PostV5GistsGistIdComments(ctx context.Context, gistId string, body string, localVarOptionals *PostV5GistsGistIdCommentsOpts) (CodeComment, *http.Response, error)

func (*GistsApiService) PostV5GistsIdForks

func (a *GistsApiService) PostV5GistsIdForks(ctx context.Context, id string, localVarOptionals *PostV5GistsIdForksOpts) (*http.Response, error)

func (*GistsApiService) PutV5GistsIdStar

func (a *GistsApiService) PutV5GistsIdStar(ctx context.Context, id string, localVarOptionals *PutV5GistsIdStarOpts) (*http.Response, error)

type GitCommit

type GitCommit struct {
	Url          string   `json:"url,omitempty"`
	Author       *GitUser `json:"author,omitempty"`
	Committer    *GitUser `json:"committer,omitempty"`
	Message      string   `json:"message,omitempty"`
	CommentCount int32    `json:"comment_count,omitempty"`
}

type GitDataApiService

type GitDataApiService service

func (*GitDataApiService) GetV5ReposOwnerRepoGitBlobsSha

func (a *GitDataApiService) GetV5ReposOwnerRepoGitBlobsSha(ctx context.Context, owner string, repo string, sha string, localVarOptionals *GetV5ReposOwnerRepoGitBlobsShaOpts) (Blob, *http.Response, error)

func (*GitDataApiService) GetV5ReposOwnerRepoGitTreesSha

func (a *GitDataApiService) GetV5ReposOwnerRepoGitTreesSha(ctx context.Context, owner string, repo string, sha string, localVarOptionals *GetV5ReposOwnerRepoGitTreesShaOpts) (Tree, *http.Response, error)

type GitUser

type GitUser struct {
	Name  string    `json:"name,omitempty"`
	Email string    `json:"email,omitempty"`
	Date  time.Time `json:"date,omitempty"`
}

type Group

type Group struct {
	Id          int32  `json:"id,omitempty"`
	Login       string `json:"login,omitempty"`
	Url         string `json:"url,omitempty"`
	AvatarUrl   string `json:"avatar_url,omitempty"`
	ReposUrl    string `json:"repos_url,omitempty"`
	EventsUrl   string `json:"events_url,omitempty"`
	MembersUrl  string `json:"members_url,omitempty"`
	Description string `json:"description,omitempty"`
}

获取一个组织

type GroupDetail

type GroupDetail struct {
	Id           int32  `json:"id,omitempty"`
	Login        string `json:"login,omitempty"`
	Url          string `json:"url,omitempty"`
	AvatarUrl    string `json:"avatar_url,omitempty"`
	ReposUrl     string `json:"repos_url,omitempty"`
	EventsUrl    string `json:"events_url,omitempty"`
	MembersUrl   string `json:"members_url,omitempty"`
	Description  string `json:"description,omitempty"`
	Name         string `json:"name,omitempty"`
	CreatedAt    string `json:"created_at,omitempty"`
	Type_        string `json:"type,omitempty"`
	Location     string `json:"location,omitempty"`
	Email        string `json:"email,omitempty"`
	HtmlUrl      string `json:"html_url,omitempty"`
	Public       string `json:"public,omitempty"`
	Enterprise   string `json:"enterprise,omitempty"`
	Members      string `json:"members,omitempty"`
	PublicRepos  string `json:"public_repos,omitempty"`
	PrivateRepos string `json:"private_repos,omitempty"`
	Owner        string `json:"owner,omitempty"`
}

更新授权用户所管理的组织资料

type GroupMember

type GroupMember struct {
	Url             string `json:"url,omitempty"`
	Active          string `json:"active,omitempty"`
	Remark          string `json:"remark,omitempty"`
	Role            string `json:"role,omitempty"`
	OrganizationUrl string `json:"organization_url,omitempty"`
	Organization    *Group `json:"organization,omitempty"`
	User            string `json:"user,omitempty"`
}

增加或更新授权用户所管理组织的成员

type Hook

type Hook struct {
	Id                  string `json:"id,omitempty"`
	Url                 string `json:"url,omitempty"`
	CreatedAt           string `json:"created_at,omitempty"`
	Password            string `json:"password,omitempty"`
	ProjectId           string `json:"project_id,omitempty"`
	Result              string `json:"result,omitempty"`
	ResultCode          string `json:"result_code,omitempty"`
	PushEvents          string `json:"push_events,omitempty"`
	TagPushEvents       string `json:"tag_push_events,omitempty"`
	IssuesEvents        string `json:"issues_events,omitempty"`
	NoteEvents          string `json:"note_events,omitempty"`
	MergeRequestsEvents string `json:"merge_requests_events,omitempty"`
}

更新一个仓库WebHook

type HookEvent

type HookEvent struct {
	Type       *string          `json:"type,omitempty"`
	RawPayload *json.RawMessage `json:"payload,omitempty"`
	Actor      *User            `json:"actor,omitempty"`
	CreatedAt  *time.Time       `json:"created_at,omitempty"`
	ID         *string          `json:"id,omitempty"`
}

HookEvent represents a Gitee hook event.

func (*HookEvent) ParsePayload

func (e *HookEvent) ParsePayload() (payload interface{}, err error)

ParsePayload parses the event payload. For recognized event types, a value of the corresponding struct type will be returned.

type Issue

type Issue struct {
	Id            int32         `json:"id,omitempty"`
	Url           string        `json:"url,omitempty"`
	RepositoryUrl string        `json:"repository_url,omitempty"`
	LabelsUrl     string        `json:"labels_url,omitempty"`
	CommentsUrl   string        `json:"comments_url,omitempty"`
	HtmlUrl       string        `json:"html_url,omitempty"`
	ParentUrl     string        `json:"parent_url,omitempty"`
	Number        string        `json:"number,omitempty"`
	State         string        `json:"state,omitempty"`
	Title         string        `json:"title,omitempty"`
	Body          string        `json:"body,omitempty"`
	BodyHtml      string        `json:"body_html,omitempty"`
	User          *UserBasic    `json:"user,omitempty"`
	Labels        []Label       `json:"labels,omitempty"`
	Assignee      *UserBasic    `json:"assignee,omitempty"`
	Collaborators []UserBasic   `json:"collaborators,omitempty"`
	Repository    string        `json:"repository,omitempty"`
	Milestone     *Milestone    `json:"milestone,omitempty"`
	CreatedAt     time.Time     `json:"created_at,omitempty"`
	UpdatedAt     time.Time     `json:"updated_at,omitempty"`
	PlanStartedAt time.Time     `json:"plan_started_at,omitempty"`
	Deadline      time.Time     `json:"deadline,omitempty"`
	FinishedAt    time.Time     `json:"finished_at,omitempty"`
	ScheduledTime string        `json:"scheduled_time,omitempty"`
	Comments      int32         `json:"comments,omitempty"`
	IssueType     string        `json:"issue_type,omitempty"`
	Program       *ProgramBasic `json:"program,omitempty"`
}

搜索 Issues

type IssueCommentPatchParam

type IssueCommentPatchParam struct {
	// 用户授权码
	AccessToken string `json:"access_token,omitempty"`
	// 必填。评论内容
	Body string `json:"body,omitempty"`
}

edit pull request comment

type IssueCommentPostParam

type IssueCommentPostParam struct {
	// 用户授权码
	AccessToken string `json:"access_token,omitempty"`
	// The contents of the comment
	Body string `json:"body,omitempty"`
}

type IssueEvent

type IssueEvent struct {
	Action      *string         `json:"action,omitempty"`
	Issue       *IssueHook      `json:"issue,omitempty"`
	Repository  *ProjectHook    `json:"repository,omitempty"`
	Project     *ProjectHook    `json:"project,omitempty"`
	Sender      *UserHook       `json:"sender,omitempty"`
	TargetUser  *UserHook       `json:"target_user,omitempty"`
	User        *UserHook       `json:"user,omitempty"`
	Assignee    *UserHook       `json:"assignee,omitempty"`
	UpdatedBy   *UserHook       `json:"updated_by,omitempty"`
	IID         string          `json:"iid,omitempty"`
	Title       *string         `json:"title,omitempty"`
	Description *string         `json:"description,omitempty"`
	State       *string         `json:"state,omitempty"`
	Milestone   *string         `json:"milestone,omitempty"`
	URL         *string         `json:"url,omitempty"`
	Enterprise  *EnterpriseHook `json:"enterprise,omitempty"`
	HookName    *string         `json:"hook_name,omitempty"`
	Password    *string         `json:"password,omitempty"`
}

func (*IssueEvent) GetAction

func (ie *IssueEvent) GetAction() string

func (*IssueEvent) GetAssignee

func (ie *IssueEvent) GetAssignee() *UserHook

func (*IssueEvent) GetDescription

func (ie *IssueEvent) GetDescription() string

func (*IssueEvent) GetEnterprise

func (ie *IssueEvent) GetEnterprise() *EnterpriseHook

func (*IssueEvent) GetHookName

func (ie *IssueEvent) GetHookName() string

func (*IssueEvent) GetIssue

func (ie *IssueEvent) GetIssue() *IssueHook

func (*IssueEvent) GetMilestone

func (ie *IssueEvent) GetMilestone() string

func (*IssueEvent) GetPassword

func (ie *IssueEvent) GetPassword() string

func (*IssueEvent) GetProject

func (ie *IssueEvent) GetProject() *ProjectHook

func (*IssueEvent) GetRepository

func (ie *IssueEvent) GetRepository() *ProjectHook

func (*IssueEvent) GetSender

func (ie *IssueEvent) GetSender() *UserHook

func (*IssueEvent) GetState

func (ie *IssueEvent) GetState() string

func (*IssueEvent) GetTargetUser

func (ie *IssueEvent) GetTargetUser() *UserHook

func (*IssueEvent) GetTitle

func (ie *IssueEvent) GetTitle() string

func (*IssueEvent) GetURL

func (ie *IssueEvent) GetURL() string

func (*IssueEvent) GetUpdatedBy

func (ie *IssueEvent) GetUpdatedBy() *UserHook

func (*IssueEvent) GetUser

func (ie *IssueEvent) GetUser() *UserHook

type IssueHook

type IssueHook struct {
	Id            int32          `json:"id,omitempty"`
	HtmlUrl       string         `json:"html_url,omitempty"`
	Number        string         `json:"number,omitempty"`
	Title         string         `json:"title,omitempty"`
	User          *UserHook      `json:"user,omitempty"`
	Labels        []LabelHook    `json:"labels,omitempty"`
	State         string         `json:"state,omitempty"`
	StateName     string         `json:"state_name,omitempty"`
	TypeName      string         `json:"type_name,omitempty"`
	Assignee      *UserHook      `json:"assignee,omitempty"`
	Collaborators []UserHook     `json:"collaborators,omitempty"`
	Milestone     *MilestoneHook `json:"milestone,omitempty"`
	Comments      int32          `json:"comments,omitempty"`
	CreatedAt     time.Time      `json:"created_at,omitempty"`
	UpdatedAt     time.Time      `json:"updated_at,omitempty"`
	Body          string         `json:"body,omitempty"`
}

IssueHook : issue 信息

func (*IssueHook) GetNumber

func (ih *IssueHook) GetNumber() string

func (*IssueHook) GetState

func (ih *IssueHook) GetState() string

func (*IssueHook) GetUser

func (ih *IssueHook) GetUser() *UserHook

type IssueUpdateParam

type IssueUpdateParam struct {
	// 用户授权码
	AccessToken string `json:"access_token,omitempty"`
	// 仓库路径(path)
	Repo string `json:"repo,omitempty"`
	// Issue标题
	Title string `json:"title,omitempty"`
	// Issue 状态,open(开启的)、progressing(进行中)、closed(关闭的)
	State string `json:"state,omitempty"`
	// Issue描述
	Body string `json:"body,omitempty"`
	// Issue负责人的username
	Assignee string `json:"assignee,omitempty"`
	// 里程碑序号
	Milestone int32 `json:"milestone,omitempty"`
	// 用逗号分开的标签,名称要求长度在 2-20 之间且非特殊字符。如: bug,performance
	Labels string `json:"labels,omitempty"`
	// 项目ID
	Program string `json:"program,omitempty"`
	// Issue协助者的个人空间地址, 以 , 分隔
	Collaborators string `json:"collaborators,omitempty"`
}

update issue information

type IssuesApiService

type IssuesApiService service

func (*IssuesApiService) DeleteV5ReposOwnerRepoIssuesCommentsId

func (a *IssuesApiService) DeleteV5ReposOwnerRepoIssuesCommentsId(ctx context.Context, owner string, repo string, id int32, localVarOptionals *DeleteV5ReposOwnerRepoIssuesCommentsIdOpts) (*http.Response, error)

func (*IssuesApiService) GetV5EnterprisesEnterpriseIssues

func (a *IssuesApiService) GetV5EnterprisesEnterpriseIssues(ctx context.Context, enterprise string, localVarOptionals *GetV5EnterprisesEnterpriseIssuesOpts) ([]Issue, *http.Response, error)

func (*IssuesApiService) GetV5EnterprisesEnterpriseIssuesNumber

func (a *IssuesApiService) GetV5EnterprisesEnterpriseIssuesNumber(ctx context.Context, enterprise string, number string, localVarOptionals *GetV5EnterprisesEnterpriseIssuesNumberOpts) (Issue, *http.Response, error)

func (*IssuesApiService) GetV5EnterprisesEnterpriseIssuesNumberComments

func (a *IssuesApiService) GetV5EnterprisesEnterpriseIssuesNumberComments(ctx context.Context, enterprise string, number string, localVarOptionals *GetV5EnterprisesEnterpriseIssuesNumberCommentsOpts) ([]Note, *http.Response, error)

func (*IssuesApiService) GetV5EnterprisesEnterpriseIssuesNumberLabels

func (a *IssuesApiService) GetV5EnterprisesEnterpriseIssuesNumberLabels(ctx context.Context, enterprise string, number string, localVarOptionals *GetV5EnterprisesEnterpriseIssuesNumberLabelsOpts) ([]Label, *http.Response, error)

func (*IssuesApiService) GetV5Issues

func (a *IssuesApiService) GetV5Issues(ctx context.Context, localVarOptionals *GetV5IssuesOpts) ([]Issue, *http.Response, error)

func (*IssuesApiService) GetV5OrgsOrgIssues

func (a *IssuesApiService) GetV5OrgsOrgIssues(ctx context.Context, org string, localVarOptionals *GetV5OrgsOrgIssuesOpts) ([]Issue, *http.Response, error)

func (*IssuesApiService) GetV5ReposOwnerIssuesNumberOperateLogs

func (a *IssuesApiService) GetV5ReposOwnerIssuesNumberOperateLogs(ctx context.Context, owner string, number string, localVarOptionals *GetV5ReposOwnerIssuesNumberOperateLogsOpts) ([]OperateLog, *http.Response, error)

func (*IssuesApiService) GetV5ReposOwnerRepoIssues

func (a *IssuesApiService) GetV5ReposOwnerRepoIssues(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoIssuesOpts) ([]Issue, *http.Response, error)

func (*IssuesApiService) GetV5ReposOwnerRepoIssuesComments

func (a *IssuesApiService) GetV5ReposOwnerRepoIssuesComments(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoIssuesCommentsOpts) (Note, *http.Response, error)

func (*IssuesApiService) GetV5ReposOwnerRepoIssuesCommentsId

func (a *IssuesApiService) GetV5ReposOwnerRepoIssuesCommentsId(ctx context.Context, owner string, repo string, id int32, localVarOptionals *GetV5ReposOwnerRepoIssuesCommentsIdOpts) (Note, *http.Response, error)

func (*IssuesApiService) GetV5ReposOwnerRepoIssuesNumber

func (a *IssuesApiService) GetV5ReposOwnerRepoIssuesNumber(ctx context.Context, owner string, repo string, number string, localVarOptionals *GetV5ReposOwnerRepoIssuesNumberOpts) (Issue, *http.Response, error)

func (*IssuesApiService) GetV5ReposOwnerRepoIssuesNumberComments

func (a *IssuesApiService) GetV5ReposOwnerRepoIssuesNumberComments(ctx context.Context, owner string, repo string, number string, localVarOptionals *GetV5ReposOwnerRepoIssuesNumberCommentsOpts) ([]Note, *http.Response, error)

func (*IssuesApiService) GetV5UserIssues

func (a *IssuesApiService) GetV5UserIssues(ctx context.Context, localVarOptionals *GetV5UserIssuesOpts) ([]Issue, *http.Response, error)

func (*IssuesApiService) PatchV5ReposOwnerIssuesNumber

func (a *IssuesApiService) PatchV5ReposOwnerIssuesNumber(ctx context.Context, owner string, number string, body IssueUpdateParam) (Issue, *http.Response, error)

IssuesApiService 更新Issue 更新Issue

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param number Issue 编号(区分大小写,无需添加 # 号)
  • @param body 可选。Issue 内容

@return Issue

func (*IssuesApiService) PatchV5ReposOwnerRepoIssuesCommentsId

func (a *IssuesApiService) PatchV5ReposOwnerRepoIssuesCommentsId(ctx context.Context, owner string, repo string, id int32, body IssueCommentPatchParam) (Note, *http.Response, error)

IssuesApiService 更新Issue某条评论 更新Issue某条评论

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param repo 仓库路径(path)
  • @param id 评论的ID
  • @param body 必填。评论内容

@return Note

func (*IssuesApiService) PostV5ReposOwnerIssues

func (a *IssuesApiService) PostV5ReposOwnerIssues(ctx context.Context, owner string, title string, localVarOptionals *PostV5ReposOwnerIssuesOpts) (Issue, *http.Response, error)

func (*IssuesApiService) PostV5ReposOwnerRepoIssuesNumberComments

func (a *IssuesApiService) PostV5ReposOwnerRepoIssuesNumberComments(ctx context.Context, owner string, repo string, number string, body IssueCommentPostParam) (Note, *http.Response, error)

IssuesApiService 创建某个Issue评论 创建某个Issue评论

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param repo 仓库路径(path)
  • @param number Issue 编号(区分大小写,无需添加 # 号)
  • @param body Issue comment内容

@return Note

type Label

type Label struct {
	Id           int32  `json:"id,omitempty"`
	Name         string `json:"name,omitempty"`
	Color        string `json:"color,omitempty"`
	RepositoryId int32  `json:"repository_id,omitempty"`
	Url          string `json:"url,omitempty"`
}

获取企业某个标签

type LabelHook

type LabelHook struct {
	Id    int32  `json:"id,omitempty"`
	Name  string `json:"name,omitempty"`
	Color string `json:"color,omitempty"`
}

LabelHook : 标签, issue 和 pull request 的对应标签

func (*LabelHook) GetColor

func (l *LabelHook) GetColor() string

func (*LabelHook) GetName

func (l *LabelHook) GetName() string

type LabelPostParam

type LabelPostParam struct {
	// 用户授权码
	AccessToken string `json:"access_token,omitempty"`
	// 标签的名称,必选。
	Name string `json:"name,omitempty"`
	// 标签的颜色,为6位的数字,如: 000000,必选。
	Color string `json:"color,omitempty"`
}

type LabelsApiService

type LabelsApiService service

func (*LabelsApiService) DeleteV5ReposOwnerRepoIssuesNumberLabels

func (a *LabelsApiService) DeleteV5ReposOwnerRepoIssuesNumberLabels(ctx context.Context, owner string, repo string, number string, localVarOptionals *DeleteV5ReposOwnerRepoIssuesNumberLabelsOpts) (*http.Response, error)

func (*LabelsApiService) DeleteV5ReposOwnerRepoIssuesNumberLabelsName

func (a *LabelsApiService) DeleteV5ReposOwnerRepoIssuesNumberLabelsName(ctx context.Context, owner string, repo string, number string, name string, localVarOptionals *DeleteV5ReposOwnerRepoIssuesNumberLabelsNameOpts) (*http.Response, error)

func (*LabelsApiService) DeleteV5ReposOwnerRepoLabelsName

func (a *LabelsApiService) DeleteV5ReposOwnerRepoLabelsName(ctx context.Context, owner string, repo string, name string, localVarOptionals *DeleteV5ReposOwnerRepoLabelsNameOpts) (*http.Response, error)

func (*LabelsApiService) GetV5EnterprisesEnterpriseLabels

func (a *LabelsApiService) GetV5EnterprisesEnterpriseLabels(ctx context.Context, enterprise string, localVarOptionals *GetV5EnterprisesEnterpriseLabelsOpts) ([]Label, *http.Response, error)

func (*LabelsApiService) GetV5EnterprisesEnterpriseLabelsName

func (a *LabelsApiService) GetV5EnterprisesEnterpriseLabelsName(ctx context.Context, enterprise string, name string, localVarOptionals *GetV5EnterprisesEnterpriseLabelsNameOpts) (Label, *http.Response, error)

func (*LabelsApiService) GetV5ReposOwnerRepoIssuesNumberLabels

func (a *LabelsApiService) GetV5ReposOwnerRepoIssuesNumberLabels(ctx context.Context, owner string, repo string, number string, localVarOptionals *GetV5ReposOwnerRepoIssuesNumberLabelsOpts) ([]Label, *http.Response, error)

func (*LabelsApiService) GetV5ReposOwnerRepoLabels

func (a *LabelsApiService) GetV5ReposOwnerRepoLabels(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoLabelsOpts) ([]Label, *http.Response, error)

func (*LabelsApiService) GetV5ReposOwnerRepoLabelsName

func (a *LabelsApiService) GetV5ReposOwnerRepoLabelsName(ctx context.Context, owner string, repo string, name string, localVarOptionals *GetV5ReposOwnerRepoLabelsNameOpts) (Label, *http.Response, error)

func (*LabelsApiService) PatchV5ReposOwnerRepoLabelsOriginalName

func (a *LabelsApiService) PatchV5ReposOwnerRepoLabelsOriginalName(ctx context.Context, owner string, repo string, originalName string, localVarOptionals *PatchV5ReposOwnerRepoLabelsOriginalNameOpts) (Label, *http.Response, error)

func (*LabelsApiService) PostV5ReposOwnerRepoIssuesNumberLabels

func (a *LabelsApiService) PostV5ReposOwnerRepoIssuesNumberLabels(ctx context.Context, owner string, repo string, number string, body PullRequestLabelPostParam) ([]Label, *http.Response, error)

LabelsApiService 创建Issue标签 创建Issue标签 需要在请求的body里填上数组,元素为标签的名字。如: [\"performance\", \"bug\"]

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param repo 仓库路径(path)
  • @param number Issue 编号(区分大小写,无需添加 # 号)
  • @param body 必选,标签的内容

@return []Label

func (*LabelsApiService) PostV5ReposOwnerRepoLabels

func (a *LabelsApiService) PostV5ReposOwnerRepoLabels(ctx context.Context, owner string, repo string, body LabelPostParam) (Label, *http.Response, error)

LabelsApiService 创建仓库任务标签 创建仓库任务标签

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param repo 仓库路径(path)
  • @param body 必选,标签的内容

@return Label

func (*LabelsApiService) PutV5ReposOwnerRepoIssuesNumberLabels

func (a *LabelsApiService) PutV5ReposOwnerRepoIssuesNumberLabels(ctx context.Context, owner string, repo string, number string, body PullRequestLabelPostParam) ([]Label, *http.Response, error)

LabelsApiService 替换Issue所有标签 替换Issue所有标签 需要在请求的body里填上数组,元素为标签的名字。如: [\"performance\", \"bug\"]

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param repo 仓库路径(path)
  • @param number Issue 编号(区分大小写,无需添加 # 号)
  • @param body 必选,标签的内容

@return []Label

type Milestone

type Milestone struct {
	Url          string    `json:"url,omitempty"`
	HtmlUrl      string    `json:"html_url,omitempty"`
	Number       int32     `json:"number,omitempty"`
	RepositoryId int32     `json:"repository_id,omitempty"`
	State        string    `json:"state,omitempty"`
	Title        string    `json:"title,omitempty"`
	Description  string    `json:"description,omitempty"`
	UpdatedAt    time.Time `json:"updated_at,omitempty"`
	CreatedAt    time.Time `json:"created_at,omitempty"`
	OpenIssues   int32     `json:"open_issues,omitempty"`
	ClosedIssues int32     `json:"closed_issues,omitempty"`
	DueOn        string    `json:"due_on,omitempty"`
}

更新仓库里程碑

type MilestoneHook

type MilestoneHook struct {
	Id           int32     `json:"id,omitempty"`
	HtmlUrl      string    `json:"html_url,omitempty"`
	Number       int32     `json:"number,omitempty"`
	Title        string    `json:"title,omitempty"`
	Description  string    `json:"description,omitempty"`
	OpenIssues   int32     `json:"open_issues,omitempty"`
	ClosedIssues int32     `json:"closed_issues,omitempty"`
	State        string    `json:"state,omitempty"`
	CreatedAt    time.Time `json:"created_at,omitempty"`
	UpdatedAt    time.Time `json:"updated_at,omitempty"`
	DueOn        string    `json:"due_on,omitempty"`
}

MilestoneHook : 里程碑信息

func (*MilestoneHook) GetState

func (m *MilestoneHook) GetState() string

func (*MilestoneHook) GetTitle

func (m *MilestoneHook) GetTitle() string

type MilestonesApiService

type MilestonesApiService service

func (*MilestonesApiService) DeleteV5ReposOwnerRepoMilestonesNumber

func (a *MilestonesApiService) DeleteV5ReposOwnerRepoMilestonesNumber(ctx context.Context, owner string, repo string, number int32, localVarOptionals *DeleteV5ReposOwnerRepoMilestonesNumberOpts) (*http.Response, error)

func (*MilestonesApiService) GetV5ReposOwnerRepoMilestones

func (a *MilestonesApiService) GetV5ReposOwnerRepoMilestones(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoMilestonesOpts) ([]Milestone, *http.Response, error)

func (*MilestonesApiService) GetV5ReposOwnerRepoMilestonesNumber

func (a *MilestonesApiService) GetV5ReposOwnerRepoMilestonesNumber(ctx context.Context, owner string, repo string, number int32, localVarOptionals *GetV5ReposOwnerRepoMilestonesNumberOpts) (Milestone, *http.Response, error)

func (*MilestonesApiService) PatchV5ReposOwnerRepoMilestonesNumber

func (a *MilestonesApiService) PatchV5ReposOwnerRepoMilestonesNumber(ctx context.Context, owner string, repo string, number int32, title string, dueOn string, localVarOptionals *PatchV5ReposOwnerRepoMilestonesNumberOpts) (Milestone, *http.Response, error)

func (*MilestonesApiService) PostV5ReposOwnerRepoMilestones

func (a *MilestonesApiService) PostV5ReposOwnerRepoMilestones(ctx context.Context, owner string, repo string, title string, dueOn string, localVarOptionals *PostV5ReposOwnerRepoMilestonesOpts) (Milestone, *http.Response, error)

type MiscellaneousApiService

type MiscellaneousApiService service

func (*MiscellaneousApiService) GetV5Emojis

func (a *MiscellaneousApiService) GetV5Emojis(ctx context.Context, localVarOptionals *GetV5EmojisOpts) (*http.Response, error)

func (*MiscellaneousApiService) GetV5GitignoreTemplates

func (a *MiscellaneousApiService) GetV5GitignoreTemplates(ctx context.Context, localVarOptionals *GetV5GitignoreTemplatesOpts) (*http.Response, error)

func (*MiscellaneousApiService) GetV5GitignoreTemplatesName

func (a *MiscellaneousApiService) GetV5GitignoreTemplatesName(ctx context.Context, name string, localVarOptionals *GetV5GitignoreTemplatesNameOpts) (*http.Response, error)

func (*MiscellaneousApiService) GetV5GitignoreTemplatesNameRaw

func (a *MiscellaneousApiService) GetV5GitignoreTemplatesNameRaw(ctx context.Context, name string, localVarOptionals *GetV5GitignoreTemplatesNameRawOpts) (*http.Response, error)

func (*MiscellaneousApiService) GetV5Licenses

func (a *MiscellaneousApiService) GetV5Licenses(ctx context.Context, localVarOptionals *GetV5LicensesOpts) (*http.Response, error)

func (*MiscellaneousApiService) GetV5LicensesLicense

func (a *MiscellaneousApiService) GetV5LicensesLicense(ctx context.Context, license string, localVarOptionals *GetV5LicensesLicenseOpts) (*http.Response, error)

func (*MiscellaneousApiService) GetV5LicensesLicenseRaw

func (a *MiscellaneousApiService) GetV5LicensesLicenseRaw(ctx context.Context, license string, localVarOptionals *GetV5LicensesLicenseRawOpts) (*http.Response, error)

func (*MiscellaneousApiService) GetV5ReposOwnerRepoLicense

func (a *MiscellaneousApiService) GetV5ReposOwnerRepoLicense(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoLicenseOpts) (*http.Response, error)

func (*MiscellaneousApiService) PostV5Markdown

func (a *MiscellaneousApiService) PostV5Markdown(ctx context.Context, text string, localVarOptionals *PostV5MarkdownOpts) (*http.Response, error)

type Namespace

type Namespace struct {
	Id      int32          `json:"id,omitempty"`
	Type_   string         `json:"type,omitempty"`
	Name    string         `json:"name,omitempty"`
	Path    string         `json:"path,omitempty"`
	HtmlUrl string         `json:"html_url,omitempty"`
	Parent  *NamespaceMini `json:"parent,omitempty"`
}

获取授权用户的一个 Namespace

type NamespaceMini

type NamespaceMini struct {
	Id      int32  `json:"id,omitempty"`
	Type_   string `json:"type,omitempty"`
	Name    string `json:"name,omitempty"`
	Path    string `json:"path,omitempty"`
	HtmlUrl string `json:"html_url,omitempty"`
}

type NewFileParam

type NewFileParam struct {
	// 用户授权码
	AccessToken string `json:"access_token,omitempty"`
	// 文件内容, 要用 base64 编码
	Content string `json:"content,omitempty"`
	// 提交信息
	Message string `json:"message,omitempty"`
	// 分支名称。默认为仓库对默认分支
	Branch string `json:"branch,omitempty"`
	// Committer的名字,默认为当前用户的名字
	CommitterName string `json:"committer[name],omitempty"`
	// Committer的邮箱,默认为当前用户的邮箱
	CommitterEmail string `json:"committer[email],omitempty"`
	// Author的名字,默认为当前用户的名字
	AuthorName string `json:"author[name],omitempty"`
	// Author的邮箱,默认为当前用户的邮箱
	AuthorEmail string `json:"author[email],omitempty"`
}

type Note

type Note struct {
	Id        int32  `json:"id,omitempty"`
	Body      string `json:"body,omitempty"`
	BodyHtml  string `json:"body_html,omitempty"`
	User      *User  `json:"user,omitempty"`
	Source    string `json:"source,omitempty"`
	CreatedAt string `json:"created_at,omitempty"`
	Target    string `json:"target,omitempty"`
}

获取企业某个Issue所有评论

type NoteEvent

type NoteEvent struct {
	Action        *string          `json:"action,omitempty"`
	Comment       *NoteHook        `json:"comment,omitempty"`
	Repository    *ProjectHook     `json:"repository,omitempty"`
	Project       *ProjectHook     `json:"project,omitempty"`
	Author        *UserHook        `json:"author,omitempty"`
	Sender        *UserHook        `json:"sender,omitempty"`
	URL           *string          `json:"url,omitempty"`
	Note          *string          `json:"note,omitempty"`
	NoteableType  *string          `json:"noteable_type,omitempty"`
	NoteableID    int64            `json:"noteable_id,omitempty"`
	Title         *string          `json:"title,omitempty"`
	PerIID        *string          `json:"per_iid,omitempty"`
	ShortCommitID *string          `json:"short_commit_id,omitempty"`
	Enterprise    *EnterpriseHook  `json:"enterprise,omitempty"`
	PullRequest   *PullRequestHook `json:"pull_request,omitempty"`
	Issue         *IssueHook       `json:"issue,omitempty"`
	HookName      *string          `json:"hook_name,omitempty"`
	Password      *string          `json:"password,omitempty"`
}

func (*NoteEvent) GetAction

func (ne *NoteEvent) GetAction() string

func (*NoteEvent) GetAuthor

func (ne *NoteEvent) GetAuthor() *UserHook

func (*NoteEvent) GetComment

func (ne *NoteEvent) GetComment() *NoteHook

func (*NoteEvent) GetEnterprise

func (ne *NoteEvent) GetEnterprise() *EnterpriseHook

func (*NoteEvent) GetHookName

func (ne *NoteEvent) GetHookName() string

func (*NoteEvent) GetIssue

func (ne *NoteEvent) GetIssue() *IssueHook

func (*NoteEvent) GetNote

func (ne *NoteEvent) GetNote() string

func (*NoteEvent) GetNoteableType

func (ne *NoteEvent) GetNoteableType() string

func (*NoteEvent) GetPassword

func (ne *NoteEvent) GetPassword() string

func (*NoteEvent) GetPerIID

func (ne *NoteEvent) GetPerIID() string

func (*NoteEvent) GetProject

func (ne *NoteEvent) GetProject() *ProjectHook

func (*NoteEvent) GetPullRequest

func (ne *NoteEvent) GetPullRequest() *PullRequestHook

func (*NoteEvent) GetRepository

func (ne *NoteEvent) GetRepository() *ProjectHook

func (*NoteEvent) GetSender

func (ne *NoteEvent) GetSender() *UserHook

func (*NoteEvent) GetShortCommitID

func (ne *NoteEvent) GetShortCommitID() string

func (*NoteEvent) GetTitle

func (ne *NoteEvent) GetTitle() string

func (*NoteEvent) GetURL

func (ne *NoteEvent) GetURL() string

type NoteHook

type NoteHook struct {
	Id        int32     `json:"id,omitempty"`
	Body      string    `json:"body,omitempty"`
	User      *UserHook `json:"user,omitempty"`
	CreatedAt string    `json:"created_at,omitempty"`
	UpdatedAt string    `json:"updated_at,omitempty"`
	HtmlUrl   string    `json:"html_url,omitempty"`
	Position  string    `json:"position,omitempty"`
	CommitId  string    `json:"commit_id,omitempty"`
}

NoteHook : 评论信息

func (*NoteHook) GetBody

func (nh *NoteHook) GetBody() string

type OperateLog

type OperateLog struct {
	Id        string `json:"id,omitempty"`
	Icon      string `json:"icon,omitempty"`
	User      *User  `json:"user,omitempty"`
	Content   string `json:"content,omitempty"`
	CreatedAt string `json:"created_at,omitempty"`
}

获取某个Pull Request的操作日志

type OrganizationsApiService

type OrganizationsApiService service

func (*OrganizationsApiService) DeleteV5OrgsOrgMembershipsUsername

func (a *OrganizationsApiService) DeleteV5OrgsOrgMembershipsUsername(ctx context.Context, org string, username string, localVarOptionals *DeleteV5OrgsOrgMembershipsUsernameOpts) (*http.Response, error)

func (*OrganizationsApiService) DeleteV5UserMembershipsOrgsOrg

func (a *OrganizationsApiService) DeleteV5UserMembershipsOrgsOrg(ctx context.Context, org string, localVarOptionals *DeleteV5UserMembershipsOrgsOrgOpts) (*http.Response, error)

func (*OrganizationsApiService) GetV5OrgsOrg

func (a *OrganizationsApiService) GetV5OrgsOrg(ctx context.Context, org string, localVarOptionals *GetV5OrgsOrgOpts) (Group, *http.Response, error)

func (*OrganizationsApiService) GetV5OrgsOrgMembers

func (a *OrganizationsApiService) GetV5OrgsOrgMembers(ctx context.Context, org string, localVarOptionals *GetV5OrgsOrgMembersOpts) ([]UserBasic, *http.Response, error)

func (*OrganizationsApiService) GetV5OrgsOrgMembershipsUsername

func (a *OrganizationsApiService) GetV5OrgsOrgMembershipsUsername(ctx context.Context, org string, username string, localVarOptionals *GetV5OrgsOrgMembershipsUsernameOpts) (GroupMember, *http.Response, error)

func (*OrganizationsApiService) GetV5UserMembershipsOrgs

func (a *OrganizationsApiService) GetV5UserMembershipsOrgs(ctx context.Context, localVarOptionals *GetV5UserMembershipsOrgsOpts) ([]GroupMember, *http.Response, error)

func (*OrganizationsApiService) GetV5UserMembershipsOrgsOrg

func (a *OrganizationsApiService) GetV5UserMembershipsOrgsOrg(ctx context.Context, org string, localVarOptionals *GetV5UserMembershipsOrgsOrgOpts) (GroupMember, *http.Response, error)

func (*OrganizationsApiService) GetV5UserOrgs

func (a *OrganizationsApiService) GetV5UserOrgs(ctx context.Context, localVarOptionals *GetV5UserOrgsOpts) ([]Group, *http.Response, error)

func (*OrganizationsApiService) GetV5UsersUsernameOrgs

func (a *OrganizationsApiService) GetV5UsersUsernameOrgs(ctx context.Context, username string, localVarOptionals *GetV5UsersUsernameOrgsOpts) ([]Group, *http.Response, error)

func (*OrganizationsApiService) PatchV5OrgsOrg

func (a *OrganizationsApiService) PatchV5OrgsOrg(ctx context.Context, org string, localVarOptionals *PatchV5OrgsOrgOpts) (GroupDetail, *http.Response, error)

func (*OrganizationsApiService) PatchV5UserMembershipsOrgsOrg

func (a *OrganizationsApiService) PatchV5UserMembershipsOrgsOrg(ctx context.Context, org string, localVarOptionals *PatchV5UserMembershipsOrgsOrgOpts) (GroupMember, *http.Response, error)

func (*OrganizationsApiService) PostV5UsersOrganization

func (a *OrganizationsApiService) PostV5UsersOrganization(ctx context.Context, name string, org string, localVarOptionals *PostV5UsersOrganizationOpts) (Group, *http.Response, error)

func (*OrganizationsApiService) PutV5OrgsOrgMembershipsUsername

func (a *OrganizationsApiService) PutV5OrgsOrgMembershipsUsername(ctx context.Context, org string, username string, localVarOptionals *PutV5OrgsOrgMembershipsUsernameOpts) (GroupMember, *http.Response, error)

type PatchV5EnterprisesEnterpriseWeekReportIdOpts

type PatchV5EnterprisesEnterpriseWeekReportIdOpts struct {
	AccessToken optional.String
}

type PatchV5GistsGistIdCommentsIdOpts

type PatchV5GistsGistIdCommentsIdOpts struct {
	AccessToken optional.String
}

type PatchV5GistsIdOpts

type PatchV5GistsIdOpts struct {
	AccessToken optional.String
	Files       optional.Interface
	Description optional.String
	Public      optional.Bool
}

type PatchV5NotificationsMessagesIdOpts

type PatchV5NotificationsMessagesIdOpts struct {
	AccessToken optional.String
}

type PatchV5NotificationsThreadsIdOpts

type PatchV5NotificationsThreadsIdOpts struct {
	AccessToken optional.String
}

type PatchV5OrgsOrgOpts

type PatchV5OrgsOrgOpts struct {
	AccessToken optional.String
	Email       optional.String
	Location    optional.String
	Name        optional.String
	Description optional.String
	HtmlUrl     optional.String
}

type PatchV5ReposOwnerRepoCommentsIdOpts

type PatchV5ReposOwnerRepoCommentsIdOpts struct {
	AccessToken optional.String
}

type PatchV5ReposOwnerRepoHooksIdOpts

type PatchV5ReposOwnerRepoHooksIdOpts struct {
	AccessToken         optional.String
	Password            optional.String
	PushEvents          optional.Bool
	TagPushEvents       optional.Bool
	IssuesEvents        optional.Bool
	NoteEvents          optional.Bool
	MergeRequestsEvents optional.Bool
}

type PatchV5ReposOwnerRepoLabelsOriginalNameOpts

type PatchV5ReposOwnerRepoLabelsOriginalNameOpts struct {
	AccessToken optional.String
	Name        optional.String
	Color       optional.String
}

type PatchV5ReposOwnerRepoMilestonesNumberOpts

type PatchV5ReposOwnerRepoMilestonesNumberOpts struct {
	AccessToken optional.String
	State       optional.String
	Description optional.String
}

type PatchV5ReposOwnerRepoReleasesIdOpts

type PatchV5ReposOwnerRepoReleasesIdOpts struct {
	AccessToken optional.String
	Prerelease  optional.Bool
}

type PatchV5UserMembershipsOrgsOrgOpts

type PatchV5UserMembershipsOrgsOrgOpts struct {
	AccessToken optional.String
	Remark      optional.String
}

type PatchV5UserOpts

type PatchV5UserOpts struct {
	AccessToken optional.String
	Name        optional.String
	Blog        optional.String
	Weibo       optional.String
	Bio         optional.String
}

type PostV5EnterprisesEnterpriseMembersOpts

type PostV5EnterprisesEnterpriseMembersOpts struct {
	AccessToken optional.String
	Username    optional.String
	Email       optional.String
	Outsourced  optional.Bool
	Role        optional.String
	Name        optional.String
}

type PostV5EnterprisesEnterpriseReposOpts

type PostV5EnterprisesEnterpriseReposOpts struct {
	AccessToken       optional.String
	Description       optional.String
	Homepage          optional.String
	HasIssues         optional.Bool
	HasWiki           optional.Bool
	CanComment        optional.Bool
	AutoInit          optional.Bool
	GitignoreTemplate optional.String
	LicenseTemplate   optional.String
	Private           optional.Int32
	Outsourced        optional.Bool
	ProjectCreator    optional.String
	Members           optional.String
}

type PostV5EnterprisesEnterpriseWeekReportOpts

type PostV5EnterprisesEnterpriseWeekReportOpts struct {
	AccessToken optional.String
	Date        optional.String
}

type PostV5EnterprisesEnterpriseWeekReportsIdCommentOpts

type PostV5EnterprisesEnterpriseWeekReportsIdCommentOpts struct {
	AccessToken optional.String
}

type PostV5GistsGistIdCommentsOpts

type PostV5GistsGistIdCommentsOpts struct {
	AccessToken optional.String
}

type PostV5GistsIdForksOpts

type PostV5GistsIdForksOpts struct {
	AccessToken optional.String
}

type PostV5GistsOpts

type PostV5GistsOpts struct {
	AccessToken optional.String
	Public      optional.Bool
}

type PostV5MarkdownOpts

type PostV5MarkdownOpts struct {
	AccessToken optional.String
}

type PostV5NotificationsMessagesOpts

type PostV5NotificationsMessagesOpts struct {
	AccessToken optional.String
}

type PostV5ReposOwnerIssuesOpts

type PostV5ReposOwnerIssuesOpts struct {
	AccessToken optional.String
	Repo        optional.String
	IssueType   optional.String
	Body        optional.String
	Assignee    optional.String
	Milestone   optional.Int32
	Labels      optional.String
	Program     optional.String
}

type PostV5ReposOwnerRepoCommitsShaCommentsOpts

type PostV5ReposOwnerRepoCommitsShaCommentsOpts struct {
	AccessToken optional.String
	Path        optional.String
	Position    optional.Int32
}

type PostV5ReposOwnerRepoForksOpts

type PostV5ReposOwnerRepoForksOpts struct {
	AccessToken  optional.String
	Organization optional.String
}

type PostV5ReposOwnerRepoHooksIdTestsOpts

type PostV5ReposOwnerRepoHooksIdTestsOpts struct {
	AccessToken optional.String
}

type PostV5ReposOwnerRepoHooksOpts

type PostV5ReposOwnerRepoHooksOpts struct {
	AccessToken         optional.String
	Password            optional.String
	PushEvents          optional.Bool
	TagPushEvents       optional.Bool
	IssuesEvents        optional.Bool
	NoteEvents          optional.Bool
	MergeRequestsEvents optional.Bool
}

type PostV5ReposOwnerRepoKeysOpts

type PostV5ReposOwnerRepoKeysOpts struct {
	AccessToken optional.String
}

type PostV5ReposOwnerRepoMilestonesOpts

type PostV5ReposOwnerRepoMilestonesOpts struct {
	AccessToken optional.String
	State       optional.String
	Description optional.String
}

type PostV5ReposOwnerRepoPagesBuildsOpts

type PostV5ReposOwnerRepoPagesBuildsOpts struct {
	AccessToken optional.String
}

type PostV5ReposOwnerRepoPullsNumberTestersOpts

type PostV5ReposOwnerRepoPullsNumberTestersOpts struct {
	AccessToken optional.String
}

type PostV5ReposOwnerRepoReleasesOpts

type PostV5ReposOwnerRepoReleasesOpts struct {
	AccessToken optional.String
	Prerelease  optional.Bool
}

type PostV5UserKeysOpts

type PostV5UserKeysOpts struct {
	AccessToken optional.String
}

type PostV5UserReposOpts

type PostV5UserReposOpts struct {
	AccessToken       optional.String
	Description       optional.String
	Homepage          optional.String
	HasIssues         optional.Bool
	HasWiki           optional.Bool
	CanComment        optional.Bool
	AutoInit          optional.Bool
	GitignoreTemplate optional.String
	LicenseTemplate   optional.String
	Private           optional.Bool
}

type PostV5UsersOrganizationOpts

type PostV5UsersOrganizationOpts struct {
	AccessToken optional.String
	Description optional.String
}

type ProgramBasic

type ProgramBasic struct {
	Id          string `json:"id,omitempty"`
	Name        string `json:"name,omitempty"`
	Description string `json:"description,omitempty"`
	Assignee    string `json:"assignee,omitempty"`
	Author      string `json:"author,omitempty"`
}

type Project

type Project struct {
	Id                  int32      `json:"id,omitempty"`
	FullName            string     `json:"full_name,omitempty"`
	HumanName           string     `json:"human_name,omitempty"`
	Url                 string     `json:"url,omitempty"`
	Namespace           *Namespace `json:"namespace,omitempty"`
	Path                string     `json:"path,omitempty"`
	Name                string     `json:"name,omitempty"`
	Owner               *UserBasic `json:"owner,omitempty"`
	Description         string     `json:"description,omitempty"`
	Private             bool       `json:"private,omitempty"`
	Public              bool       `json:"public,omitempty"`
	Internal            bool       `json:"internal,omitempty"`
	Fork                bool       `json:"fork,omitempty"`
	HtmlUrl             string     `json:"html_url,omitempty"`
	SshUrl              string     `json:"ssh_url,omitempty"`
	ForksUrl            string     `json:"forks_url,omitempty"`
	KeysUrl             string     `json:"keys_url,omitempty"`
	CollaboratorsUrl    string     `json:"collaborators_url,omitempty"`
	HooksUrl            string     `json:"hooks_url,omitempty"`
	BranchesUrl         string     `json:"branches_url,omitempty"`
	TagsUrl             string     `json:"tags_url,omitempty"`
	BlobsUrl            string     `json:"blobs_url,omitempty"`
	StargazersUrl       string     `json:"stargazers_url,omitempty"`
	ContributorsUrl     string     `json:"contributors_url,omitempty"`
	CommitsUrl          string     `json:"commits_url,omitempty"`
	CommentsUrl         string     `json:"comments_url,omitempty"`
	IssueCommentUrl     string     `json:"issue_comment_url,omitempty"`
	IssuesUrl           string     `json:"issues_url,omitempty"`
	PullsUrl            string     `json:"pulls_url,omitempty"`
	MilestonesUrl       string     `json:"milestones_url,omitempty"`
	NotificationsUrl    string     `json:"notifications_url,omitempty"`
	LabelsUrl           string     `json:"labels_url,omitempty"`
	ReleasesUrl         string     `json:"releases_url,omitempty"`
	Recommend           bool       `json:"recommend,omitempty"`
	Homepage            string     `json:"homepage,omitempty"`
	Language            string     `json:"language,omitempty"`
	ForksCount          int32      `json:"forks_count,omitempty"`
	StargazersCount     int32      `json:"stargazers_count,omitempty"`
	WatchersCount       int32      `json:"watchers_count,omitempty"`
	DefaultBranch       string     `json:"default_branch,omitempty"`
	OpenIssuesCount     int32      `json:"open_issues_count,omitempty"`
	HasIssues           bool       `json:"has_issues,omitempty"`
	HasWiki             bool       `json:"has_wiki,omitempty"`
	CanComment          bool       `json:"can_comment,omitempty"`
	PullRequestsEnabled bool       `json:"pull_requests_enabled,omitempty"`
	HasPage             bool       `json:"has_page,omitempty"`
	License             string     `json:"license,omitempty"`
	Outsourced          bool       `json:"outsourced,omitempty"`
	ProjectCreator      string     `json:"project_creator,omitempty"`
	Members             []string   `json:"members,omitempty"`
	PushedAt            string     `json:"pushed_at,omitempty"`
	CreatedAt           string     `json:"created_at,omitempty"`
	UpdatedAt           string     `json:"updated_at,omitempty"`
	Parent              *Project   `json:"parent,omitempty"`
	Paas                string     `json:"paas,omitempty"`
	Stared              string     `json:"stared,omitempty"`
	Watched             string     `json:"watched,omitempty"`
	Permission          string     `json:"permission,omitempty"`
	Relation            string     `json:"relation,omitempty"`
}

搜索仓库

type ProjectBasic

type ProjectBasic struct {
	Id          int32        `json:"id,omitempty"`
	FullName    string       `json:"full_name,omitempty"`
	HumanName   string       `json:"human_name,omitempty"`
	Url         string       `json:"url,omitempty"`
	Namespace   *interface{} `json:"namespace,omitempty"`
	Path        string       `json:"path,omitempty"`
	Name        string       `json:"name,omitempty"`
	Owner       *UserBasic   `json:"owner,omitempty"`
	Description string       `json:"description,omitempty"`
	Private     bool         `json:"private,omitempty"`
	Public      bool         `json:"public,omitempty"`
	Internal    bool         `json:"internal,omitempty"`
	Fork        bool         `json:"fork,omitempty"`
	HtmlUrl     string       `json:"html_url,omitempty"`
	SshUrl      string       `json:"ssh_url,omitempty"`
}

type ProjectHook

type ProjectHook struct {
	Id              int32     `json:"id,omitempty"`
	Name            string    `json:"name,omitempty"`
	Path            string    `json:"path,omitempty"`
	FullName        string    `json:"full_name,omitempty"`
	Owner           *UserHook `json:"owner,omitempty"`
	Private         bool      `json:"private,omitempty"`
	HtmlUrl         string    `json:"html_url,omitempty"`
	Url             string    `json:"url,omitempty"`
	Description     string    `json:"description,omitempty"`
	Fork            bool      `json:"fork,omitempty"`
	PushedAt        string    `json:"pushed_at,omitempty"`
	CreatedAt       string    `json:"created_at,omitempty"`
	UpdatedAt       string    `json:"updated_at,omitempty"`
	SshUrl          string    `json:"ssh_url,omitempty"`
	GitUrl          string    `json:"git_url,omitempty"`
	CloneUrl        string    `json:"clone_url,omitempty"`
	SvnUrl          string    `json:"svn_url,omitempty"`
	GitHttpUrl      string    `json:"git_http_url,omitempty"`
	GitSshUrl       string    `json:"git_ssh_url,omitempty"`
	GitSvnUrl       string    `json:"git_svn_url,omitempty"`
	Homepage        string    `json:"homepage,omitempty"`
	StargazersCount int32     `json:"stargazers_count,omitempty"`
	WatchersCount   int32     `json:"watchers_count,omitempty"`
	ForksCount      int32     `json:"forks_count,omitempty"`
	Language        string    `json:"language,omitempty"`

	HasIssues bool   `json:"has_issues,omitempty"`
	HasWiki   bool   `json:"has_wiki,omitempty"`
	HasPage   bool   `json:"has_pages,omitempty"`
	License   string `json:"license,omitempty"`

	OpenIssuesCount int32  `json:"open_issues_count,omitempty"`
	DefaultBranch   string `json:"default_branch,omitempty"`
	Namespace       string `json:"namespace,omitempty"`

	NameWithNamespace string `json:"name_with_namespace,omitempty"`
	PathWithNamespace string `json:"path_with_namespace,omitempty"`
}

ProjectHook : project 信息

func (*ProjectHook) GetNameSpace

func (pj *ProjectHook) GetNameSpace() string

func (*ProjectHook) GetOwner

func (pj *ProjectHook) GetOwner() *UserHook

func (*ProjectHook) GetOwnerAndRepo

func (pj *ProjectHook) GetOwnerAndRepo() (string, string)

func (*ProjectHook) GetPath

func (pj *ProjectHook) GetPath() string

type ProjectMember

type ProjectMember struct {
	Id                int32                          `json:"id,omitempty"`
	Login             string                         `json:"login,omitempty"`
	Name              string                         `json:"name,omitempty"`
	AvatarUrl         string                         `json:"avatar_url,omitempty"`
	Url               string                         `json:"url,omitempty"`
	HtmlUrl           string                         `json:"html_url,omitempty"`
	FollowersUrl      string                         `json:"followers_url,omitempty"`
	FollowingUrl      string                         `json:"following_url,omitempty"`
	GistsUrl          string                         `json:"gists_url,omitempty"`
	StarredUrl        string                         `json:"starred_url,omitempty"`
	SubscriptionsUrl  string                         `json:"subscriptions_url,omitempty"`
	OrganizationsUrl  string                         `json:"organizations_url,omitempty"`
	ReposUrl          string                         `json:"repos_url,omitempty"`
	EventsUrl         string                         `json:"events_url,omitempty"`
	ReceivedEventsUrl string                         `json:"received_events_url,omitempty"`
	Type_             string                         `json:"type,omitempty"`
	SiteAdmin         string                         `json:"site_admin,omitempty"`
	Permissions       *ProjectMemberPermissionDetail `json:"permissions,omitempty"`
}

添加仓库成员

type ProjectMemberPermission

type ProjectMemberPermission struct {
	Id                int32  `json:"id,omitempty"`
	Login             string `json:"login,omitempty"`
	Name              string `json:"name,omitempty"`
	AvatarUrl         string `json:"avatar_url,omitempty"`
	Url               string `json:"url,omitempty"`
	HtmlUrl           string `json:"html_url,omitempty"`
	FollowersUrl      string `json:"followers_url,omitempty"`
	FollowingUrl      string `json:"following_url,omitempty"`
	GistsUrl          string `json:"gists_url,omitempty"`
	StarredUrl        string `json:"starred_url,omitempty"`
	SubscriptionsUrl  string `json:"subscriptions_url,omitempty"`
	OrganizationsUrl  string `json:"organizations_url,omitempty"`
	ReposUrl          string `json:"repos_url,omitempty"`
	EventsUrl         string `json:"events_url,omitempty"`
	ReceivedEventsUrl string `json:"received_events_url,omitempty"`
	Type_             string `json:"type,omitempty"`
	SiteAdmin         string `json:"site_admin,omitempty"`
	Permission        string `json:"permission,omitempty"`
}

查看仓库成员的权限

type ProjectMemberPermissionDetail

type ProjectMemberPermissionDetail struct {
	Pull  bool `json:"pull,omitempty"`
	Push  bool `json:"push,omitempty"`
	Admin bool `json:"admin,omitempty"`
}

type ProjectMemberPutParam

type ProjectMemberPutParam struct {
	// 用户授权码
	AccessToken string `json:"access_token,omitempty"`
	// 成员权限: 拉代码(pull),推代码(push),管理员(admin)。默认: push
	Permission string `json:"permission,omitempty"`
}

create project member

type PullRequest

type PullRequest struct {
	Id                int32       `json:"id,omitempty"`
	Url               string      `json:"url,omitempty"`
	HtmlUrl           string      `json:"html_url,omitempty"`
	DiffUrl           string      `json:"diff_url,omitempty"`
	PatchUrl          string      `json:"patch_url,omitempty"`
	IssueUrl          string      `json:"issue_url,omitempty"`
	CommitsUrl        string      `json:"commits_url,omitempty"`
	ReviewCommentsUrl string      `json:"review_comments_url,omitempty"`
	ReviewCommentUrl  string      `json:"review_comment_url,omitempty"`
	CommentsUrl       string      `json:"comments_url,omitempty"`
	StatusesUrl       string      `json:"statuses_url,omitempty"`
	AssigneesNumber   int32       `json:"assignees_number,omitempty"`
	TestersNumber     int32       `json:"testers_number,omitempty"`
	Number            int32       `json:"number,omitempty"`
	State             string      `json:"state,omitempty"`
	Title             string      `json:"title,omitempty"`
	Body              string      `json:"body,omitempty"`
	BodyHtml          string      `json:"body_html,omitempty"`
	Assignees         []UserBasic `json:"assignees,omitempty"`
	Testers           []UserBasic `json:"testers,omitempty"`
	Milestone         *Milestone  `json:"milestone,omitempty"`
	Labels            []Label     `json:"labels,omitempty"`
	Locked            string      `json:"locked,omitempty"`
	CreatedAt         string      `json:"created_at,omitempty"`
	UpdatedAt         string      `json:"updated_at,omitempty"`
	ClosedAt          string      `json:"closed_at,omitempty"`
	MergedAt          string      `json:"merged_at,omitempty"`
	Mergeable         bool        `json:"mergeable,omitempty"`
	Head              *BasicInfo  `json:"head,omitempty"`
	Base              *BasicInfo  `json:"base,omitempty"`
	Links             string      `json:"_links,omitempty"`
	User              *UserBasic  `json:"user,omitempty"`
	Comments          int32       `json:"comments,omitempty"`
	Commits           int32       `json:"commits,omitempty"`
	Additions         int32       `json:"additions,omitempty"`
	Deletions         int32       `json:"deletions,omitempty"`
	ChangedFiles      int32       `json:"changed_files,omitempty"`
}

取消用户测试 Pull Request

type PullRequestAssigneePostParam

type PullRequestAssigneePostParam struct {
	// 用户授权码
	AccessToken string `json:"access_token,omitempty"`
	// 用户的个人空间地址, 以 , 分隔
	Assignees string `json:"assignees,omitempty"`
}

assign pull request

type PullRequestCommentPatchParam

type PullRequestCommentPatchParam struct {
	// 用户授权码
	AccessToken string `json:"access_token,omitempty"`
	// 必填。评论内容
	Body string `json:"body,omitempty"`
}

edit pull request comment

type PullRequestCommentPostParam

type PullRequestCommentPostParam struct {
	// 用户授权码
	AccessToken string `json:"access_token,omitempty"`
	// 必填。评论内容
	Body string `json:"body,omitempty"`
	// 可选。PR代码评论的commit id
	CommitId string `json:"commit_id,omitempty"`
	// 可选。PR代码评论的文件名
	Path string `json:"path,omitempty"`
	// 可选。PR代码评论diff中的行数
	Position int32 `json:"position,omitempty"`
}

create pull request comment

type PullRequestComments

type PullRequestComments struct {
	Url              string     `json:"url,omitempty"`
	Id               int32      `json:"id,omitempty"`
	Path             string     `json:"path,omitempty"`
	Position         string     `json:"position,omitempty"`
	OriginalPosition string     `json:"original_position,omitempty"`
	CommitId         string     `json:"commit_id,omitempty"`
	OriginalCommitId string     `json:"original_commit_id,omitempty"`
	User             *UserBasic `json:"user,omitempty"`
	Body             string     `json:"body,omitempty"`
	CreatedAt        string     `json:"created_at,omitempty"`
	UpdatedAt        string     `json:"updated_at,omitempty"`
	HtmlUrl          string     `json:"html_url,omitempty"`
	PullRequestUrl   string     `json:"pull_request_url,omitempty"`
	Links            string     `json:"_links,omitempty"`
}

编辑评论

type PullRequestCommits

type PullRequestCommits struct {
	Url         string      `json:"url,omitempty"`
	Sha         string      `json:"sha,omitempty"`
	HtmlUrl     string      `json:"html_url,omitempty"`
	CommentsUrl string      `json:"comments_url,omitempty"`
	Commit      *GitCommit  `json:"commit,omitempty"`
	Author      *UserBasic  `json:"author,omitempty"`
	Committer   *UserBasic  `json:"committer,omitempty"`
	Parents     *CommitTree `json:"parents,omitempty"`
}

获取某Pull Request的所有Commit信息。最多显示250条Commit

type PullRequestEvent

type PullRequestEvent struct {
	Action         *string          `json:"action,omitempty"`
	ActionDesc     *string          `json:"action_desc,omitempty"`
	PullRequest    *PullRequestHook `json:"pull_request,omitempty"`
	Number         int64            `json:"number,omitempty"`
	IID            int64            `json:"iid,omitempty"`
	Title          *string          `json:"title,omitempty"`
	Body           *string          `json:"body,omitempty"`
	State          *string          `json:"state,omitempty"`
	MergeStatus    *string          `json:"merge_status,omitempty"`
	MergeCommitSha *string          `json:"merge_commit_sha,omitempty"`
	URL            *string          `json:"url,omitempty"`
	SourceBranch   *string          `json:"source_branch,omitempty"`
	SourceRepo     *RepoInfo        `json:"source_repo,omitempty"`
	TargetBranch   *string          `json:"target_branch,omitempty"`
	TargetRepo     *RepoInfo        `json:"target_repo,omitempty"`
	Project        *ProjectHook     `json:"project,omitempty"`
	Repository     *ProjectHook     `json:"repository,omitempty"`
	Author         *UserHook        `json:"author,omitempty"`
	UpdatedBy      *UserHook        `json:"updated_by,omitempty"`
	Sender         *UserHook        `json:"sender,omitempty"`
	TargetUser     *UserHook        `json:"target_user,omitempty"`
	Enterprise     *EnterpriseHook  `json:"enterprise,omitempty"`
	HookName       *string          `json:"hook_name,omitempty"`
	Password       *string          `json:"password,omitempty"`
}

func (*PullRequestEvent) GetAction

func (p *PullRequestEvent) GetAction() string

func (*PullRequestEvent) GetActionDesc

func (p *PullRequestEvent) GetActionDesc() string

func (*PullRequestEvent) GetAuthor

func (p *PullRequestEvent) GetAuthor() *UserHook

func (*PullRequestEvent) GetBody

func (p *PullRequestEvent) GetBody() string

func (*PullRequestEvent) GetEnterprise

func (p *PullRequestEvent) GetEnterprise() *EnterpriseHook

func (*PullRequestEvent) GetHookName

func (p *PullRequestEvent) GetHookName() string

func (*PullRequestEvent) GetMergeCommitSha

func (p *PullRequestEvent) GetMergeCommitSha() string

func (*PullRequestEvent) GetMergeStatus

func (p *PullRequestEvent) GetMergeStatus() string

func (*PullRequestEvent) GetPassword

func (p *PullRequestEvent) GetPassword() string

func (*PullRequestEvent) GetProject

func (p *PullRequestEvent) GetProject() *ProjectHook

func (*PullRequestEvent) GetPullRequest

func (p *PullRequestEvent) GetPullRequest() *PullRequestHook

func (*PullRequestEvent) GetRepository

func (p *PullRequestEvent) GetRepository() *ProjectHook

func (*PullRequestEvent) GetSender

func (p *PullRequestEvent) GetSender() *UserHook

func (*PullRequestEvent) GetSourceBranch

func (p *PullRequestEvent) GetSourceBranch() string

func (*PullRequestEvent) GetSourceRepo

func (p *PullRequestEvent) GetSourceRepo() *RepoInfo

func (*PullRequestEvent) GetState

func (p *PullRequestEvent) GetState() string

func (*PullRequestEvent) GetTargetBranch

func (p *PullRequestEvent) GetTargetBranch() string

func (*PullRequestEvent) GetTargetRepo

func (p *PullRequestEvent) GetTargetRepo() *RepoInfo

func (*PullRequestEvent) GetTargetUser

func (p *PullRequestEvent) GetTargetUser() *UserHook

func (*PullRequestEvent) GetTitle

func (p *PullRequestEvent) GetTitle() string

func (*PullRequestEvent) GetURL

func (p *PullRequestEvent) GetURL() string

func (*PullRequestEvent) GetUpdatedBy

func (p *PullRequestEvent) GetUpdatedBy() *UserHook

type PullRequestFilePath

type PullRequestFilePath struct {
	Diff        string `json:"diff,omitempty"`
	NewPath     string `json:"new_path,omitempty"`
	OldPath     string `json:"old_path,omitempty"`
	AMode       string `json:"a_mode,omitempty"`
	BMode       string `json:"b_mode,omitempty"`
	NewFile     bool   `json:"new_file,omitempty"`
	RenamedFile bool   `json:"renamed_file,omitempty"`
	DeletedFile bool   `json:"deleted_file,omitempty"`
	TooLarge    bool   `json:"too_large,omitempty"`
}

单个文件的patch信息

type PullRequestFiles

type PullRequestFiles struct {
	Sha       string               `json:"sha,omitempty"`
	Filename  string               `json:"filename,omitempty"`
	Status    string               `json:"status,omitempty"`
	Additions string               `json:"additions,omitempty"`
	Deletions string               `json:"deletions,omitempty"`
	BlobUrl   string               `json:"blob_url,omitempty"`
	RawUrl    string               `json:"raw_url,omitempty"`
	Patch     *PullRequestFilePath `json:"patch,omitempty"`
}

Pull Request Commit文件列表。最多显示300条diff

type PullRequestHook

type PullRequestHook struct {
	Id                 int32          `json:"id,omitempty"`
	Number             int32          `json:"number,omitempty"`
	State              string         `json:"state,omitempty"`
	HtmlUrl            string         `json:"html_url,omitempty"`
	DiffUrl            string         `json:"diff_url,omitempty"`
	PatchUrl           string         `json:"patch_url,omitempty"`
	Title              string         `json:"title,omitempty"`
	Body               string         `json:"body,omitempty"`
	StaleLabels        []LabelHook    `json:"stale_labels,omitempty"`
	Labels             []LabelHook    `json:"labels,omitempty"`
	CreatedAt          string         `json:"created_at,omitempty"`
	UpdatedAt          string         `json:"updated_at,omitempty"`
	ClosedAt           string         `json:"closed_at,omitempty"`
	MergedAt           string         `json:"merged_at,omitempty"`
	MergeCommitSha     string         `json:"merge_commit_sha,omitempty"`
	MergeReferenceName string         `json:"merge_reference_name,omitempty"`
	User               *UserHook      `json:"user,omitempty"`
	Assignee           *UserHook      `json:"assignee,omitempty"`
	Assignees          []UserHook     `json:"assignees,omitempty"`
	Tester             []UserHook     `json:"tester,omitempty"`
	Testers            []UserHook     `json:"testers,omitempty"`
	NeedTest           bool           `json:"need_test,omitempty"`
	NeedReview         bool           `json:"need_review,omitempty"`
	Milestone          *MilestoneHook `json:"milestone,omitempty"`
	Head               *BranchHook    `json:"head,omitempty"`
	Base               *BranchHook    `json:"base,omitempty"`
	Merged             bool           `json:"merged,omitempty"`
	Mergeable          bool           `json:"mergeable,omitempty"`
	MergeStatus        string         `json:"merge_status,omitempty"`
	UpdatedBy          *UserHook      `json:"updated_by,omitempty"`
	Comments           int32          `json:"comments,omitempty"`
	Commits            int32          `json:"commits,omitempty"`
	Additions          int32          `json:"additions,omitempty"`
	Deletions          int32          `json:"deletions,omitempty"`
	ChangedFiles       int32          `json:"changed_files,omitempty"`
}

PullRequestHook : PR 信息

func (*PullRequestHook) GetAssignee

func (ph *PullRequestHook) GetAssignee() *UserHook

func (*PullRequestHook) GetBase

func (ph *PullRequestHook) GetBase() *BranchHook

func (*PullRequestHook) GetHead

func (ph *PullRequestHook) GetHead() *BranchHook

func (*PullRequestHook) GetMergeable

func (ph *PullRequestHook) GetMergeable() bool

func (*PullRequestHook) GetMilestone

func (ph *PullRequestHook) GetMilestone() *MilestoneHook

func (*PullRequestHook) GetNeedReview

func (ph *PullRequestHook) GetNeedReview() bool

func (*PullRequestHook) GetNeedTest

func (ph *PullRequestHook) GetNeedTest() bool

func (*PullRequestHook) GetNumber

func (ph *PullRequestHook) GetNumber() int32

func (*PullRequestHook) GetUpdatedBy

func (ph *PullRequestHook) GetUpdatedBy() *UserHook

func (*PullRequestHook) GetUser

func (ph *PullRequestHook) GetUser() *UserHook

type PullRequestLabelPostParam

type PullRequestLabelPostParam struct {
	// 用户授权码
	AccessToken string `json:"access_token,omitempty"`
	// 标签名数组,如: [\"feat\", \"bug\"]
	Body []string `json:"body,omitempty"`
}

create pull request label

type PullRequestMergePutParam

type PullRequestMergePutParam struct {
	// 用户授权码
	AccessToken string `json:"access_token,omitempty"`
	// 可选。合并PR的方法,merge(合并所有提交)和 squash(扁平化分支合并)。默认为merge。
	MergeMethod string `json:"merge_method,omitempty"`
	// 可选。合并PR后是否删除源分支,默认false(不删除)
	PruneSourceBranch bool `json:"prune_source_branch,omitempty"`
	// 可选。合并标题,默认为PR的标题
	Title string `json:"title,omitempty"`
	// 可选。合并描述,默认为 \"Merge pull request !{pr_id} from {author}/{source_branch}\",与页面显示的默认一致。
	Description string `json:"description,omitempty"`
}

merge pull request parameter

type PullRequestUpdateParam

type PullRequestUpdateParam struct {
	// 用户授权码
	AccessToken string `json:"access_token,omitempty"`
	// 可选。Pull Request 标题
	Title string `json:"title,omitempty"`
	// 可选。Pull Request 内容
	Body string `json:"body,omitempty"`
	// 可选。Pull Request 状态
	State string `json:"state,omitempty"`
	// 可选。里程碑序号(id)
	MilestoneNumber int32 `json:"milestone_number,omitempty"`
	// 用逗号分开的标签,名称要求长度在 2-20 之间且非特殊字符。如: bug,performance
	Labels string `json:"labels,omitempty"`
	// 最少审查人数
	// change the int32 to *int32 manually, in order to pass 0
	AssigneesNumber *int32 `json:"assignees_number,omitempty"`
	// 最少测试人员
	// change the int32 to *int32 manually, in order to pass 0
	TestersNumber *int32 `json:"testers_number,omitempty"`
}

update pull request information

type PullRequestsApiService

type PullRequestsApiService service

func (*PullRequestsApiService) DeleteV5ReposOwnerRepoPullsCommentsId

func (a *PullRequestsApiService) DeleteV5ReposOwnerRepoPullsCommentsId(ctx context.Context, owner string, repo string, id int32, localVarOptionals *DeleteV5ReposOwnerRepoPullsCommentsIdOpts) (*http.Response, error)

func (*PullRequestsApiService) DeleteV5ReposOwnerRepoPullsLabel

func (a *PullRequestsApiService) DeleteV5ReposOwnerRepoPullsLabel(ctx context.Context, owner string, repo string, number int32, name string, localVarOptionals *DeleteV5ReposOwnerRepoPullsLabelOpts) (*http.Response, error)

func (*PullRequestsApiService) DeleteV5ReposOwnerRepoPullsNumberAssignees

func (a *PullRequestsApiService) DeleteV5ReposOwnerRepoPullsNumberAssignees(ctx context.Context, owner string, repo string, number int32, assignees string, localVarOptionals *DeleteV5ReposOwnerRepoPullsNumberAssigneesOpts) (PullRequest, *http.Response, error)

func (*PullRequestsApiService) DeleteV5ReposOwnerRepoPullsNumberTesters

func (a *PullRequestsApiService) DeleteV5ReposOwnerRepoPullsNumberTesters(ctx context.Context, owner string, repo string, number int32, testers string, localVarOptionals *DeleteV5ReposOwnerRepoPullsNumberTestersOpts) (PullRequest, *http.Response, error)

func (*PullRequestsApiService) GetV5ReposOwnerRepoPulls

func (a *PullRequestsApiService) GetV5ReposOwnerRepoPulls(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoPullsOpts) ([]PullRequest, *http.Response, error)

func (*PullRequestsApiService) GetV5ReposOwnerRepoPullsComments

func (a *PullRequestsApiService) GetV5ReposOwnerRepoPullsComments(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoPullsCommentsOpts) ([]PullRequestComments, *http.Response, error)

func (*PullRequestsApiService) GetV5ReposOwnerRepoPullsCommentsId

func (a *PullRequestsApiService) GetV5ReposOwnerRepoPullsCommentsId(ctx context.Context, owner string, repo string, id int32, localVarOptionals *GetV5ReposOwnerRepoPullsCommentsIdOpts) (PullRequestComments, *http.Response, error)

func (*PullRequestsApiService) GetV5ReposOwnerRepoPullsNumber

func (a *PullRequestsApiService) GetV5ReposOwnerRepoPullsNumber(ctx context.Context, owner string, repo string, number int32, localVarOptionals *GetV5ReposOwnerRepoPullsNumberOpts) (PullRequest, *http.Response, error)

func (*PullRequestsApiService) GetV5ReposOwnerRepoPullsNumberComments

func (a *PullRequestsApiService) GetV5ReposOwnerRepoPullsNumberComments(ctx context.Context, owner string, repo string, number int32, localVarOptionals *GetV5ReposOwnerRepoPullsNumberCommentsOpts) ([]PullRequestComments, *http.Response, error)

func (*PullRequestsApiService) GetV5ReposOwnerRepoPullsNumberCommits

func (a *PullRequestsApiService) GetV5ReposOwnerRepoPullsNumberCommits(ctx context.Context, owner string, repo string, number int32, localVarOptionals *GetV5ReposOwnerRepoPullsNumberCommitsOpts) ([]PullRequestCommits, *http.Response, error)

func (*PullRequestsApiService) GetV5ReposOwnerRepoPullsNumberFiles

func (a *PullRequestsApiService) GetV5ReposOwnerRepoPullsNumberFiles(ctx context.Context, owner string, repo string, number int32, localVarOptionals *GetV5ReposOwnerRepoPullsNumberFilesOpts) ([]PullRequestFiles, *http.Response, error)

func (*PullRequestsApiService) GetV5ReposOwnerRepoPullsNumberIssues

func (a *PullRequestsApiService) GetV5ReposOwnerRepoPullsNumberIssues(ctx context.Context, owner string, repo string, number int32, localVarOptionals *GetV5ReposOwnerRepoPullsNumberIssuesOpts) ([]Issue, *http.Response, error)

func (*PullRequestsApiService) GetV5ReposOwnerRepoPullsNumberLabels

func (a *PullRequestsApiService) GetV5ReposOwnerRepoPullsNumberLabels(ctx context.Context, owner string, repo string, number int32, localVarOptionals *GetV5ReposOwnerRepoPullsNumberLabelsOpts) ([]Label, *http.Response, error)

func (*PullRequestsApiService) GetV5ReposOwnerRepoPullsNumberMerge

func (a *PullRequestsApiService) GetV5ReposOwnerRepoPullsNumberMerge(ctx context.Context, owner string, repo string, number int32, localVarOptionals *GetV5ReposOwnerRepoPullsNumberMergeOpts) (*http.Response, error)

func (*PullRequestsApiService) GetV5ReposOwnerRepoPullsNumberOperateLogs

func (a *PullRequestsApiService) GetV5ReposOwnerRepoPullsNumberOperateLogs(ctx context.Context, owner string, repo string, number int32, localVarOptionals *GetV5ReposOwnerRepoPullsNumberOperateLogsOpts) ([]OperateLog, *http.Response, error)

func (*PullRequestsApiService) PatchV5ReposOwnerRepoPullsCommentsId

func (a *PullRequestsApiService) PatchV5ReposOwnerRepoPullsCommentsId(ctx context.Context, owner string, repo string, id int32, body PullRequestCommentPatchParam) (PullRequestComments, *http.Response, error)

PullRequestsApiService 编辑评论 编辑评论

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param repo 仓库路径(path)
  • @param id 评论的ID
  • @param body 必填。评论内容

@return PullRequestComments

func (*PullRequestsApiService) PatchV5ReposOwnerRepoPullsNumber

func (a *PullRequestsApiService) PatchV5ReposOwnerRepoPullsNumber(ctx context.Context, owner string, repo string, number int32, body PullRequestUpdateParam) (PullRequest, *http.Response, error)

PullRequestsApiService 更新Pull Request信息 更新Pull Request信息

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param repo 仓库路径(path)
  • @param number 第几个PR,即本仓库PR的序数
  • @param body 可选。Pull Request 内容

@return PullRequest

func (*PullRequestsApiService) PostV5ReposOwnerRepoPulls

func (a *PullRequestsApiService) PostV5ReposOwnerRepoPulls(ctx context.Context, owner string, repo string, body CreatePullRequestParam) (PullRequest, *http.Response, error)

PullRequestsApiService 创建Pull Request 创建Pull Request

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param repo 仓库路径(path)
  • @param body pr的信息

@return PullRequest

func (*PullRequestsApiService) PostV5ReposOwnerRepoPullsNumberAssignees

func (a *PullRequestsApiService) PostV5ReposOwnerRepoPullsNumberAssignees(ctx context.Context, owner string, repo string, number int32, body PullRequestAssigneePostParam) (PullRequest, *http.Response, error)

PullRequestsApiService 指派用户审查 Pull Request 指派用户审查 Pull Request

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param repo 仓库路径(path)
  • @param number 第几个PR,即本仓库PR的序数
  • @param body 必选,标签的内容

@return PullRequest

func (*PullRequestsApiService) PostV5ReposOwnerRepoPullsNumberComments

func (a *PullRequestsApiService) PostV5ReposOwnerRepoPullsNumberComments(ctx context.Context, owner string, repo string, number int32, body PullRequestCommentPostParam) (PullRequestComments, *http.Response, error)

PullRequestsApiService 提交Pull Request评论 提交Pull Request评论

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param repo 仓库路径(path)
  • @param number 第几个PR,即本仓库PR的序数
  • @param body 评论内容

@return PullRequestComments

func (*PullRequestsApiService) PostV5ReposOwnerRepoPullsNumberLabels

func (a *PullRequestsApiService) PostV5ReposOwnerRepoPullsNumberLabels(ctx context.Context, owner string, repo string, number int32, body PullRequestLabelPostParam) (Label, *http.Response, error)

PullRequestsApiService 创建 Pull Request 标签 创建 Pull Request 标签

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param repo 仓库路径(path)
  • @param number 第几个PR,即本仓库PR的序数
  • @param body 必选,标签的内容

@return Label

func (*PullRequestsApiService) PostV5ReposOwnerRepoPullsNumberTesters

func (a *PullRequestsApiService) PostV5ReposOwnerRepoPullsNumberTesters(ctx context.Context, owner string, repo string, number int32, testers string, localVarOptionals *PostV5ReposOwnerRepoPullsNumberTestersOpts) (PullRequest, *http.Response, error)

func (*PullRequestsApiService) PutV5ReposOwnerRepoPullsNumberLabels

func (a *PullRequestsApiService) PutV5ReposOwnerRepoPullsNumberLabels(ctx context.Context, owner string, repo string, number int32, body PullRequestLabelPostParam) ([]Label, *http.Response, error)

PullRequestsApiService 替换Pull Request 所有标签 替换Pull Request 所有标签 需要在请求的body里填上数组,元素为标签的名字。如: [\"performance\", \"bug\"]

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param repo 仓库路径(path)
  • @param number 第几个PR,即本仓库PR的序数
  • @param body 必选,标签的内容

@return []Label

func (*PullRequestsApiService) PutV5ReposOwnerRepoPullsNumberMerge

func (a *PullRequestsApiService) PutV5ReposOwnerRepoPullsNumberMerge(ctx context.Context, owner string, repo string, number int32, body PullRequestMergePutParam) (*http.Response, error)

PullRequestsApiService 合并Pull Request 合并Pull Request

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param repo 仓库路径(path)
  • @param number 第几个PR,即本仓库PR的序数
  • @param body PullRequest合入参数

type PushEvent

type PushEvent struct {
	Ref                *string         `json:"ref,omitempty"`
	Before             *string         `json:"before,omitempty"`
	After              *string         `json:"after,omitempty"`
	TotalCommitsCount  int64           `json:"total_commits_count,omitempty"`
	CommitsMoreThanTen *bool           `json:"commits_more_than_ten,omitempty"`
	Created            *bool           `json:"created,omitempty"`
	Deleted            *bool           `json:"deleted,omitempty"`
	Compare            *string         `json:"compare,omitempty"`
	Commits            []CommitHook    `json:"commits,omitempty"`
	HeadCommit         *CommitHook     `json:"head_commit,omitempty"`
	Repository         *ProjectHook    `json:"repository,omitempty"`
	Project            *ProjectHook    `json:"project,omitempty"`
	UserID             int64           `json:"user_id,omitempty"`
	UserName           *string         `json:"user_name,omitempty"`
	User               *UserHook       `json:"user,omitempty"`
	Pusher             *UserHook       `json:"pusher,omitempty"`
	Sender             *UserHook       `json:"sender,omitempty"`
	Enterprise         *EnterpriseHook `json:"enterprise,omitempty"`
	HookName           *string         `json:"hook_name,omitempty"`
	Password           *string         `json:"password,omitempty"`
}

func (*PushEvent) GetAction

func (pe *PushEvent) GetAction() string

func (*PushEvent) GetAfter

func (pe *PushEvent) GetAfter() string

func (*PushEvent) GetBefore

func (pe *PushEvent) GetBefore() string

func (*PushEvent) GetCommitsMoreThanTen

func (pe *PushEvent) GetCommitsMoreThanTen() bool

func (*PushEvent) GetCompare

func (pe *PushEvent) GetCompare() string

func (*PushEvent) GetCreated

func (pe *PushEvent) GetCreated() bool

func (*PushEvent) GetDeleted

func (pe *PushEvent) GetDeleted() bool

func (*PushEvent) GetEnterprise

func (pe *PushEvent) GetEnterprise() *EnterpriseHook

func (*PushEvent) GetHeadCommit

func (pe *PushEvent) GetHeadCommit() *CommitHook

func (*PushEvent) GetHookName

func (pe *PushEvent) GetHookName() string

func (*PushEvent) GetPassword

func (pe *PushEvent) GetPassword() string

func (*PushEvent) GetProject

func (pe *PushEvent) GetProject() *ProjectHook

func (*PushEvent) GetPusher

func (pe *PushEvent) GetPusher() *UserHook

func (*PushEvent) GetRepository

func (pe *PushEvent) GetRepository() *ProjectHook

func (*PushEvent) GetSender

func (pe *PushEvent) GetSender() *UserHook

func (*PushEvent) GetUser

func (pe *PushEvent) GetUser() *UserHook

func (*PushEvent) GetUserName

func (pe *PushEvent) GetUserName() string

type PutV5EnterprisesEnterpriseMembersUsernameOpts

type PutV5EnterprisesEnterpriseMembersUsernameOpts struct {
	AccessToken optional.String
	Outsourced  optional.Bool
	Role        optional.String
	Active      optional.Bool
	Name        optional.String
}

type PutV5GistsIdStarOpts

type PutV5GistsIdStarOpts struct {
	AccessToken optional.String
}

type PutV5NotificationsMessagesOpts

type PutV5NotificationsMessagesOpts struct {
	AccessToken optional.String
	Ids         optional.String
}

type PutV5NotificationsThreadsOpts

type PutV5NotificationsThreadsOpts struct {
	AccessToken optional.String
	Ids         optional.String
}

type PutV5OrgsOrgMembershipsUsernameOpts

type PutV5OrgsOrgMembershipsUsernameOpts struct {
	AccessToken optional.String
	Role        optional.String
}

type PutV5ReposOwnerRepoClearOpts

type PutV5ReposOwnerRepoClearOpts struct {
	AccessToken optional.String
}

type PutV5ReposOwnerRepoContentsPathOpts

type PutV5ReposOwnerRepoContentsPathOpts struct {
	AccessToken    optional.String
	Branch         optional.String
	CommitterName  optional.String
	CommitterEmail optional.String
	AuthorName     optional.String
	AuthorEmail    optional.String
}

type PutV5ReposOwnerRepoKeysEnableIdOpts

type PutV5ReposOwnerRepoKeysEnableIdOpts struct {
	AccessToken optional.String
}

type PutV5ReposOwnerRepoNotificationsOpts

type PutV5ReposOwnerRepoNotificationsOpts struct {
	AccessToken optional.String
	Ids         optional.String
}

type PutV5UserFollowingUsernameOpts

type PutV5UserFollowingUsernameOpts struct {
	AccessToken optional.String
}

type PutV5UserStarredOwnerRepoOpts

type PutV5UserStarredOwnerRepoOpts struct {
	AccessToken optional.String
}

type PutV5UserSubscriptionsOwnerRepoOpts

type PutV5UserSubscriptionsOwnerRepoOpts struct {
	AccessToken optional.String
}

type Release

type Release struct {
	Id              int32     `json:"id,omitempty"`
	TagName         string    `json:"tag_name,omitempty"`
	TargetCommitish string    `json:"target_commitish,omitempty"`
	Prerelease      string    `json:"prerelease,omitempty"`
	Name            string    `json:"name,omitempty"`
	Body            string    `json:"body,omitempty"`
	Author          string    `json:"author,omitempty"`
	CreatedAt       time.Time `json:"created_at,omitempty"`
	Assets          string    `json:"assets,omitempty"`
}

更新仓库Release

type RepoCommit

type RepoCommit struct {
	Url         string        `json:"url,omitempty"`
	Sha         string        `json:"sha,omitempty"`
	HtmlUrl     string        `json:"html_url,omitempty"`
	CommentsUrl string        `json:"comments_url,omitempty"`
	Commit      *SingleCommit `json:"commit,omitempty"`
	Author      string        `json:"author,omitempty"`
	Committer   string        `json:"committer,omitempty"`
	Parents     string        `json:"parents,omitempty"`
	Stats       string        `json:"stats,omitempty"`
}

仓库的某个提交

type RepoInfo

type RepoInfo struct {
	Project    *ProjectHook `json:"project,omitempty"`
	Repository *ProjectHook `json:"repository,omitempty"`
}

type RepoPatchParam

type RepoPatchParam struct {
	// 用户授权码
	AccessToken string `json:"access_token,omitempty"`
	// 仓库名称
	Name string `json:"name,omitempty"`
	// 仓库描述
	Description string `json:"description,omitempty"`
	// 主页(eg: https://gitee.com)
	Homepage string `json:"homepage,omitempty"`
	// 允许提Issue与否。默认: 允许(true)
	HasIssues string `json:"has_issues,omitempty"`
	// 提供Wiki与否。默认: 提供(true)
	HasWiki string `json:"has_wiki,omitempty"`
	// 允许用户对仓库进行评论
	CanComment string `json:"can_comment,omitempty"`
	// 仓库公开或私有。
	Private string `json:"private,omitempty"`
	// 更新仓库路径
	Path string `json:"path,omitempty"`
	// 更新默认分支
	DefaultBranch string `json:"default_branch,omitempty"`
}

repo patch parameter

type RepositoriesApiService

type RepositoriesApiService service

func (*RepositoriesApiService) DeleteV5ReposOwnerRepo

func (a *RepositoriesApiService) DeleteV5ReposOwnerRepo(ctx context.Context, owner string, repo string, localVarOptionals *DeleteV5ReposOwnerRepoOpts) (*http.Response, error)

func (*RepositoriesApiService) DeleteV5ReposOwnerRepoBranchesBranchProtection

func (a *RepositoriesApiService) DeleteV5ReposOwnerRepoBranchesBranchProtection(ctx context.Context, owner string, repo string, branch string, localVarOptionals *DeleteV5ReposOwnerRepoBranchesBranchProtectionOpts) (*http.Response, error)

func (*RepositoriesApiService) DeleteV5ReposOwnerRepoCollaboratorsUsername

func (a *RepositoriesApiService) DeleteV5ReposOwnerRepoCollaboratorsUsername(ctx context.Context, owner string, repo string, username string, localVarOptionals *DeleteV5ReposOwnerRepoCollaboratorsUsernameOpts) (*http.Response, error)

func (*RepositoriesApiService) DeleteV5ReposOwnerRepoCommentsId

func (a *RepositoriesApiService) DeleteV5ReposOwnerRepoCommentsId(ctx context.Context, owner string, repo string, id int32, localVarOptionals *DeleteV5ReposOwnerRepoCommentsIdOpts) (*http.Response, error)

func (*RepositoriesApiService) DeleteV5ReposOwnerRepoContentsPath

func (a *RepositoriesApiService) DeleteV5ReposOwnerRepoContentsPath(ctx context.Context, owner string, repo string, path string, sha string, message string, localVarOptionals *DeleteV5ReposOwnerRepoContentsPathOpts) (CommitContent, *http.Response, error)

func (*RepositoriesApiService) DeleteV5ReposOwnerRepoKeysEnableId

func (a *RepositoriesApiService) DeleteV5ReposOwnerRepoKeysEnableId(ctx context.Context, owner string, repo string, id int32, localVarOptionals *DeleteV5ReposOwnerRepoKeysEnableIdOpts) (*http.Response, error)

func (*RepositoriesApiService) DeleteV5ReposOwnerRepoKeysId

func (a *RepositoriesApiService) DeleteV5ReposOwnerRepoKeysId(ctx context.Context, owner string, repo string, id int32, localVarOptionals *DeleteV5ReposOwnerRepoKeysIdOpts) (*http.Response, error)

func (*RepositoriesApiService) DeleteV5ReposOwnerRepoReleasesId

func (a *RepositoriesApiService) DeleteV5ReposOwnerRepoReleasesId(ctx context.Context, owner string, repo string, id int32, localVarOptionals *DeleteV5ReposOwnerRepoReleasesIdOpts) (*http.Response, error)

func (*RepositoriesApiService) GetV5EnterprisesEnterpriseRepos

func (a *RepositoriesApiService) GetV5EnterprisesEnterpriseRepos(ctx context.Context, enterprise string, localVarOptionals *GetV5EnterprisesEnterpriseReposOpts) (Project, *http.Response, error)

func (*RepositoriesApiService) GetV5OrgsOrgRepos

func (a *RepositoriesApiService) GetV5OrgsOrgRepos(ctx context.Context, org string, localVarOptionals *GetV5OrgsOrgReposOpts) ([]Project, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepo

func (a *RepositoriesApiService) GetV5ReposOwnerRepo(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoOpts) (Project, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoBranches

func (a *RepositoriesApiService) GetV5ReposOwnerRepoBranches(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoBranchesOpts) ([]Branch, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoBranchesBranch

func (a *RepositoriesApiService) GetV5ReposOwnerRepoBranchesBranch(ctx context.Context, owner string, repo string, branch string, localVarOptionals *GetV5ReposOwnerRepoBranchesBranchOpts) (Branch, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoCollaborators

func (a *RepositoriesApiService) GetV5ReposOwnerRepoCollaborators(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoCollaboratorsOpts) ([]ProjectMember, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoCollaboratorsUsername

func (a *RepositoriesApiService) GetV5ReposOwnerRepoCollaboratorsUsername(ctx context.Context, owner string, repo string, username string, localVarOptionals *GetV5ReposOwnerRepoCollaboratorsUsernameOpts) (*http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoCollaboratorsUsernamePermission

func (a *RepositoriesApiService) GetV5ReposOwnerRepoCollaboratorsUsernamePermission(ctx context.Context, owner string, repo string, username string, localVarOptionals *GetV5ReposOwnerRepoCollaboratorsUsernamePermissionOpts) (ProjectMemberPermission, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoComments

func (a *RepositoriesApiService) GetV5ReposOwnerRepoComments(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoCommentsOpts) (Note, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoCommentsId

func (a *RepositoriesApiService) GetV5ReposOwnerRepoCommentsId(ctx context.Context, owner string, repo string, id int32, localVarOptionals *GetV5ReposOwnerRepoCommentsIdOpts) (Note, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoCommits

func (a *RepositoriesApiService) GetV5ReposOwnerRepoCommits(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoCommitsOpts) ([]RepoCommit, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoCommitsRefComments

func (a *RepositoriesApiService) GetV5ReposOwnerRepoCommitsRefComments(ctx context.Context, owner string, repo string, ref string, localVarOptionals *GetV5ReposOwnerRepoCommitsRefCommentsOpts) (Note, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoCommitsSha

func (a *RepositoriesApiService) GetV5ReposOwnerRepoCommitsSha(ctx context.Context, owner string, repo string, sha string, localVarOptionals *GetV5ReposOwnerRepoCommitsShaOpts) (RepoCommit, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoCompareBaseHead

func (a *RepositoriesApiService) GetV5ReposOwnerRepoCompareBaseHead(ctx context.Context, owner string, repo string, base string, head string, localVarOptionals *GetV5ReposOwnerRepoCompareBaseHeadOpts) (Compare, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoContentsPath

func (a *RepositoriesApiService) GetV5ReposOwnerRepoContentsPath(ctx context.Context, owner string, repo string, path string, localVarOptionals *GetV5ReposOwnerRepoContentsPathOpts) (Content, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoContributors

func (a *RepositoriesApiService) GetV5ReposOwnerRepoContributors(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoContributorsOpts) (Contributor, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoForks

func (a *RepositoriesApiService) GetV5ReposOwnerRepoForks(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoForksOpts) (Project, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoKeys

func (a *RepositoriesApiService) GetV5ReposOwnerRepoKeys(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoKeysOpts) ([]SshKey, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoKeysAvailable

func (a *RepositoriesApiService) GetV5ReposOwnerRepoKeysAvailable(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoKeysAvailableOpts) ([]SshKeyBasic, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoKeysId

func (a *RepositoriesApiService) GetV5ReposOwnerRepoKeysId(ctx context.Context, owner string, repo string, id int32, localVarOptionals *GetV5ReposOwnerRepoKeysIdOpts) (SshKey, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoPages

func (a *RepositoriesApiService) GetV5ReposOwnerRepoPages(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoPagesOpts) (*http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoReadme

func (a *RepositoriesApiService) GetV5ReposOwnerRepoReadme(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoReadmeOpts) (Content, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoReleases

func (a *RepositoriesApiService) GetV5ReposOwnerRepoReleases(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoReleasesOpts) ([]Release, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoReleasesId

func (a *RepositoriesApiService) GetV5ReposOwnerRepoReleasesId(ctx context.Context, owner string, repo string, id int32, localVarOptionals *GetV5ReposOwnerRepoReleasesIdOpts) (Release, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoReleasesLatest

func (a *RepositoriesApiService) GetV5ReposOwnerRepoReleasesLatest(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoReleasesLatestOpts) (Release, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoReleasesTagsTag

func (a *RepositoriesApiService) GetV5ReposOwnerRepoReleasesTagsTag(ctx context.Context, owner string, repo string, tag string, localVarOptionals *GetV5ReposOwnerRepoReleasesTagsTagOpts) (Release, *http.Response, error)

func (*RepositoriesApiService) GetV5ReposOwnerRepoTags

func (a *RepositoriesApiService) GetV5ReposOwnerRepoTags(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoTagsOpts) (Tag, *http.Response, error)

func (*RepositoriesApiService) GetV5UserRepos

func (a *RepositoriesApiService) GetV5UserRepos(ctx context.Context, localVarOptionals *GetV5UserReposOpts) (Project, *http.Response, error)

func (*RepositoriesApiService) GetV5UsersUsernameRepos

func (a *RepositoriesApiService) GetV5UsersUsernameRepos(ctx context.Context, username string, localVarOptionals *GetV5UsersUsernameReposOpts) (Project, *http.Response, error)

func (*RepositoriesApiService) PatchV5ReposOwnerRepo

func (a *RepositoriesApiService) PatchV5ReposOwnerRepo(ctx context.Context, owner string, repo string, body RepoPatchParam) (Project, *http.Response, error)

RepositoriesApiService 更新仓库设置 更新仓库设置

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param repo 仓库路径(path)
  • @param body repo patch param

@return Project

func (*RepositoriesApiService) PatchV5ReposOwnerRepoCommentsId

func (a *RepositoriesApiService) PatchV5ReposOwnerRepoCommentsId(ctx context.Context, owner string, repo string, id int32, body string, localVarOptionals *PatchV5ReposOwnerRepoCommentsIdOpts) (Note, *http.Response, error)

func (*RepositoriesApiService) PatchV5ReposOwnerRepoReleasesId

func (a *RepositoriesApiService) PatchV5ReposOwnerRepoReleasesId(ctx context.Context, owner string, repo string, tagName string, name string, body string, id int32, localVarOptionals *PatchV5ReposOwnerRepoReleasesIdOpts) (Release, *http.Response, error)

func (*RepositoriesApiService) PostV5EnterprisesEnterpriseRepos

func (a *RepositoriesApiService) PostV5EnterprisesEnterpriseRepos(ctx context.Context, name string, enterprise string, localVarOptionals *PostV5EnterprisesEnterpriseReposOpts) (Project, *http.Response, error)

func (*RepositoriesApiService) PostV5OrgsOrgRepos

func (a *RepositoriesApiService) PostV5OrgsOrgRepos(ctx context.Context, org string, body RepositoryPostParam) (Project, *http.Response, error)

RepositoriesApiService 创建组织仓库 创建组织仓库

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param org 组织的路径(path/login)
  • @param body Repositorie 内容

@return Project

func (*RepositoriesApiService) PostV5ReposOwnerRepoBranches

func (a *RepositoriesApiService) PostV5ReposOwnerRepoBranches(ctx context.Context, owner string, repo string, body CreateBranchParam) (CompleteBranch, *http.Response, error)

RepositoriesApiService 创建分支 创建分支

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param repo 仓库路径(path)
  • @param body 新建分支内容

@return CompleteBranch

func (*RepositoriesApiService) PostV5ReposOwnerRepoCommitsShaComments

func (a *RepositoriesApiService) PostV5ReposOwnerRepoCommitsShaComments(ctx context.Context, owner string, repo string, sha string, body string, localVarOptionals *PostV5ReposOwnerRepoCommitsShaCommentsOpts) (Note, *http.Response, error)

func (*RepositoriesApiService) PostV5ReposOwnerRepoContentsPath

func (a *RepositoriesApiService) PostV5ReposOwnerRepoContentsPath(ctx context.Context, owner string, repo string, path string, body NewFileParam) (CommitContent, *http.Response, error)

RepositoriesApiService 新建文件 新建文件

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param repo 仓库路径(path)
  • @param path 文件的路径
  • @param body 描述文件信息

@return CommitContent

func (*RepositoriesApiService) PostV5ReposOwnerRepoForks

func (a *RepositoriesApiService) PostV5ReposOwnerRepoForks(ctx context.Context, owner string, repo string, localVarOptionals *PostV5ReposOwnerRepoForksOpts) (Project, *http.Response, error)

func (*RepositoriesApiService) PostV5ReposOwnerRepoKeys

func (a *RepositoriesApiService) PostV5ReposOwnerRepoKeys(ctx context.Context, owner string, repo string, key string, title string, localVarOptionals *PostV5ReposOwnerRepoKeysOpts) (SshKey, *http.Response, error)

func (*RepositoriesApiService) PostV5ReposOwnerRepoPagesBuilds

func (a *RepositoriesApiService) PostV5ReposOwnerRepoPagesBuilds(ctx context.Context, owner string, repo string, localVarOptionals *PostV5ReposOwnerRepoPagesBuildsOpts) (*http.Response, error)

func (*RepositoriesApiService) PostV5ReposOwnerRepoReleases

func (a *RepositoriesApiService) PostV5ReposOwnerRepoReleases(ctx context.Context, owner string, repo string, tagName string, name string, body string, targetCommitish string, localVarOptionals *PostV5ReposOwnerRepoReleasesOpts) (Release, *http.Response, error)

func (*RepositoriesApiService) PostV5UserRepos

func (a *RepositoriesApiService) PostV5UserRepos(ctx context.Context, name string, body RepositoryPostParam) (Project, *http.Response, error)

func (*RepositoriesApiService) PutV5ReposOwnerRepoBranchesBranchProtection

func (a *RepositoriesApiService) PutV5ReposOwnerRepoBranchesBranchProtection(ctx context.Context, owner string, repo string, branch string, body BranchProtectionPutParam) (CompleteBranch, *http.Response, error)

RepositoriesApiService 设置分支保护 设置分支保护

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param repo 仓库路径(path)
  • @param branch 分支名称
  • @param body 设置分支保护参数

@return CompleteBranch

func (*RepositoriesApiService) PutV5ReposOwnerRepoClear

func (a *RepositoriesApiService) PutV5ReposOwnerRepoClear(ctx context.Context, owner string, repo string, localVarOptionals *PutV5ReposOwnerRepoClearOpts) (*http.Response, error)

func (*RepositoriesApiService) PutV5ReposOwnerRepoCollaboratorsUsername

func (a *RepositoriesApiService) PutV5ReposOwnerRepoCollaboratorsUsername(ctx context.Context, owner string, repo string, username string, body ProjectMemberPutParam) (ProjectMember, *http.Response, error)

RepositoriesApiService 添加仓库成员 添加仓库成员

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param repo 仓库路径(path)
  • @param username 用户名(username/login)
  • @param body 仓库成员内容

@return ProjectMember

func (*RepositoriesApiService) PutV5ReposOwnerRepoContentsPath

func (a *RepositoriesApiService) PutV5ReposOwnerRepoContentsPath(ctx context.Context, owner string, repo string, path string, content string, sha string, message string, localVarOptionals *PutV5ReposOwnerRepoContentsPathOpts) (CommitContent, *http.Response, error)

func (*RepositoriesApiService) PutV5ReposOwnerRepoKeysEnableId

func (a *RepositoriesApiService) PutV5ReposOwnerRepoKeysEnableId(ctx context.Context, owner string, repo string, id int32, localVarOptionals *PutV5ReposOwnerRepoKeysEnableIdOpts) (*http.Response, error)

func (*RepositoriesApiService) PutV5ReposOwnerRepoReviewer

func (a *RepositoriesApiService) PutV5ReposOwnerRepoReviewer(ctx context.Context, owner string, repo string, body SetRepoReviewer) (*http.Response, error)

RepositoriesApiService 修改代码审查设置 修改代码审查设置

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner 仓库所属空间地址(企业、组织或个人的地址path)
  • @param repo 仓库路径(path)
  • @param body 修改代码审查的信息

type RepositoryPostParam

type RepositoryPostParam struct {
	// 用户授权码
	AccessToken string `json:"access_token,omitempty"`
	// 仓库名称
	Name string `json:"name,omitempty"`
	// 仓库描述
	Description string `json:"description,omitempty"`
	// 主页(eg: https://gitee.com)
	Homepage string `json:"homepage,omitempty"`
	// 允许提Issue与否。默认: 允许(true)
	HasIssues bool `json:"has_issues,omitempty"`
	// 提供Wiki与否。默认: 提供(true)
	HasWiki bool `json:"has_wiki,omitempty"`
	// 允许用户对仓库进行评论。默认: 允许(true)
	CanComment bool `json:"can_comment,omitempty"`
	// 仓库开源类型。0(私有), 1(外部开源), 2(内部开源),注:与private互斥,以public为主。
	Public int32 `json:"public,omitempty"`
	// 仓库公开或私有。默认: 公开(false),注:与public互斥,以public为主。
	Private bool `json:"private,omitempty"`
	// 值为true时则会用README初始化仓库。默认: 不初始化(false)
	AutoInit bool `json:"auto_init,omitempty"`
	// Git Ingore模版
	GitignoreTemplate string `json:"gitignore_template,omitempty"`
	// License模版
	LicenseTemplate string `json:"license_template,omitempty"`
}

create repository

type SearchApiService

type SearchApiService service

func (*SearchApiService) GetV5SearchGists

func (a *SearchApiService) GetV5SearchGists(ctx context.Context, q string, localVarOptionals *GetV5SearchGistsOpts) ([]Code, *http.Response, error)

func (*SearchApiService) GetV5SearchIssues

func (a *SearchApiService) GetV5SearchIssues(ctx context.Context, q string, localVarOptionals *GetV5SearchIssuesOpts) ([]Issue, *http.Response, error)

func (*SearchApiService) GetV5SearchRepositories

func (a *SearchApiService) GetV5SearchRepositories(ctx context.Context, q string, localVarOptionals *GetV5SearchRepositoriesOpts) ([]Project, *http.Response, error)

func (*SearchApiService) GetV5SearchUsers

func (a *SearchApiService) GetV5SearchUsers(ctx context.Context, q string, localVarOptionals *GetV5SearchUsersOpts) ([]User, *http.Response, error)

type SetRepoReviewer

type SetRepoReviewer struct {
	// 用户授权码
	AccessToken string `json:"access_token,omitempty"`
	// 审查人员
	Assignees string `json:"assignees,omitempty"`
	// 测试人员
	Testers string `json:"testers,omitempty"`
	// 最少审查人数
	AssigneesNumber int32 `json:"assignees_number"`
	// 最少测试人员
	TestersNumber int32 `json:"testers_number"`
}

type SingleCommit

type SingleCommit struct {
	Author    *GitUser    `json:"author,omitempty"`
	Committer *GitUser    `json:"committer,omitempty"`
	Tree      *CommitTree `json:"tree,omitempty"`
}

type SshKey

type SshKey struct {
	Id        string `json:"id,omitempty"`
	Key       string `json:"key,omitempty"`
	Url       string `json:"url,omitempty"`
	Title     string `json:"title,omitempty"`
	CreatedAt string `json:"created_at,omitempty"`
}

获取一个公钥

type SshKeyBasic

type SshKeyBasic struct {
	Id  string `json:"id,omitempty"`
	Key string `json:"key,omitempty"`
}

列出指定用户的所有公钥

type Tag

type Tag struct {
	Name   string `json:"name,omitempty"`
	Commit string `json:"commit,omitempty"`
}

列出仓库所有的tags

type TagPushEvent

type TagPushEvent struct {
	Action *string `json:"action,omitempty"`
}

type Tree

type Tree struct {
	Sha       string      `json:"sha,omitempty"`
	Url       string      `json:"url,omitempty"`
	Tree      []TreeBasic `json:"tree,omitempty"`
	Truncated string      `json:"truncated,omitempty"`
}

获取目录Tree

type TreeBasic

type TreeBasic struct {
	Path  string `json:"path,omitempty"`
	Mode  string `json:"mode,omitempty"`
	Type_ string `json:"type,omitempty"`
	Sha   string `json:"sha,omitempty"`
	Size  int32  `json:"size,omitempty"`
	Url   string `json:"url,omitempty"`
}

type User

type User struct {
	Id                int32  `json:"id,omitempty"`
	Login             string `json:"login,omitempty"`
	Name              string `json:"name,omitempty"`
	AvatarUrl         string `json:"avatar_url,omitempty"`
	Url               string `json:"url,omitempty"`
	HtmlUrl           string `json:"html_url,omitempty"`
	FollowersUrl      string `json:"followers_url,omitempty"`
	FollowingUrl      string `json:"following_url,omitempty"`
	GistsUrl          string `json:"gists_url,omitempty"`
	StarredUrl        string `json:"starred_url,omitempty"`
	SubscriptionsUrl  string `json:"subscriptions_url,omitempty"`
	OrganizationsUrl  string `json:"organizations_url,omitempty"`
	ReposUrl          string `json:"repos_url,omitempty"`
	EventsUrl         string `json:"events_url,omitempty"`
	ReceivedEventsUrl string `json:"received_events_url,omitempty"`
	Type_             string `json:"type,omitempty"`
	SiteAdmin         bool   `json:"site_admin,omitempty"`
	Blog              string `json:"blog,omitempty"`
	Weibo             string `json:"weibo,omitempty"`
	Bio               string `json:"bio,omitempty"`
	PublicRepos       string `json:"public_repos,omitempty"`
	PublicGists       string `json:"public_gists,omitempty"`
	Followers         string `json:"followers,omitempty"`
	Following         string `json:"following,omitempty"`
	Stared            string `json:"stared,omitempty"`
	Watched           string `json:"watched,omitempty"`
	CreatedAt         string `json:"created_at,omitempty"`
	UpdatedAt         string `json:"updated_at,omitempty"`
	Email             string `json:"email,omitempty"`
}

搜索用户

type UserBasic

type UserBasic struct {
	Id                int32  `json:"id,omitempty"`
	Login             string `json:"login,omitempty"`
	Name              string `json:"name,omitempty"`
	AvatarUrl         string `json:"avatar_url,omitempty"`
	Url               string `json:"url,omitempty"`
	HtmlUrl           string `json:"html_url,omitempty"`
	FollowersUrl      string `json:"followers_url,omitempty"`
	FollowingUrl      string `json:"following_url,omitempty"`
	GistsUrl          string `json:"gists_url,omitempty"`
	StarredUrl        string `json:"starred_url,omitempty"`
	SubscriptionsUrl  string `json:"subscriptions_url,omitempty"`
	OrganizationsUrl  string `json:"organizations_url,omitempty"`
	ReposUrl          string `json:"repos_url,omitempty"`
	EventsUrl         string `json:"events_url,omitempty"`
	ReceivedEventsUrl string `json:"received_events_url,omitempty"`
	Type_             string `json:"type,omitempty"`
	SiteAdmin         bool   `json:"site_admin,omitempty"`
	Email             string `json:"email,omitempty"`
}

列出一个组织的所有成员

type UserHook

type UserHook struct {
	Id        int32     `json:"id,omitempty"`
	Name      string    `json:"name,omitempty"`
	Email     string    `json:"email,omitempty"`
	Username  string    `json:"username,omitempty"`
	UserName  string    `json:"user_name,omitempty"`
	Url       string    `json:"url,omitempty"`
	Login     string    `json:"login,omitempty"`
	AvatarUrl string    `json:"avatar_url,omitempty"`
	HtmlUrl   string    `json:"html_url,omitempty"`
	Type_     string    `json:"type,omitempty"`
	SiteAdmin bool      `json:"site_admin,omitempty"`
	Time      time.Time `json:"time,omitempty"`
	Remark    string    `json:"remark,omitempty"`
}

UserHook : 用户信息

func (*UserHook) GetLogin

func (u *UserHook) GetLogin() string

type UserMessage

type UserMessage struct {
	Id int32 `json:"id,omitempty"`
	// 发送者
	Sender    *UserBasic `json:"sender,omitempty"`
	Unread    string     `json:"unread,omitempty"`
	Content   string     `json:"content,omitempty"`
	UpdatedAt string     `json:"updated_at,omitempty"`
	Url       string     `json:"url,omitempty"`
	HtmlUrl   string     `json:"html_url,omitempty"`
}

获取一条私信

type UserMessageList

type UserMessageList struct {
	TotalCount int32 `json:"total_count,omitempty"`
	// 私信列表
	List []UserMessage `json:"list,omitempty"`
}

列出授权用户的所有私信

type UserMini

type UserMini struct {
	Id        int32  `json:"id,omitempty"`
	Login     string `json:"login,omitempty"`
	Name      string `json:"name,omitempty"`
	AvatarUrl string `json:"avatar_url,omitempty"`
	Url       string `json:"url,omitempty"`
	HtmlUrl   string `json:"html_url,omitempty"`
}

type UserNotification

type UserNotification struct {
	Id        int32  `json:"id,omitempty"`
	Content   string `json:"content,omitempty"`
	Type_     string `json:"type,omitempty"`
	Unread    string `json:"unread,omitempty"`
	Mute      string `json:"mute,omitempty"`
	UpdatedAt string `json:"updated_at,omitempty"`
	Url       string `json:"url,omitempty"`
	HtmlUrl   string `json:"html_url,omitempty"`
	// 通知发送者
	Actor      *UserBasic    `json:"actor,omitempty"`
	Repository *ProjectBasic `json:"repository,omitempty"`
	// 通知直接关联对象
	Subject *UserNotificationSubject `json:"subject,omitempty"`
	// 通知次级关联对象
	Namespaces []UserNotificationNamespace `json:"namespaces,omitempty"`
}

获取一条通知

type UserNotificationCount

type UserNotificationCount struct {
	// 通知总数
	TotalCount int32 `json:"total_count,omitempty"`
	// 通知数量
	NotificationCount int32 `json:"notification_count,omitempty"`
	// 私信数量
	MessageCount int32 `json:"message_count,omitempty"`
}

获取授权用户的通知数

type UserNotificationList

type UserNotificationList struct {
	TotalCount int32 `json:"total_count,omitempty"`
	// 通知列表
	List []UserNotification `json:"list,omitempty"`
}

列出授权用户的所有通知

type UserNotificationNamespace

type UserNotificationNamespace struct {
	Name    string `json:"name,omitempty"`
	HtmlUrl string `json:"html_url,omitempty"`
	Type_   string `json:"type,omitempty"`
}

type UserNotificationSubject

type UserNotificationSubject struct {
	Title            string `json:"title,omitempty"`
	Url              string `json:"url,omitempty"`
	LatestCommentUrl string `json:"latest_comment_url,omitempty"`
	Type_            string `json:"type,omitempty"`
}

type UsersApiService

type UsersApiService service

func (*UsersApiService) DeleteV5UserFollowingUsername

func (a *UsersApiService) DeleteV5UserFollowingUsername(ctx context.Context, username string, localVarOptionals *DeleteV5UserFollowingUsernameOpts) (*http.Response, error)

func (*UsersApiService) DeleteV5UserKeysId

func (a *UsersApiService) DeleteV5UserKeysId(ctx context.Context, id int32, localVarOptionals *DeleteV5UserKeysIdOpts) (*http.Response, error)

func (*UsersApiService) GetV5User

func (a *UsersApiService) GetV5User(ctx context.Context, localVarOptionals *GetV5UserOpts) (User, *http.Response, error)

func (*UsersApiService) GetV5UserFollowers

func (a *UsersApiService) GetV5UserFollowers(ctx context.Context, localVarOptionals *GetV5UserFollowersOpts) ([]UserBasic, *http.Response, error)

func (*UsersApiService) GetV5UserFollowing

func (a *UsersApiService) GetV5UserFollowing(ctx context.Context, localVarOptionals *GetV5UserFollowingOpts) ([]UserBasic, *http.Response, error)

func (*UsersApiService) GetV5UserFollowingUsername

func (a *UsersApiService) GetV5UserFollowingUsername(ctx context.Context, username string, localVarOptionals *GetV5UserFollowingUsernameOpts) (*http.Response, error)

func (*UsersApiService) GetV5UserKeys

func (a *UsersApiService) GetV5UserKeys(ctx context.Context, localVarOptionals *GetV5UserKeysOpts) ([]SshKey, *http.Response, error)

func (*UsersApiService) GetV5UserKeysId

func (a *UsersApiService) GetV5UserKeysId(ctx context.Context, id int32, localVarOptionals *GetV5UserKeysIdOpts) (SshKey, *http.Response, error)

func (*UsersApiService) GetV5UserNamespace

func (a *UsersApiService) GetV5UserNamespace(ctx context.Context, path string, localVarOptionals *GetV5UserNamespaceOpts) ([]Namespace, *http.Response, error)

func (*UsersApiService) GetV5UserNamespaces

func (a *UsersApiService) GetV5UserNamespaces(ctx context.Context, localVarOptionals *GetV5UserNamespacesOpts) ([]Namespace, *http.Response, error)

func (*UsersApiService) GetV5UsersUsername

func (a *UsersApiService) GetV5UsersUsername(ctx context.Context, username string, localVarOptionals *GetV5UsersUsernameOpts) (User, *http.Response, error)

func (*UsersApiService) GetV5UsersUsernameFollowers

func (a *UsersApiService) GetV5UsersUsernameFollowers(ctx context.Context, username string, localVarOptionals *GetV5UsersUsernameFollowersOpts) ([]UserBasic, *http.Response, error)

func (*UsersApiService) GetV5UsersUsernameFollowing

func (a *UsersApiService) GetV5UsersUsernameFollowing(ctx context.Context, username string, localVarOptionals *GetV5UsersUsernameFollowingOpts) ([]UserBasic, *http.Response, error)

func (*UsersApiService) GetV5UsersUsernameFollowingTargetUser

func (a *UsersApiService) GetV5UsersUsernameFollowingTargetUser(ctx context.Context, username string, targetUser string, localVarOptionals *GetV5UsersUsernameFollowingTargetUserOpts) (*http.Response, error)

func (*UsersApiService) GetV5UsersUsernameKeys

func (a *UsersApiService) GetV5UsersUsernameKeys(ctx context.Context, username string, localVarOptionals *GetV5UsersUsernameKeysOpts) ([]SshKeyBasic, *http.Response, error)

func (*UsersApiService) PatchV5User

func (a *UsersApiService) PatchV5User(ctx context.Context, localVarOptionals *PatchV5UserOpts) (User, *http.Response, error)

func (*UsersApiService) PostV5UserKeys

func (a *UsersApiService) PostV5UserKeys(ctx context.Context, key string, title string, localVarOptionals *PostV5UserKeysOpts) (SshKey, *http.Response, error)

func (*UsersApiService) PutV5UserFollowingUsername

func (a *UsersApiService) PutV5UserFollowingUsername(ctx context.Context, username string, localVarOptionals *PutV5UserFollowingUsernameOpts) (*http.Response, error)

type WebhooksApiService

type WebhooksApiService service

func (*WebhooksApiService) DeleteV5ReposOwnerRepoHooksId

func (a *WebhooksApiService) DeleteV5ReposOwnerRepoHooksId(ctx context.Context, owner string, repo string, id int32, localVarOptionals *DeleteV5ReposOwnerRepoHooksIdOpts) (*http.Response, error)

func (*WebhooksApiService) GetV5ReposOwnerRepoHooks

func (a *WebhooksApiService) GetV5ReposOwnerRepoHooks(ctx context.Context, owner string, repo string, localVarOptionals *GetV5ReposOwnerRepoHooksOpts) ([]Hook, *http.Response, error)

func (*WebhooksApiService) GetV5ReposOwnerRepoHooksId

func (a *WebhooksApiService) GetV5ReposOwnerRepoHooksId(ctx context.Context, owner string, repo string, id int32, localVarOptionals *GetV5ReposOwnerRepoHooksIdOpts) (Hook, *http.Response, error)

func (*WebhooksApiService) PatchV5ReposOwnerRepoHooksId

func (a *WebhooksApiService) PatchV5ReposOwnerRepoHooksId(ctx context.Context, owner string, repo string, id int32, url string, localVarOptionals *PatchV5ReposOwnerRepoHooksIdOpts) (Hook, *http.Response, error)

func (*WebhooksApiService) PostV5ReposOwnerRepoHooks

func (a *WebhooksApiService) PostV5ReposOwnerRepoHooks(ctx context.Context, owner string, repo string, url string, localVarOptionals *PostV5ReposOwnerRepoHooksOpts) (Hook, *http.Response, error)

func (*WebhooksApiService) PostV5ReposOwnerRepoHooksIdTests

func (a *WebhooksApiService) PostV5ReposOwnerRepoHooksIdTests(ctx context.Context, owner string, repo string, id int32, localVarOptionals *PostV5ReposOwnerRepoHooksIdTestsOpts) (*http.Response, error)

type WeekReport

type WeekReport struct {
	Id          int32     `json:"id,omitempty"`
	Content     string    `json:"content,omitempty"`
	ContentHtml string    `json:"content_html,omitempty"`
	Year        string    `json:"year,omitempty"`
	Month       string    `json:"month,omitempty"`
	WeekIndex   string    `json:"week_index,omitempty"`
	WeekBegin   string    `json:"week_begin,omitempty"`
	WeekEnd     string    `json:"week_end,omitempty"`
	CreatedAt   string    `json:"created_at,omitempty"`
	UpdatedAt   string    `json:"updated_at,omitempty"`
	User        *UserMini `json:"user,omitempty"`
}

新建周报

Source Files

Jump to

Keyboard shortcuts

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