Check Gitea Version Requirement #419
|
@ -10,6 +10,10 @@ This project acts as a client SDK implementation written in Go to interact with
|
|||
import "code.gitea.io/sdk/gitea"
|
||||
```
|
||||
|
||||
## Version Requirements
|
||||
* go >= 1.13
|
||||
* gitea >= 1.10
|
||||
|
||||
## Contributing
|
||||
|
||||
Fork -> Patch -> Push -> Pull Request
|
||||
|
|
|
@ -55,6 +55,9 @@ func NewClient(url string, options ...func(*Client)) (*Client, error) {
|
|||
for _, opt := range options {
|
||||
opt(client)
|
||||
}
|
||||
if err := client.CheckServerVersionConstraint(">=1.10"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return client, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user