Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 07d07fa

Browse files
committed
Merge branch 'fixes/1644-GitServiceHelper-avoid-MEF' of https://github.com/github/VisualStudio.git
2 parents 66a7ad7 + 206de38 commit 07d07fa

File tree

5 files changed

+64
-24
lines changed

5 files changed

+64
-24
lines changed

docs/getting-started/authenticating-to-github.md

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,43 @@
11
# Authenticating to GitHub
22

3-
Add your GitHub.com or GitHub Enterprise account information to GitHub Desktop so you can access your repositories.
3+
## How to login to GitHub or GitHub Enterprise
4+
5+
1. In Visual Studio, select **Team Explorer** from the **View** menu.
6+
<a href="images/view_team_explorer.png?raw=true" target="_blank"><div><img src="images/view_team_explorer.png" alt="Team Explorer in the view menu" width="500px"/></div></a>
7+
1. In the Team Explorer pane, click the **Manage Connectios** toolbar icon.
8+
<a href="images/manage_connections.png?raw=true" target="_blank"><div><img src="images/manage_connections.png" alt="Manage connections toolbar icon in the Team Explorer pane" width="500px"/></div></a>
9+
1. Click the **Connect** link in the GitHub section.
10+
<a href="images/sign-in-to-github-provider.png?raw=true" target="_blank"><div><img src="images/sign-in-to-github-provider.png" alt="Connect to GitHub" height="300px"/></div></a>
11+
12+
If you're connected to a TFS instance, click on the **Sign in** link instead
13+
<a href="images/sign-in-to-github.png?raw=true" target="_blank"><div><img src="images/sign-in-to-github.png" alt="Sign in to GitHub" width="300px"/></div></a>
14+
15+
If none of these options are visible, click **Manage Connections** and then **Connect to GitHub**.
16+
<a href="images/connect_to_github.png?raw=true" target="_blank"><div><img src="images/connect_to_github.png" alt="Connect to GitHub in the manage connections dropdown in the Team Explorer pane" width="500px"/></div></a>
17+
1. In the **Connect to GitHub dialog** choose **GitHub** or **GitHub Enterprise**, depending on which product you're using.
18+
19+
**GitHub option**:
20+
<a href="images/connect-to-github-dialog.png?raw=true" target="_blank"><div><img src="images/connect-to-github-dialog.png" alt="Connect to GitHub dialog view" height="400px"/></div></a>
21+
22+
- To sign in with credentials, enter either username or email and password.
23+
- To sign in with SSO, select `Sign in with your browser`.
24+
25+
**GitHub Enterprise option**:
26+
<a href="images/connect-to-github-enterprise-dialog.png?raw=true" target="_blank"><div><img src="images/connect-to-github-enterprise-dialog.png" alt="Connect to GitHub Enterprise dialog view" height="400px"/></div></a>
27+
28+
- To sign in with SSO, enter the GitHub Enterprise server address and select `Sign in with your browser`.
29+
- To sign in with credentials, enter the GitHub Enterprise server address.
30+
- If a `Password` field appears, enter your password.
31+
- If a `Token` field appears, enter a valid token. You can create personal access tokens by [following the instructions in the section below](#personal_access_tokens).
432

533
Before you authenticate, you must already have a GitHub or GitHub Enterprise account.
634

735
- For more information on creating a GitHub account, see "[Signing up for a new GitHub account](https://help.github.com/articles/signing-up-for-a-new-github-account/)".
836
- For a GitHub Enterprise account, contact your GitHub Enterprise site administrator.
937

10-
**Note:** If your organization is on the [Business plan](https://help.github.com/articles/organization-billing-plans) and has not enabled SAML single sign-on or login with username and password, you must create and authorize a personal access token to access protected content. In addition, SAML single sign-on is not available for GitHub enterprise versions less than 2.12.2.
38+
### Personal access tokens
1139

12-
### Scopes for personal access tokens
40+
If all signin options above fail, you can manually create a personal access token and use it as your password.
1341

1442
The scopes for the personal access token are: `user`, `repo`, `gist`, and `write:public_key`.
1543
- *user* scope: Grants access to the user profile data. We currently use this to display your avatar and check whether your plans lets you publish private repositories.
@@ -20,21 +48,3 @@ The scopes for the personal access token are: `user`, `repo`, `gist`, and `write
2048
For more information on creating personal access tokens, see "[Creating a personal access token for the command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line).
2149

2250
For more information on authenticating with SAML single sign-on, see "[About authentication with SAML single sign-on](https://help.github.com/articles/about-authentication-with-saml-single-sign-on)."
23-
24-
1. In Visual Studio, select **Team Explorer** from the **View** menu.
25-
![Team Explorer in the view menu](images/view_team_explorer.png)
26-
2. In the Team Explorer pane, click the **Manage Connections** toolbar button.
27-
![Manage connections toolbar button in the Team Explorer pane](images/manage_connections.png)
28-
3. Click the **Connect** link in the GitHub section. If you are already connected to a GitHub instance and want to connect to another, this link will not be visible; instead click **Manage Connections** and then **Connect to GitHub**.
29-
![Connect to GitHub in the manage connections dropdown in the Team Explorer pane](images/connect_to_github.png)
30-
4. In the **Connect to GitHub dialog** choose **GitHub** or **GitHub Enterprise**, depending on which product you're using.
31-
32-
**GitHub option**:
33-
![Connect to GitHub dialog view](images/connect-to-github-dialog.png)
34-
- To sign in with credentials, enter either username or email and password.
35-
- To sign in with SSO, select `Sign in with your browser`.
36-
37-
**GitHub Enterprise option**:
38-
![Connect to GitHub Enterprise dialog view](images/connect-to-github-enterprise-dialog.png)
39-
- To sign in with credentials, first enter GitHub Enterprise server address. Once a valid server address is entered, a `Token` field appears and a valid token can be entered to sign in.
40-
- To sign in with SSO, first enter the GitHub Enterprise server address. Once a valid server address is entered, select `Sign in with your browser`. Follow the steps to authenticate with your SSO provider.
36.1 KB
Loading
17.5 KB
Loading

src/GitHub.InlineReviews/InlineReviewsPackage.vsct

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
<Strings>
5050
<CommandName>GitHub.InlineReviews.NextInlineComment</CommandName>
5151
<ButtonText>Next Comment</ButtonText>
52+
<CanonicalName>.GitHub.NextComment</CanonicalName>
53+
<LocCanonicalName>.GitHub.NextComment</LocCanonicalName>
5254
</Strings>
5355
</Button>
5456
<Button guid="guidGitHubCommandSet" id="PreviousInlineCommentId" priority="0x0100" type="Button">
@@ -58,6 +60,8 @@
5860
<Strings>
5961
<CommandName>GitHub.InlineReviews.PreviousInlineComment</CommandName>
6062
<ButtonText>Previous Comment</ButtonText>
63+
<CanonicalName>.GitHub.PreviousComment</CanonicalName>
64+
<LocCanonicalName>.GitHub.PreviousComment</LocCanonicalName>
6165
</Strings>
6266
</Button>
6367
</Buttons>

src/GitHub.VisualStudio/GitHub.VisualStudio.vsct

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@
7777
<CommandFlag>IconIsMoniker</CommandFlag>
7878
<Strings>
7979
<ButtonText>&amp;Connect to GitHub</ButtonText>
80+
<CanonicalName>.GitHub.ConnectToGitHub</CanonicalName>
81+
<LocCanonicalName>.GitHub.ConnectToGitHub</LocCanonicalName>
8082
</Strings>
8183
</Button>
8284

@@ -85,6 +87,8 @@
8587
<CommandFlag>IconIsMoniker</CommandFlag>
8688
<Strings>
8789
<ButtonText>GitHub</ButtonText>
90+
<CanonicalName>.GitHub.ShowGitHubPane</CanonicalName>
91+
<LocCanonicalName>.GitHub.ShowGitHubPane</LocCanonicalName>
8892
</Strings>
8993
</Button>
9094

@@ -93,8 +97,8 @@
9397
<CommandFlag>IconIsMoniker</CommandFlag>
9498
<Strings>
9599
<ButtonText>Show Current Pull Request</ButtonText>
96-
<CanonicalName>GitHub.ShowCurrentPullRequest</CanonicalName>
97-
<LocCanonicalName>GitHub.ShowCurrentPullRequest</LocCanonicalName>
100+
<CanonicalName>.GitHub.ShowCurrentPullRequest</CanonicalName>
101+
<LocCanonicalName>.GitHub.ShowCurrentPullRequest</LocCanonicalName>
98102
</Strings>
99103
</Button>
100104

@@ -105,6 +109,8 @@
105109
<CommandFlag>DefaultDisabled</CommandFlag>
106110
<Strings>
107111
<ButtonText>Back</ButtonText>
112+
<CanonicalName>.GitHub.Back</CanonicalName>
113+
<LocCanonicalName>.GitHub.Back</LocCanonicalName>
108114
</Strings>
109115
</Button>
110116

@@ -114,6 +120,8 @@
114120
<CommandFlag>DefaultDisabled</CommandFlag>
115121
<Strings>
116122
<ButtonText>Forward</ButtonText>
123+
<CanonicalName>.GitHub.Forward</CanonicalName>
124+
<LocCanonicalName>.GitHub.Forward</LocCanonicalName>
117125
</Strings>
118126
</Button>
119127

@@ -123,6 +131,8 @@
123131
<CommandFlag>DefaultDisabled</CommandFlag>
124132
<Strings>
125133
<ButtonText>Pull Requests</ButtonText>
134+
<CanonicalName>.GitHub.PullRequests</CanonicalName>
135+
<LocCanonicalName>.GitHub.PullRequests</LocCanonicalName>
126136
</Strings>
127137
</Button>
128138

@@ -132,6 +142,8 @@
132142
<CommandFlag>DefaultDisabled</CommandFlag>
133143
<Strings>
134144
<ButtonText>Refresh</ButtonText>
145+
<CanonicalName>.GitHub.Refresh</CanonicalName>
146+
<LocCanonicalName>.GitHub.Refresh</LocCanonicalName>
135147
</Strings>
136148
</Button>
137149

@@ -141,6 +153,8 @@
141153
<CommandFlag>DefaultDisabled</CommandFlag>
142154
<Strings>
143155
<ButtonText>View on GitHub</ButtonText>
156+
<CanonicalName>.GitHub.ViewOnGitHub</CanonicalName>
157+
<LocCanonicalName>.GitHub.ViewOnGitHub</LocCanonicalName>
144158
</Strings>
145159
</Button>
146160

@@ -149,6 +163,8 @@
149163
<CommandFlag>IconIsMoniker</CommandFlag>
150164
<Strings>
151165
<ButtonText>Help</ButtonText>
166+
<CanonicalName>.GitHub.Help</CanonicalName>
167+
<LocCanonicalName>.GitHub.Help</LocCanonicalName>
152168
</Strings>
153169
</Button>
154170

@@ -159,6 +175,8 @@
159175
<CommandFlag>DynamicVisibility</CommandFlag>
160176
<Strings>
161177
<ButtonText>Create a GitHub Gist</ButtonText>
178+
<CanonicalName>.GitHub.CreateGist</CanonicalName>
179+
<LocCanonicalName>.GitHub.CreateGist</LocCanonicalName>
162180
</Strings>
163181
</Button>
164182

@@ -169,6 +187,8 @@
169187
<CommandFlag>DynamicVisibility</CommandFlag>
170188
<Strings>
171189
<ButtonText>Open on GitHub</ButtonText>
190+
<CanonicalName>.GitHub.OpenLink</CanonicalName>
191+
<LocCanonicalName>.GitHub.OpenLink</LocCanonicalName>
172192
</Strings>
173193
</Button>
174194

@@ -179,6 +199,8 @@
179199
<CommandFlag>DynamicVisibility</CommandFlag>
180200
<Strings>
181201
<ButtonText>Copy link to clipboard</ButtonText>
202+
<CanonicalName>.GitHub.CopyLink</CanonicalName>
203+
<LocCanonicalName>.GitHub.CopyLink</LocCanonicalName>
182204
</Strings>
183205
</Button>
184206

@@ -189,16 +211,20 @@
189211
<CommandFlag>DynamicVisibility</CommandFlag>
190212
<Strings>
191213
<ButtonText>Blame</ButtonText>
214+
<CanonicalName>.GitHub.Blame</CanonicalName>
215+
<LocCanonicalName>.GitHub.Blame</LocCanonicalName>
192216
</Strings>
193217
</Button>
194-
218+
195219
<Button guid="guidContextMenuSet" id="openFileInSolutionCommand" type="Button">
196220
<Icon guid="guidImages" id="logo" />
197221
<CommandFlag>IconIsMoniker</CommandFlag>
198222
<CommandFlag>DefaultInvisible</CommandFlag>
199223
<CommandFlag>DynamicVisibility</CommandFlag>
200224
<Strings>
201225
<ButtonText>Open File in Solution</ButtonText>
226+
<CanonicalName>.GitHub.OpenFileInSolution</CanonicalName>
227+
<LocCanonicalName>.GitHub.OpenFileInSolution</LocCanonicalName>
202228
</Strings>
203229
</Button>
204230

0 commit comments

Comments
 (0)