mirror of
				https://github.com/woodpecker-ci/woodpecker.git
				synced 2025-10-27 02:05:43 +00:00 
			
		
		
		
	Allow gitea dev version (#914)
* update gitea sdk to latest * As before try to autodetect gitea version, if this does not work, assume it's latest version (v1.17.0 atm)
This commit is contained in:
		
							
								
								
									
										4
									
								
								vendor/code.gitea.io/sdk/gitea/fork.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/code.gitea.io/sdk/gitea/fork.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -16,7 +16,7 @@ type ListForksOptions struct { | ||||
| } | ||||
|  | ||||
| // ListForks list a repository's forks | ||||
| func (c *Client) ListForks(user string, repo string, opt ListForksOptions) ([]*Repository, *Response, error) { | ||||
| func (c *Client) ListForks(user, repo string, opt ListForksOptions) ([]*Repository, *Response, error) { | ||||
| 	if err := escapeValidatePathSegments(&user, &repo); err != nil { | ||||
| 		return nil, nil, err | ||||
| 	} | ||||
| @@ -32,6 +32,8 @@ func (c *Client) ListForks(user string, repo string, opt ListForksOptions) ([]*R | ||||
| type CreateForkOption struct { | ||||
| 	// organization name, if forking into an organization | ||||
| 	Organization *string `json:"organization"` | ||||
| 	// name of the forked repository | ||||
| 	Name *string `json:"name"` | ||||
| } | ||||
|  | ||||
| // CreateFork create a fork of a repository | ||||
|   | ||||
		Reference in New Issue
	
	Block a user