Repository navigation
Add upstream to forked repositories - #3199
Conversation
|
This is ready 🙏 Though as I said above I'd like feedback specifically about the copy on that dialog ☝️ |
|
@joshaber I would use something like this for the dialog body text:
Also, if they don't choose to update the |
|
I was just going to suggest what @lee-dohm did. For non-github repos, we could show the full URL. For GitHub repos, we could tooltip the name/owner to show the full URL. Also, we may not need to repeat the fork name/owner pair in the message.
|
| <p> | ||
| Would you like to update the <Ref>{UpstreamRemoteName}</Ref> remote | ||
| to use the expected URL? | ||
| • Current: <Ref>{existingURL}</Ref> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| ): Promise<boolean> { | ||
| const key = this.getIgnoreExistingUpstreamRemoteKey(repository) | ||
| const value = localStorage.getItem(key) | ||
| return Promise.resolve(value ? true : false) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| parent: GitHubRepository, | ||
| remotes: ReadonlyArray<IRemote> | ||
| ): IRemote | null { | ||
| const upstream = remotes.find(r => r.name === UpstreamRemoteName) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| const key = this.getIgnoreExistingUpstreamRemoteKey(repository) | ||
| const value = localStorage.getItem(key) | ||
| return Promise.resolve(value ? true : false) | ||
| return Promise.resolve(value === '1' ? true : false) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@tooomm Can you open a new issue and fill out the template so we can better help you? |
|
sure --> #3252 |
|
With this fix, will the repository properties dialog show both the origin and upstream repositories? Do you know when this fix will ship? |
@KirkMunro , no this PR deals only with allowing you to checkout a branch from a fork. We are planning on shipping sometime this month. |
|
@KirkMunro please open a new issue if you would like to see the upstream remote URL in the repository settings dialog |




Fixes #2364
upstreamremote.