Skip to content

Commit 278c234

Browse files
patnikoCopilot
andcommitted
fix: resolve pre-existing CI failures in docs and ruff lint
- docs/guides/custom-agents.md: use typed enum constants instead of string literals for PermissionRequestResultKind (C# and Go examples) - python/copilot/client.py: wrap long docstring line to satisfy E501 Both issues pre-exist on main and block all PR CI runs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 9f746df commit 278c234

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guides/custom-agents.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ session, _ := client.CreateSession(ctx, &copilot.SessionConfig{
121121
},
122122
},
123123
OnPermissionRequest: func(req copilot.PermissionRequest, inv copilot.PermissionInvocation) (copilot.PermissionRequestResult, error) {
124-
return copilot.PermissionRequestResult{Kind: "approved"}, nil
124+
return copilot.PermissionRequestResult{Kind: copilot.PermissionRequestResultKindApproved}, nil
125125
},
126126
})
127127
```
@@ -158,7 +158,7 @@ await using var session = await client.CreateSessionAsync(new SessionConfig
158158
},
159159
},
160160
OnPermissionRequest = (req, inv) =>
161-
Task.FromResult(new PermissionRequestResult { Kind = "approved" }),
161+
Task.FromResult(new PermissionRequestResult { Kind = PermissionRequestResultKind.Approved }),
162162
});
163163
```
164164

0 commit comments

Comments
 (0)