Skip to content

Commit 03acc9b

Browse files
feat(dotnet): add [Obsolete] GithubToken property for backward compatibility
Adds a deprecated GithubToken property that forwards to GitHubToken, allowing existing consumers to migrate without breaking changes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 680e81d commit 03acc9b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

dotnet/src/Types.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ protected CopilotClientOptions(CopilotClientOptions? other)
7474
/// </summary>
7575
public string? GitHubToken { get; set; }
7676

77+
/// <summary>
78+
/// Obsolete. Use <see cref="GitHubToken"/> instead.
79+
/// </summary>
80+
[Obsolete("Use GitHubToken instead.", error: false)]
81+
public string? GithubToken
82+
{
83+
get => GitHubToken;
84+
set => GitHubToken = value;
85+
}
86+
7787
/// <summary>
7888
/// Whether to use the logged-in user for authentication.
7989
/// When true, the CLI server will attempt to use stored OAuth tokens or gh CLI auth.

0 commit comments

Comments
 (0)