mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 01:34:27 +00:00 
			
		
		
		
	Vendor Update: go-gitlab v0.22.1 -> v0.31.0 (#11136)
* vendor update: go-gitlab to v0.31.0 * migrate client init to v0.31.0 * refactor
This commit is contained in:
		
							
								
								
									
										4
									
								
								vendor/github.com/xanzy/go-gitlab/feature_flags.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/xanzy/go-gitlab/feature_flags.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -38,7 +38,7 @@ func (f Feature) String() string {
 | 
			
		||||
//
 | 
			
		||||
// GitLab API docs:
 | 
			
		||||
// https://docs.gitlab.com/ce/api/features.html#list-all-features
 | 
			
		||||
func (s *FeaturesService) ListFeatures(options ...OptionFunc) ([]*Feature, *Response, error) {
 | 
			
		||||
func (s *FeaturesService) ListFeatures(options ...RequestOptionFunc) ([]*Feature, *Response, error) {
 | 
			
		||||
	req, err := s.client.NewRequest("GET", "features", nil, options)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, nil, err
 | 
			
		||||
@@ -56,7 +56,7 @@ func (s *FeaturesService) ListFeatures(options ...OptionFunc) ([]*Feature, *Resp
 | 
			
		||||
//
 | 
			
		||||
// GitLab API docs:
 | 
			
		||||
// https://docs.gitlab.com/ce/api/features.html#set-or-create-a-feature
 | 
			
		||||
func (s *FeaturesService) SetFeatureFlag(name string, value interface{}, options ...OptionFunc) (*Feature, *Response, error) {
 | 
			
		||||
func (s *FeaturesService) SetFeatureFlag(name string, value interface{}, options ...RequestOptionFunc) (*Feature, *Response, error) {
 | 
			
		||||
	u := fmt.Sprintf("features/%s", url.PathEscape(name))
 | 
			
		||||
 | 
			
		||||
	opt := struct {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user