From dc4ca5c13db04f834a8d5f5261497a12309c2ad4 Mon Sep 17 00:00:00 2001 From: Langpeu Date: Wed, 19 Jun 2024 21:14:09 +0900 Subject: [PATCH] feat: Added Swift language support (#335) Hello, Thanks for sharing this awesome project. This little patch fixes the following issue with Gitlab integration: 1. I have added .swift files to the languageMap to enable Swift code reviews. --- packages/code-review-gpt/src/review/constants.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/code-review-gpt/src/review/constants.ts b/packages/code-review-gpt/src/review/constants.ts index c5cd0c21..88d4bfdd 100644 --- a/packages/code-review-gpt/src/review/constants.ts +++ b/packages/code-review-gpt/src/review/constants.ts @@ -55,6 +55,7 @@ export const languageMap: { [key: string]: string } = { ".vue": "Vue", ".tf": "Terraform", ".hcl": "Terraform", + ".swift":"Swift" }; export const supportedFiles = new Set(Object.keys(languageMap));