Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: Optional branch picking in the Git repository picker API #111518

Closed
2 tasks done
joaomoreno opened this issue Nov 30, 2020 · 0 comments
Closed
2 tasks done

Test: Optional branch picking in the Git repository picker API #111518

joaomoreno opened this issue Nov 30, 2020 · 0 comments

Comments

@joaomoreno
Copy link
Member

joaomoreno commented Nov 30, 2020

Refs: #106664

Complexity: 3

Create Issue


The git.api.getRemoteSources command now accepts a branch: boolean field which, when true, prompts the user to pick a branch. Please follow the spec and example below, in order to create a sample extension which uses this Git/GitHub API:

#106664 (comment)

You basically only need to write the following code:

await commands.executeCommand('git.api.getRemoteSources', {
	providerLabel: (provider: RemoteSourceProvider) => `Testing the branch picker of ${provider.name}`,
	urlLabel: `URL`,
	branch: true
});

Once that code executes, a repo picker should appear. Pick GitHub. Then a branch picker should appear. The first option should be the repo's default branch (often master).

@joaomoreno joaomoreno added this to the November 2020 milestone Nov 30, 2020
@RMacfarlane RMacfarlane removed their assignment Dec 1, 2020
@gregvanl gregvanl removed their assignment Dec 2, 2020
@gregvanl gregvanl closed this as completed Dec 2, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jan 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants