fix(discussion list): include search keywords in web mode
Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
parent
f62875fb63
commit
2a4a982ae4
1 changed files with 3 additions and 0 deletions
|
|
@ -236,6 +236,9 @@ func openInBrowser(opts *ListOptions, repo ghrepo.Interface) error {
|
|||
discussionsURL := ghrepo.GenerateRepoURL(repo, "discussions")
|
||||
|
||||
var queryParts []string
|
||||
if opts.Search != "" {
|
||||
queryParts = append(queryParts, opts.Search)
|
||||
}
|
||||
if opts.State != "" && opts.State != "all" {
|
||||
queryParts = append(queryParts, "is:"+opts.State)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue