Commit f3321b2
Drop github_token boilerplate from scenario fixtures
Every scenario explicitly threaded GITHUB_TOKEN from the parent env into
the SDK client options:
- Python: github_token=os.environ.get("GITHUB_TOKEN")
- TypeScript: gitHubToken: process.env.GITHUB_TOKEN
- .NET: GitHubToken = Environment.GetEnvironmentVariable("GITHUB_TOKEN")
- Go: GitHubToken: os.Getenv("GITHUB_TOKEN")
- Rust: opts.github_token = std::env::var("GITHUB_TOKEN").ok()
This is pure boilerplate noise: the runtime CLI already reads GITHUB_TOKEN
from its inherited environment when no token is provided to the SDK, so
the explicit pass-through is redundant and nothing a real consumer would
write. Drop the line in every scenario across all 5 languages.
Exception: `auth/gh-app` keeps explicit github_token plumbing because the
whole point of that scenario is to demonstrate passing an OAuth-derived
token obtained at runtime.
Also clean up the resulting unused imports:
- Python: `import os` removed where it was only used for GITHUB_TOKEN
(ruff autofixed).
- Go: `"os"` import removed where it was only used for GITHUB_TOKEN
(gofmt happy).
- Rust: `let mut opts = ClientOptions::default(); ...; Client::start(opts)`
collapsed to `Client::start(ClientOptions::default())` where opts is
no longer mutated.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent d8c0c7c commit f3321b2
112 files changed
Lines changed: 145 additions & 346 deletions
File tree
- test/scenarios
- auth
- byok-anthropic/go
- byok-azure/go
- byok-ollama/go
- byok-openai/go
- gh-app/go
- bundling
- app-direct-server/go
- container-proxy/go
- fully-bundled
- csharp
- go
- python
- typescript/src
- callbacks
- hooks
- csharp
- go
- python
- rust/src
- typescript/src
- permissions
- csharp
- go
- python
- rust/src
- typescript/src
- user-input
- csharp
- go
- python
- rust/src
- typescript/src
- modes
- default
- csharp
- go
- python
- rust/src
- typescript/src
- minimal
- csharp
- go
- python
- typescript/src
- prompts
- attachments
- csharp
- go
- python
- rust/src
- typescript/src
- reasoning-effort
- csharp
- go
- python
- rust/src
- typescript/src
- system-message
- csharp
- go
- python
- rust/src
- typescript/src
- sessions
- concurrent-sessions
- csharp
- go
- python
- rust/src
- typescript/src
- infinite-sessions
- csharp
- go
- python
- rust/src
- typescript/src
- session-resume
- csharp
- go
- python
- rust/src
- typescript/src
- streaming
- csharp
- go
- python
- rust/src
- typescript/src
- tools
- custom-agents
- csharp
- go
- python
- rust/src
- typescript/src
- mcp-servers
- csharp
- go
- python
- rust/src
- typescript/src
- no-tools
- csharp
- go
- python
- rust/src
- typescript/src
- skills
- csharp
- go
- python
- rust/src
- typescript/src
- tool-filtering
- csharp
- go
- python
- rust/src
- typescript/src
- tool-overrides
- csharp
- go
- python
- rust/src
- typescript/src
- virtual-filesystem
- csharp
- go
- python
- typescript/src
- transport
- reconnect/go
- stdio
- csharp
- go
- python
- rust/src
- typescript/src
- tcp
- go
- rust/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
70 | 70 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
193 | 193 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 13 | + | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
| |||
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
44 | 41 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 7 | + | |
11 | 8 | | |
12 | 9 | | |
13 | 10 | | |
| |||
0 commit comments