add generic search naming for issues and PRs @samcoe
This commit is contained in:
parent
80035aa686
commit
70d4873914
2 changed files with 3 additions and 3 deletions
|
|
@ -153,7 +153,7 @@ func issueList(client *http.Client, repo ghrepo.Interface, filters prShared.Filt
|
|||
filters.Milestone = milestone.Title
|
||||
}
|
||||
|
||||
searchQuery := prShared.IssueSearchBuild(filters)
|
||||
searchQuery := prShared.SearchQueryBuild(filters)
|
||||
return api.IssueSearch(apiClient, repo, searchQuery, limit)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -159,13 +159,13 @@ func ListURLWithQuery(listURL string, options FilterOptions) (string, error) {
|
|||
}
|
||||
|
||||
params := u.Query()
|
||||
params.Set("q", IssueSearchBuild(options))
|
||||
params.Set("q", SearchQueryBuild(options))
|
||||
u.RawQuery = params.Encode()
|
||||
|
||||
return u.String(), nil
|
||||
}
|
||||
|
||||
func IssueSearchBuild(options FilterOptions) string {
|
||||
func SearchQueryBuild(options FilterOptions) string {
|
||||
query := fmt.Sprintf("is:%s ", options.Entity)
|
||||
|
||||
if options.State != "all" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue