Commit 036e74a
🩹 [Patch]: Update the examples for how to connect using the module (#489)
## Description
This pull request updates the `examples/Connecting.ps1` script to
clarify and expand the usage examples for GitHub connection methods,
including new authentication flows and improved documentation. The
changes also make some minor corrections to comments and example
commands related to context management.
Authentication and connection improvements:
* Added examples for connecting to GitHub programmatically using a token
and clarified support for both fine-grained and classic PATs in the
`Connect-GitHub` command.
* Added new examples for connecting using a GitHub App with a private
key stored in Azure Key Vault, including the use of `Connect-GitHubApp`
for organizational contexts.
* Improved comments for OAuth App, Device Flow, and PAT authentication
flows to clarify best practices and supported scenarios.
Context and profile management:
* Updated comments to clarify that context names can be tab-completed
and corrected a typo in the `Switch-GitHubContext` example
(`Switch-GitHubCwontext`).
## Type of change
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [ ] 📖 [Docs]
- [ ] 🪲 [Fix]
- [x] 🩹 [Patch]
- [ ] 1 parent 2dff5b7 commit 036e74a
1 file changed
+15
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | | - | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | | - | |
25 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
| |||
37 | 45 | | |
38 | 46 | | |
39 | 47 | | |
40 | | - | |
| 48 | + | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
46 | | - | |
47 | | - | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
| |||
0 commit comments