From 2ecf4507276a3935e073ebc313bc89f74a71fd9d Mon Sep 17 00:00:00 2001 From: N-Yashwitha Date: Fri, 31 Oct 2025 19:11:45 +0530 Subject: [PATCH 01/10] Add Urdu language translation and link in README (fixes #3381) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2c2e375bf4f9..5d9853f83a20 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@
+Read in different language : [**zh**](localization/zh/README.md), [**ko**](localization/ko/README.md), [**ur**](localization/ur/README.md) -Read in different language : [**zh**](localization/zh/README.md), [**ko**](localization/ko/README.md), [**fr**](localization/fr/README.md), [**tr**](localization/tr/README.md), [**ar**](localization/ar/README.md), [**es**](localization/es/README.md), [**pt**](localization/pt/README.md), [**id**](localization/id/README.md), [**ru**](localization/ru/README.md), [**de**](localization/de/README.md), [**ja**](localization/ja/README.md), [**vi**](localization/vi/README.md), [**bn**](localization/bn/README.md), [**np**](localization/ne/README.md), [**it**](localization/it/README.md), [**da**](localization/da/README.md)
# Introduction From 5b0152ab416e1d8dcf1b44d4a7e21deb5bee8d56 Mon Sep 17 00:00:00 2001 From: N-Yashwitha Date: Fri, 31 Oct 2025 19:22:36 +0530 Subject: [PATCH 02/10] Add Urdu link to existing language list --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 5d9853f83a20..f053a17c9c2f 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,7 @@
-Read in different language : [**zh**](localization/zh/README.md), [**ko**](localization/ko/README.md), [**ur**](localization/ur/README.md) - +Read in different language : [**zh**](localization/zh/README.md), [**ko**](localization/ko/README.md), [**fr**](localization/fr/README.md), [**tr**](localization/tr/README.md), [**ar**](localization/ar/README.md), [**es**](localization/es/README.md), [**pt**](localization/pt/README.md), [**id**](localization/id/README.md), [**ru**](localization/ru/README.md), [**de**](localization/de/README.md), [**ja**](localization/ja/README.md), [**vi**](localization/vi/README.md), [**bn**](localization/bn/README.md), [**np**](localization/ne/README.md), [**it**](localization/it/README.md), [**da**](localization/da/README.md), [**ur**](localization/ur/README.md)
# Introduction From d93dcee65fd6ab4a4fa3993709e07510213c0736 Mon Sep 17 00:00:00 2001 From: N-Yashwitha Date: Fri, 31 Oct 2025 19:26:34 +0530 Subject: [PATCH 03/10] Fix: corrected language list formatting and Urdu link --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f053a17c9c2f..9ad58ab60308 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@
+ Read in different language : [**zh**](localization/zh/README.md), [**ko**](localization/ko/README.md), [**fr**](localization/fr/README.md), [**tr**](localization/tr/README.md), [**ar**](localization/ar/README.md), [**es**](localization/es/README.md), [**pt**](localization/pt/README.md), [**id**](localization/id/README.md), [**ru**](localization/ru/README.md), [**de**](localization/de/README.md), [**ja**](localization/ja/README.md), [**vi**](localization/vi/README.md), [**bn**](localization/bn/README.md), [**np**](localization/ne/README.md), [**it**](localization/it/README.md), [**da**](localization/da/README.md), [**ur**](localization/ur/README.md)
From 07ef90432083de09386db984e28594819e55c873 Mon Sep 17 00:00:00 2001 From: N-Yashwitha Date: Fri, 31 Oct 2025 19:37:55 +0530 Subject: [PATCH 04/10] Fix duplicate language line and finalize Urdu link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ad58ab60308..2c2e375bf4f9 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@
-Read in different language : [**zh**](localization/zh/README.md), [**ko**](localization/ko/README.md), [**fr**](localization/fr/README.md), [**tr**](localization/tr/README.md), [**ar**](localization/ar/README.md), [**es**](localization/es/README.md), [**pt**](localization/pt/README.md), [**id**](localization/id/README.md), [**ru**](localization/ru/README.md), [**de**](localization/de/README.md), [**ja**](localization/ja/README.md), [**vi**](localization/vi/README.md), [**bn**](localization/bn/README.md), [**np**](localization/ne/README.md), [**it**](localization/it/README.md), [**da**](localization/da/README.md), [**ur**](localization/ur/README.md) +Read in different language : [**zh**](localization/zh/README.md), [**ko**](localization/ko/README.md), [**fr**](localization/fr/README.md), [**tr**](localization/tr/README.md), [**ar**](localization/ar/README.md), [**es**](localization/es/README.md), [**pt**](localization/pt/README.md), [**id**](localization/id/README.md), [**ru**](localization/ru/README.md), [**de**](localization/de/README.md), [**ja**](localization/ja/README.md), [**vi**](localization/vi/README.md), [**bn**](localization/bn/README.md), [**np**](localization/ne/README.md), [**it**](localization/it/README.md), [**da**](localization/da/README.md)
# Introduction From 7a5dd53c44f834b8d64d84d9afbdc6a11748ddd5 Mon Sep 17 00:00:00 2001 From: N-Yashwitha Date: Fri, 31 Oct 2025 19:52:28 +0530 Subject: [PATCH 05/10] Fix: replace invalid Gemini model with gemini-1.0-pro --- .github/workflows/presubmit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index cac1250b70e8..6a2ec7be28f2 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -32,4 +32,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LLM_API_KEY: ${{ secrets.LLM_API_KEY }} - LLM_MODEL: "gemini-1.5-flash" + LLM_MODEL: "gemini-1.0-pro" From da79318494b795b03649c6f96550864b68085ee0 Mon Sep 17 00:00:00 2001 From: N-Yashwitha Date: Fri, 31 Oct 2025 20:10:45 +0530 Subject: [PATCH 06/10] Fix: update LLM model to gemini-1.5-flash for presubmit workflow --- .github/workflows/presubmit.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index 6a2ec7be28f2..2e2c3a13ce80 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -32,4 +32,5 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LLM_API_KEY: ${{ secrets.LLM_API_KEY }} - LLM_MODEL: "gemini-1.0-pro" + LLM_MODEL: "gemini-1.5-flash" + From 118d251f1f284c0bae619afb546488e3face1cf3 Mon Sep 17 00:00:00 2001 From: N-Yashwitha Date: Fri, 31 Oct 2025 20:16:35 +0530 Subject: [PATCH 07/10] Fix presubmit.yml to use OpenAI model instead of Gemini --- .github/workflows/presubmit.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index 2e2c3a13ce80..f91b82f9aae6 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -28,9 +28,10 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - name: Run AI Reviewer - uses: presubmit/ai-reviewer@latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - LLM_API_KEY: ${{ secrets.LLM_API_KEY }} - LLM_MODEL: "gemini-1.5-flash" + uses: presubmit/ai-reviewer@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + LLM_API_KEY: ${{ secrets.LLM_API_KEY }} + LLM_PROVIDER: "openai" + LLM_MODEL: "gpt-4-turbo" From f2f7ae2b5c512e0c562762fc5b9f806091033680 Mon Sep 17 00:00:00 2001 From: N-Yashwitha Date: Fri, 31 Oct 2025 20:37:12 +0530 Subject: [PATCH 08/10] Fix: run workflow on fork with accessible secrets --- .github/workflows/presubmit.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index f91b82f9aae6..ab425d3973cd 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -6,10 +6,9 @@ permissions: issues: write on: - pull_request_target: # Handle forked repository PRs in the base repository context - types: [opened, synchronize] - pull_request_review_comment: # Handle review comments - types: [created] + pull_request: + types: [opened, synchronize, reopened] + jobs: review: From 8b152c5a5f99069c13b7d72ff271343a25cadd3f Mon Sep 17 00:00:00 2001 From: N-Yashwitha Date: Fri, 31 Oct 2025 20:39:58 +0530 Subject: [PATCH 09/10] Fix: remove Gemini and use OpenAI model for presubmit workflow --- .github/workflows/presubmit.yml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index ab425d3973cd..550667866498 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -1,15 +1,9 @@ name: Presubmit.ai -permissions: - contents: read - pull-requests: write - issues: write - on: pull_request: types: [opened, synchronize, reopened] - jobs: review: runs-on: ubuntu-latest @@ -21,16 +15,10 @@ jobs: exit 1 fi - - name: Check out PR code - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.sha }} - - name: Run AI Reviewer - uses: presubmit/ai-reviewer@latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - LLM_API_KEY: ${{ secrets.LLM_API_KEY }} - LLM_PROVIDER: "openai" - LLM_MODEL: "gpt-4-turbo" - + uses: presubmit/ai-reviewer@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + LLM_API_KEY: ${{ secrets.LLM_API_KEY }} + LLM_PROVIDER: "openai" + LLM_MODEL: "gpt-4-turbo" From 98e4d1b5ff281cb70bc0b9cce5a75a9ddd24cade Mon Sep 17 00:00:00 2001 From: N-Yashwitha Date: Fri, 31 Oct 2025 20:42:44 +0530 Subject: [PATCH 10/10] Fix: use OpenAI gpt-4-turbo instead of Gemini in presubmit workflow --- .github/workflows/presubmit.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index 550667866498..6bcb0c29e497 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -1,8 +1,13 @@ name: Presubmit.ai +permissions: + contents: read + pull-requests: write + issues: write + on: pull_request: - types: [opened, synchronize, reopened] + types: [opened, synchronize] jobs: review: @@ -15,10 +20,15 @@ jobs: exit 1 fi + - name: Check out PR code + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} + - name: Run AI Reviewer uses: presubmit/ai-reviewer@latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LLM_API_KEY: ${{ secrets.LLM_API_KEY }} - LLM_PROVIDER: "openai" - LLM_MODEL: "gpt-4-turbo" + LLM_PROVIDER: openai + LLM_MODEL: gpt-4-turbo