Tyler McGoffin
13e916bcfb
Change prompts for gh auth login to reflect change from GHE to Other
2024-09-20 14:10:05 -07:00
Tyler McGoffin
bc587f6576
Sentence case 'Other' option in hostname prompt
2024-09-20 13:55:20 -07:00
Tyler McGoffin
46790977bb
Add documentation explaining how to use hostname for gh auth login
2024-09-19 15:25:23 -07:00
Tyler McGoffin
5dd5246307
Replace "GitHub Enterprise Server" with "other" in gh auth login prompt
...
This change is meant to better support the login flow for other customers
besides GitHub Enterprise Server customers that use the same login flow
as GHES.
2024-09-19 15:25:23 -07:00
Andy Feller
24336f1344
Enhance gh repo create docs, fix random cmd link
...
Relates #8946
- updates the documentation within `gh repo create` to include links to lookup .gitignore templates and licenses
- fixes link markup within `gh auth setup-git` so link is formatted correctly on https://cli.github.com
2024-09-16 13:42:51 -04:00
Andy Feller
03c34e71f9
Expand active test cases
2024-08-30 10:57:51 -04:00
Velmurugan
1eecfd4530
Added --active flag to the gh auth status command
2024-08-24 16:24:51 +05:30
Stausssi
e7606363fb
document exit code behavior
2024-07-22 20:36:22 +02:00
Simon
0a3a12839d
Exit with 1 on authentication failure
2024-07-22 20:22:42 +02:00
William Martin
a37253746e
Remove TODO and add comment on LoginFlow tests
2024-05-17 14:51:02 +02:00
William Martin
3fe555b0bb
Comment the purpose of the helper config contract
2024-05-17 14:33:19 +02:00
William Martin
540bda1a6b
Test git credentials are configured in LoginFlow
2024-05-17 14:31:21 +02:00
William Martin
ba1afa2c5d
Add HelperConfig contract test and FakeHelperConfig
2024-05-17 14:16:14 +02:00
William Martin
3ea937d903
Inject GitCredentialFlow to LoginFlow as test seam
2024-05-17 13:26:23 +02:00
William Martin
3803fd04b9
Add Helper test for Windows
2024-05-16 17:01:41 +02:00
William Martin
64d50e6fbc
Add tests for gitcredentials Updater
2024-05-16 15:37:18 +02:00
William Martin
37abb3ec96
Fix mistaken git installation error check
2024-05-16 14:38:51 +02:00
William Martin
e07a26d81c
Move gitcredentials HelperConfig and add tests
2024-05-16 14:34:28 +02:00
William Martin
d75548a630
Comment the new gitcredentials package
2024-05-16 13:48:53 +02:00
William Martin
187c5016f0
Comment the git credential flow
2024-05-16 13:39:42 +02:00
William Martin
818d4ba5b8
Remove unnecessary credential setup private method
2024-05-16 13:39:42 +02:00
William Martin
c16836bcf7
Use tighter interface in setup-git
2024-05-16 13:39:42 +02:00
William Martin
177cf7d35b
Rename gitcredentials Configure to ConfigureOurs
2024-05-16 13:15:26 +02:00
William Martin
bd4ba5c39a
Make gitcredential helper smarter
2024-05-16 13:15:26 +02:00
William Martin
af589aa2f3
Move fetching configured helper into gitcredentials
2024-05-16 12:39:11 +02:00
William Martin
a3d65e0dce
Extract units for configuring and updating git credential helpers
2024-05-16 12:32:55 +02:00
William Martin
07e0ff7127
Fix repo fork to use remote protocol if none configured
2024-05-10 10:48:36 +02:00
William Martin
1d38230675
Move config interfaces into gh package ( #9060 )
2024-05-10 10:39:36 +02:00
William Martin
5007c18f5f
Fix unused params across project
2024-05-07 17:50:43 +02:00
William Martin
4ca098b0c9
Adjust short and long to be the same
2024-05-01 14:17:08 +02:00
William Martin
5a5b04d132
Document relationship between host and active account
2024-05-01 11:14:00 +02:00
Nero Blackstone​
93113e12ea
Add colon at the end of secret prompts ( #9004 )
2024-04-26 12:58:45 +02:00
Babak K. Shandiz
1992fdeb1a
Use filepath.Join to support different platforms
...
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-04-14 00:09:53 +01:00
Babak K. Shandiz
a269032fd3
Refactor into table tests
...
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-04-13 21:13:12 +01:00
Babak K. Shandiz
2c6343ad56
Explain --skip-ssh-key usage in long doc
...
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-04-13 15:47:44 +01:00
Babak K. Shandiz
8839ee7ddf
Test --skip-ssh-key is captured correctly
...
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-04-06 13:11:02 +01:00
Babak K. Shandiz
0a77c56c44
Add test to verify skipped SSH key prompts
...
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-04-06 12:47:09 +01:00
Babak K. Shandiz
cf9699bbbb
Add --skip-ssh-key to options
...
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-04-06 12:46:05 +01:00
Babak K. Shandiz
3a3450fec5
Add SkipSSHKey field to LoginOptions
...
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-04-06 12:45:26 +01:00
ihommani
1cac2280aa
Fix typo in auth switch help example
2024-03-23 20:56:09 +00:00
William Martin
0f5d2aed0a
Document auth switch behaviour for two or more accounts
2024-03-18 17:24:38 +01:00
Josh Soref
6ff355049c
Improve discovery of gh auth status
2024-03-18 12:09:27 -04:00
Greg Smith
df446b47fc
fixed doc string
2024-03-06 14:08:59 -08:00
Raj Hawaldar
76ec5d5454
Add force flag to setup-git command ( #8552 )
...
Co-authored-by: William Martin <williammartin@github.com>
2024-01-18 13:28:37 +01:00
Frederic Pillon
55d251ac51
Fix some typos raised by codespell
...
With .codespellignore containing:
aline
commitish
messag
noes
nwo
parth
prfiles
runn
timere
ue
welp
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
2024-01-17 15:34:49 +01:00
Sam Coe
52fb3b62b3
Update multi-account migration error msg ( #8448 )
...
* Make sure default host is stubbed out for all auth login tests
* Improve multi-account migration error message
2023-12-11 15:20:23 +00:00
William Martin
b281269052
Fix affect effect typo in login cmd
2023-12-07 15:03:26 +01:00
Sam Coe
94de5290e0
Auth switch special case one host with two users to avoid unnecessary prompting
2023-12-07 09:44:07 -04:00
William Martin
0763c1d4a7
Locally prevent mixup of username and token in refresh
2023-12-07 11:43:05 +01:00
William Martin
16cfe5f21a
Fix token username return ordering in auth refresh
2023-12-07 11:35:02 +01:00