Skip to content

Commit 2b69d38

Browse files
committed
Requires AI feature access to generate a Pull Request with AI
(vscode-gitlens-private#43, #4177)
1 parent 403f5cd commit 2b69d38

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/plus/ai/aiProviderService.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,10 @@ export class AIProviderService implements Disposable {
530530
progress?: ProgressOptions;
531531
},
532532
): Promise<AISummarizeResult | undefined> {
533+
if (!(await this.ensureFeatureAccess('generateChangelog', source))) {
534+
return undefined;
535+
}
536+
533537
const diff = await repo.git.diff().getDiff?.(compareRef, baseRef, { notation: '...' });
534538

535539
const log = await this.container.git.commits(repo.path).getLog(`${baseRef}..${compareRef}`);

0 commit comments

Comments
 (0)