From cedca79650f5f2dd9d4196ce6d6048097315f6c9 Mon Sep 17 00:00:00 2001 From: Divyansh Singh Date: Tue, 6 Jun 2023 14:02:24 +0530 Subject: [PATCH] fix: remove configuration enabled check from AI button (#170) --- .../GenerateAIDescription/DescriptionGeneratorButton.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/content-scripts/components/GenerateAIDescription/DescriptionGeneratorButton.ts b/src/content-scripts/components/GenerateAIDescription/DescriptionGeneratorButton.ts index d10f5000..6c54d5a4 100644 --- a/src/content-scripts/components/GenerateAIDescription/DescriptionGeneratorButton.ts +++ b/src/content-scripts/components/GenerateAIDescription/DescriptionGeneratorButton.ts @@ -73,10 +73,6 @@ export const getAiDescription = async (prUrl: string) => { throw new Error("Configuration file is empty!"); } - if (!descriptionConfig.enabled) { - throw new Error("AI PR description is disabled!"); - } - const [diff, commitMessages] = await getDescriptionContext(prApiUrl, descriptionConfig.config.source); if (!diff && !commitMessages) {