diff options
author | 6543 <6543@obermui.de> | 2022-01-05 05:51:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-05 05:51:12 +0100 |
commit | ec6cc38c6c26f95748be4a9041da2a9528e3625d (patch) | |
tree | 8ac98a32ab06fec2c92462e2af9de9c1b6d16c45 /vendor/code.gitea.io/sdk/gitea/issue_milestone.go | |
parent | 8760af752abd94f050c6014c8cfa3cb6a6c854b7 (diff) | |
download | gitea-ec6cc38c6c26f95748be4a9041da2a9528e3625d.tar.gz gitea-ec6cc38c6c26f95748be4a9041da2a9528e3625d.zip |
code.gitea.io/sdk/gitea v0.14.0 -> v0.15.1 (#18186)
Diffstat (limited to 'vendor/code.gitea.io/sdk/gitea/issue_milestone.go')
-rw-r--r-- | vendor/code.gitea.io/sdk/gitea/issue_milestone.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/code.gitea.io/sdk/gitea/issue_milestone.go b/vendor/code.gitea.io/sdk/gitea/issue_milestone.go index a865a45839..dfb5720a0c 100644 --- a/vendor/code.gitea.io/sdk/gitea/issue_milestone.go +++ b/vendor/code.gitea.io/sdk/gitea/issue_milestone.go @@ -73,7 +73,7 @@ func (c *Client) GetMilestone(owner, repo string, id int64) (*Milestone, *Respon // GetMilestoneByName get one milestone by repo and milestone name func (c *Client) GetMilestoneByName(owner, repo string, name string) (*Milestone, *Response, error) { - if c.CheckServerVersionConstraint(">=1.13") != nil { + if c.checkServerVersionGreaterThanOrEqual(version1_13_0) != nil { // backwards compatibility mode m, resp, err := c.resolveMilestoneByName(owner, repo, name) return m, resp, err @@ -164,7 +164,7 @@ func (c *Client) EditMilestone(owner, repo string, id int64, opt EditMilestoneOp // EditMilestoneByName modify milestone with options func (c *Client) EditMilestoneByName(owner, repo string, name string, opt EditMilestoneOption) (*Milestone, *Response, error) { - if c.CheckServerVersionConstraint(">=1.13") != nil { + if c.checkServerVersionGreaterThanOrEqual(version1_13_0) != nil { // backwards compatibility mode m, _, err := c.resolveMilestoneByName(owner, repo, name) if err != nil { @@ -198,7 +198,7 @@ func (c *Client) DeleteMilestone(owner, repo string, id int64) (*Response, error // DeleteMilestoneByName delete one milestone by name func (c *Client) DeleteMilestoneByName(owner, repo string, name string) (*Response, error) { - if c.CheckServerVersionConstraint(">=1.13") != nil { + if c.checkServerVersionGreaterThanOrEqual(version1_13_0) != nil { // backwards compatibility mode m, _, err := c.resolveMilestoneByName(owner, repo, name) if err != nil { |