Vendor Update (#16121)
* update github.com/PuerkitoBio/goquery * update github.com/alecthomas/chroma * update github.com/blevesearch/bleve/v2 * update github.com/caddyserver/certmagic * update github.com/go-enry/go-enry/v2 * update github.com/go-git/go-billy/v5 * update github.com/go-git/go-git/v5 * update github.com/go-redis/redis/v8 * update github.com/go-testfixtures/testfixtures/v3 * update github.com/jaytaylor/html2text * update github.com/json-iterator/go * update github.com/klauspost/compress * update github.com/markbates/goth * update github.com/mattn/go-isatty * update github.com/mholt/archiver/v3 * update github.com/microcosm-cc/bluemonday * update github.com/minio/minio-go/v7 * update github.com/prometheus/client_golang * update github.com/unrolled/render * update github.com/xanzy/go-gitlab * update github.com/yuin/goldmark * update github.com/yuin/goldmark-highlighting Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
f088dc4ea1
commit
86e2789960
819 changed files with 38072 additions and 34969 deletions
106
vendor/github.com/xanzy/go-gitlab/services.go
generated
vendored
106
vendor/github.com/xanzy/go-gitlab/services.go
generated
vendored
|
@ -596,10 +596,13 @@ func (s *ServicesService) GetJenkinsCIService(pid interface{}, options ...Reques
|
|||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ee/api/services.html#jenkins-ci
|
||||
type SetJenkinsCIServiceOptions struct {
|
||||
URL *string `url:"jenkins_url,omitempty" json:"jenkins_url,omitempty"`
|
||||
ProjectName *string `url:"project_name,omitempty" json:"project_name,omitempty"`
|
||||
Username *string `url:"username,omitempty" json:"username,omitempty"`
|
||||
Password *string `url:"password,omitempty" json:"password,omitempty"`
|
||||
URL *string `url:"jenkins_url,omitempty" json:"jenkins_url,omitempty"`
|
||||
ProjectName *string `url:"project_name,omitempty" json:"project_name,omitempty"`
|
||||
Username *string `url:"username,omitempty" json:"username,omitempty"`
|
||||
Password *string `url:"password,omitempty" json:"password,omitempty"`
|
||||
PushEvents *bool `url:"push_events,omitempty" json:"push_events,omitempty"`
|
||||
MergeRequestsEvents *bool `url:"merge_requests_events,omitempty" json:"merge_requests_events,omitempty"`
|
||||
TagPushEvents *bool `url:"tag_push_events,omitempty" json:"tag_push_events,omitempty"`
|
||||
}
|
||||
|
||||
// SetJenkinsCIService sets Jenkins service for a project
|
||||
|
@ -1327,3 +1330,98 @@ func (s *ServicesService) DeleteSlackService(pid interface{}, options ...Request
|
|||
|
||||
return s.client.Do(req, nil)
|
||||
}
|
||||
|
||||
// YouTrackService represents YouTrack service settings.
|
||||
//
|
||||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ce/api/services.html#youtrack
|
||||
type YouTrackService struct {
|
||||
Service
|
||||
Properties *YouTrackServiceProperties `json:"properties"`
|
||||
}
|
||||
|
||||
// YouTrackServiceProperties represents YouTrack specific properties.
|
||||
//
|
||||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ce/api/services.html#youtrack
|
||||
type YouTrackServiceProperties struct {
|
||||
IssuesURL string `json:"issues_url"`
|
||||
ProjectURL string `json:"project_url"`
|
||||
Description string `json:"description"`
|
||||
PushEvents bool `json:"push_events"`
|
||||
}
|
||||
|
||||
// GetYouTrackService gets YouTrack service settings for a project.
|
||||
//
|
||||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ce/api/services.html#get-youtrack-service-settings
|
||||
func (s *ServicesService) GetYouTrackService(pid interface{}, options ...RequestOptionFunc) (*YouTrackService, *Response, error) {
|
||||
project, err := parseID(pid)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
u := fmt.Sprintf("projects/%s/services/youtrack", pathEscape(project))
|
||||
|
||||
req, err := s.client.NewRequest(http.MethodGet, u, nil, options)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
svc := new(YouTrackService)
|
||||
resp, err := s.client.Do(req, svc)
|
||||
if err != nil {
|
||||
return nil, resp, err
|
||||
}
|
||||
|
||||
return svc, resp, err
|
||||
}
|
||||
|
||||
// SetYouTrackServiceOptions represents the available SetYouTrackService()
|
||||
// options.
|
||||
//
|
||||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ce/api/services.html#createedit-youtrack-service
|
||||
type SetYouTrackServiceOptions struct {
|
||||
IssuesURL *string `url:"issues_url,omitempty" json:"issues_url,omitempty"`
|
||||
ProjectURL *string `url:"project_url,omitempty" json:"project_url,omitempty"`
|
||||
Description *string `url:"description,omitempty" json:"description,omitempty"`
|
||||
PushEvents *bool `url:"push_events,omitempty" json:"push_events,omitempty"`
|
||||
}
|
||||
|
||||
// SetYouTrackService sets YouTrack service for a project
|
||||
//
|
||||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ce/api/services.html#createedit-youtrack-service
|
||||
func (s *ServicesService) SetYouTrackService(pid interface{}, opt *SetYouTrackServiceOptions, options ...RequestOptionFunc) (*Response, error) {
|
||||
project, err := parseID(pid)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
u := fmt.Sprintf("projects/%s/services/youtrack", pathEscape(project))
|
||||
|
||||
req, err := s.client.NewRequest(http.MethodPut, u, opt, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return s.client.Do(req, nil)
|
||||
}
|
||||
|
||||
// DeleteYouTrackService deletes YouTrack service settings for a project.
|
||||
//
|
||||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ce/api/services.html#delete-youtrack-service
|
||||
func (s *ServicesService) DeleteYouTrackService(pid interface{}, options ...RequestOptionFunc) (*Response, error) {
|
||||
project, err := parseID(pid)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
u := fmt.Sprintf("projects/%s/services/youtrack", pathEscape(project))
|
||||
|
||||
req, err := s.client.NewRequest(http.MethodDelete, u, nil, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return s.client.Do(req, nil)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue