Skip to content

Commit 13c1fa3

Browse files
committed
Requires AI feature access to generate a Pull Request with AI
1 parent 10f9a97 commit 13c1fa3

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)