fix(discussion list): include search keywords in web mode

Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
Babak K. Shandiz 2026-04-14 15:07:32 +01:00
parent f62875fb63
commit 2a4a982ae4
No known key found for this signature in database
GPG key ID: 9472CAEFF56C742E

View file

@ -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)
}