Repository navigation
Specify multiple users for gh search prs --involves
#10243
Unanswered
Christophoclese
asked this question in
Q&A
Replies: 2 comments
|
I don't think repeated So for this case, I would skip the flag and send the full search query yourself. With gh api -X GET /search/issues \
-f q='involves:foo involves:bar is:pr is:merged updated:>=2025-01-07' \
-f per_page=100That preserves the raw GitHub search query, including multiple So my read is:
|
0 replies
|
Try passing the users as separate search terms: gh search prs '(' involves:foo OR involves:bar ')' \
--merged --updated '>=2025-01-07' --limit 100Replace Keep the terms as separate arguments. This needs a CLI/host that supports advanced search syntax. Tested with gh 2.103.3 on public PRs. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is there a way to specify multiple users for the
--involvesparameter and receive the OR behavior that the web search permits? If I callgh search prsonly the last supplied--involvesargument is accepted and I haven't been able to find a way to format this string so the CLI will make the appropriate API call.For example I can search like this on the web:
"involves:foo involves:bar is:pr is:merged updated:>=2025-01-07"But this does not work:
gh search prs --involves foo --involves bar --state closed --updated ">=2025-01-07"Instead I only receive PRs involving user bar.
All reactions