mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-26 09:56:53 +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:
10
vendor/code.gitea.io/sdk/gitea/issue.go
generated
vendored
10
vendor/code.gitea.io/sdk/gitea/issue.go
generated
vendored
@@ -71,6 +71,10 @@ type ListIssueOption struct {
|
||||
AssignedBy string
|
||||
// filter by username mentioned
|
||||
MentionedBy string
|
||||
// filter by owner (only works on ListIssues on User)
|
||||
Owner string
|
||||
// filter by team (requires organization owner parameter to be provided and only works on ListIssues on User)
|
||||
Team string
|
||||
}
|
||||
|
||||
// StateType issue state type
|
||||
@@ -135,6 +139,12 @@ func (opt *ListIssueOption) QueryEncode() string {
|
||||
if len(opt.MentionedBy) > 0 {
|
||||
query.Add("mentioned_by", opt.MentionedBy)
|
||||
}
|
||||
if len(opt.Owner) > 0 {
|
||||
query.Add("owner", opt.Owner)
|
||||
}
|
||||
if len(opt.Team) > 0 {
|
||||
query.Add("team", opt.MentionedBy)
|
||||
}
|
||||
|
||||
return query.Encode()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user