GitHub - add support for batch avatar query (#238114)

This commit is contained in:
Ladislau Szomoru
2025-01-17 10:56:49 +01:00
committed by GitHub
parent b7ffd704f7
commit 5e399f3069
6 changed files with 109 additions and 40 deletions

View File

@@ -289,8 +289,14 @@ export interface BranchProtectionProvider {
provideBranchProtection(): BranchProtection[];
}
export interface AvatarQuery {
readonly commit: string;
readonly authorName?: string;
readonly authorEmail?: string;
}
export interface SourceControlHistoryItemDetailsProvider {
provideAvatar(repository: Repository, commit: string, authorName?: string, authorEmail?: string): Promise<string | undefined>;
provideAvatar(repository: Repository, query: AvatarQuery[]): Promise<Map<string, string | undefined> | undefined>;
provideHoverCommands(repository: Repository): Promise<Command[] | undefined>;
provideMessageLinks(repository: Repository, message: string): Promise<string | undefined>;
}