Repository navigation
Unclear message about base repository when creating a PR #2090
Description
Activity
Note: I had erroneously committed to
masterinstead of to a feature branch before creating this PR — I suppose that may be why I saw this message. Regardless,ghdidn't help me figure this out, but instead confused me further; so I suppose the message could be clarified.Reacted by knightofiam and Tobebornnew@waldyrious Thank you for the feedback, I can understand how the messaging can be confusing. There is definitely room for improvement in the
pr createmessaging and we will take your feedback into account as we continue to iterate on this feature. 🙇Reacted by Waldir Pimenta, knightofiam, saurabh chopra, Tobebornnew, Becks676 and Julia M@waldyrious Thank you for the feedback!
The concept of a "base" repository is not just specific to the
pr createcommand, but to most other commands. The "base" repository is the GitHub repo where the majority of the maintenance happens; i.e. PRs get submitted to it, issues get filed in its issue tracker, Releases get created in it, and so on.We weren't sure how we could name it more descriptively, but if you or anyone has suggestions, we're all ears.
Reacted by Waldir Pimenta, Alan and DingkunThanks for the context. I would say that meaning of "base" you describe matches what I'd intuitively call an "upstream", "canonical", "primary"/"main", or "original" repository. These are just from the top of my head, so I'd be happy to contribute to discussions in case these have shortcomings I might be overlooking.
Switching away from "base" here makes sense to me since "base" means something in
gitterms. I like the idea of "primary". @ampinsk do you have thoughts?- addedenhancementa request to improve CLIa request to improve CLIneeds-designAn engineering task needs design to proceedAn engineering task needs design to proceedand removed
on Oct 22, 2020 This is a tough one, but I'm partial to
main. This may be tough to find a word that makes sense to 100% of people. I also feel that the parenthetical in the middle of the prompt makes the prompt more difficult to read. If we want to give an example, I think we could list it at the end.Choose a repository to use as the base for querying issues and submitting PRs.
Could this make more sense?
Choose a repository to use as the base for querying issues and submitting PRs.
Could this make more sense?
I think the "and submitting PRs" definitely helps, as well as the removal of "for this directory" (was that intentional?).
Here's a thought: why not simply remove "as the base" from the sentence? And maybe also switching "a repository" to "the repository":
Choose the repository to use for querying issues and submitting PRs.
@waldyrious I like that! Thanks for the copyediting help 😄 The only lingering problem with this is that querying issues and submitting PRs aren't the only things that selecting the "base" repository affects. It also affects querying PR lists, creating issues, etc. Basically all read/write operations. So to avoid listing out every single thing this decision means, we do need some general way to talk about this concept 🤔
Reacted by Waldir PimentaIn that case, how about something like this?
Choose the primary remote (used for querying issues, submitting PRs, etc.) for this repository
Reacted by Bhajneet S.K.@waldyrious I like that! I think it's clearer than what we have today 👍
Reacted by Waldir PimentaI also confuse at the first place..
Just chiming in here since I was also confused by this message when running
gh pr checkoutfor the first time. Is there a reason @waldyrious's suggestion hasn't already been incorporated (as of version 1.9.2)?@samestep No real reason except inertia. But, we are planning to do improvements around the "base repo" experience that go beyond just renaming the prompt.
Reacted by Sam EstepHonestly if you just removed the word base it would make so much more sense. Or renaming base to "default".
Current:
Which should be the base repository (used for e.g. querying issues) for this directory?
Proposed:
Which repository should
ghuse for querying issues, submitting PRs, etc. for this directory?Choose a default repository for
ghto use for querying issues, submitting PRs, etc. for this directory:Reacted by Mislav MarohnićThis really confused me today. I just started using gh and I ended up selecting my fork -- which made a PR a to my fork and since I referenced an issue in the project repo github a reference in that issue to the PR in my fork! 🤣🤣
Some other ideas for wording it:
"Which repo is the main repo? (The repo which you submit PR's to, or list issues from, etc)"
"Choose the base (or original) repo. This is the repo that you submit PR's to, contains the issues, and etc." 👀👈👍
Apart from that, it would be good if the explanation was written out in the help. At first I cancelled what I was doing and looked in
gh pr create --helpbut there was no good explanation there for what base meant.My other issue that I came looking for was that after I selected the wrong one (my fork) I couldn't change it (or it wasn't obvious how to do so anyway). So I had to start over from scratch. If there is a way someone please tell me. 😎
Reacted by Brian BurtSo I had to start over from scratch. If there is a way someone please tell me.
Sorry for the nuisance! #2300 (comment)
Reacted by Daniel Cook- pinned this issue
on Jan 7, 2022 As a quick update here, there's work being done to improve/clarify base repositories here: #4859
- removedneeds-designAn engineering task needs design to proceedAn engineering task needs design to proceed
on Mar 16, 2022 Thanks all for your feedback. In the latest release we replaced the "base repository" prompt with a dedicated command
gh repo set-defaultwhich should be clearer. Please leave your feedback about new functionality here; thank you! #6777- unpinned this issue
on Dec 22, 2022 Thanks for addressing this! I've left a comment in the discussion.
I suppose this has recently changed in #1706. The current prompt is confusing to me:
There are two issues here: