diff --git a/.all-contributorsrc b/.all-contributorsrc
index 32f5734184c4..90ce80d3a163 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -3530,6 +3530,15 @@
"contributions": [
"code"
]
+ },
+ {
+ "login": "ronodhirSoumik",
+ "name": "Soumik Sarker",
+ "avatar_url": "https://avatars.githubusercontent.com/u/46843689?v=4",
+ "profile": "https://ronodhirsoumik.github.io",
+ "contributions": [
+ "doc"
+ ]
}
],
"contributorsPerLine": 6,
diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml
index cac1250b70e8..bb0ed7e116ae 100644
--- a/.github/workflows/presubmit.yml
+++ b/.github/workflows/presubmit.yml
@@ -1,35 +1,28 @@
name: Presubmit.ai
permissions:
- contents: read
- pull-requests: write
- issues: write
+ contents: read
+ pull-requests: write
+ 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_target:
+ types: [opened, synchronize]
+ pull_request_review_comment:
+ types: [created]
jobs:
- review:
- runs-on: ubuntu-latest
- steps:
- - name: Check required secrets
- run: |
- if [ -z "${{ secrets.LLM_API_KEY }}" ]; then
- echo "Error: LLM_API_KEY secret is not configured"
- 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_MODEL: "gemini-1.5-flash"
+ review:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check required secrets
+ run: |
+ if [ -z "${{ secrets.LLM_API_KEY }}" ]; then
+ echo "Error: LLM_API_KEY secret is not configured"
+ exit 1
+ fi
+ - uses: presubmit/ai-reviewer@latest
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
+ LLM_MODEL: "gpt-5-nano"
\ No newline at end of file
diff --git a/README.md b/README.md
index 2c2e375bf4f9..bfcdd0f63dbf 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@
[](https://sonarcloud.io/dashboard?id=iluwatar_java-design-patterns)
[](https://gitter.im/iluwatar/java-design-patterns?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
-[](#contributors-)
+[](#contributors-)
@@ -576,6 +576,7 @@ This project is licensed under the terms of the MIT license.