You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the feature or problem you’d like to solve
Easy method for passing the current repo owner to various commands. The gh api supports {owner} strings for handling this. It would be fairly useful, and quite a bit cleaner, if commands such as gh search prs supported something similar. This would allow for various commands to easily work in personal repositories, as well as enterprise repositories.
Proposed solution
These commands currently support @me to refer to the currently logged in GH user. Why not support @repo to refer to the owner of the currently checked out repo.
Additional context
gh search issues --owner @repo
The text was updated successfully, but these errors were encountered:
Some interesting thoughts in here though I'm not sure about your example:
gh search issues --owner @repo
I think I would expect a @repo arg to work with gh search issues --repo @repo and @owner to work with gh search issues --owner @owner. Perhaps that's what you meant?
Can you talk a little bit more about the workflow where you would want to use something like this? I'm trying to imagine being in a repo <owner>/<repo> and deciding I want to search for all issues that live in repositories of the same owner. I can sort of imagine doing this for the github owner but then I think I'd probably have all the context I need to write --owner github.
Are there other commands you had in mind where this would be useful?
Describe the feature or problem you’d like to solve
Easy method for passing the current repo owner to various commands. The
gh api
supports{owner}
strings for handling this. It would be fairly useful, and quite a bit cleaner, if commands such asgh search prs
supported something similar. This would allow for various commands to easily work in personal repositories, as well as enterprise repositories.Proposed solution
These commands currently support
@me
to refer to the currently logged in GH user. Why not support@repo
to refer to the owner of the currently checked out repo.Additional context
gh search issues --owner @repo
The text was updated successfully, but these errors were encountered: