Feature Request: set remote tracking branch when checking github pull request

5 views
Skip to first unread message

Luiz Americo Pereira Camara

unread,
Apr 10, 2024, 3:29:59 AMApr 10
to smar...@googlegroups.com
I have a github repository where team  members open pull requests

To checkout the PR i go to Log window, in the Branches pane, Pull Requests tree i select the pull request and click fetch

The branch is fetched and i can do the checkout selecting a commit

The problem is that the tracking branch is not set to the origin remote

Trying to set the tracking branch manually does not work because the remote branch is not listed

FYI: in vscode Github extension i click in the pull request, select checkout and the tracking branch is automatically set


Luiz



syntevo Support

unread,
Apr 15, 2024, 4:35:26 AMApr 15
to smar...@googlegroups.com
Hi,

Thank you for your feedback!

Currently we only fetch the Pull Request commit id in this scenarios!

If you feel a different handling would be better feel free to propose a scenario on our user echo page with detailed description and ideas.

https://smartgit.userecho.com/

--
Best regards,
Daniel Siegl
syntevo GmbH
https://www.syntevo.com
> --
> You received this message because you are subscribed to the Google Groups
> "SmartGit" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> smartgit+u...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/smartgit/CA%2BnZ%3DyP%3DZar0U0FgTzQqRW6iJhkSSnYDxZM6HXQ6-hTbepQ8iQ%40mail.gmail.com.
>

Luiz Americo Pereira Camara

unread,
Apr 27, 2024, 9:20:19 AMApr 27
to smar...@googlegroups.com

I also need this feature.

One important thing is when doing the checkout, the tracked branch must be set to the PR branch, so is possible to eventually push commits to the PR branch. This is how the Pull Request vscode extension works: it lists the available PR, when you right click, there's a 'Checkout' command, when executing 'Checkout' command the tracked branch of local branch is set to the PR branch


> I found a trick using only UI, athough it's not one-step yet:

This trick does not set the tracked branch

Luiz

syntevo Support

unread,
May 2, 2024, 2:21:21 AMMay 2
to smar...@googlegroups.com
Hi Luiz,

Thank you for your feedback - we are discussing this internally.

--
Best regards,
Daniel Siegl
syntevo GmbH
https://www.syntevo.com


04/27/2024 15:21 - Luiz Americo Pereira Camara wrote:

> I upvoted and added a comment to an existing request:
> https://smartgit.userecho.com/communities/1/topics/837-githubothers-allow-to-easily-check-out-pull-request-source#comment-4533
>
> I also need this feature.
>
> One important thing is when doing the checkout, the tracked branch must be
> set to the PR branch, so is possible to eventually push commits to the PR
> branch. This is how the Pull Request vscode extension
> <https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github>
> > https://groups.google.com/d/msgid/smartgit/1713170087.983459.116433182%40syntevo.com
> > .
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "SmartGit" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> smartgit+u...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/smartgit/CA%2BnZ%3DyMxBVU6rf5aJ1J6NagBGogzmk-C%2BFvEbgTAfx_tatM-dQ%40mail.gmail.com.
>
Reply all
Reply to author
Forward
0 new messages