Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions .github/workflows/gpt_pr_review.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
name: AI Code Reviewer

on:
pull_request:
types: [opened, synchronize]

types:
- opened
- reopened
permissions: write-all
jobs:
code_review_job:
review:
runs-on: ubuntu-latest
name: ChatGPT Code Review
steps:
- name: GenAI Code Review
uses: cirolini/genai-code-review@v2
- name: Checkout Repo
uses: actions/checkout@v3

- name: AI Code Reviewer
uses: your-username/ai-code-reviewer@main
with:
openai_api_key: ${{ secrets.openai_api_key }}
github_token: ${{ secrets.GH_TOKEN }}
github_pr_id: ${{ github.event.number }}
openai_model: "gpt-3.5-turbo" # optional
openai_temperature: 0.5 # optional
openai_max_tokens: 2048 # optional
mode: files # files or patch
# custom_prompt: "" # optional
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # The GITHUB_TOKEN is there by default so you just need to keep it like it is and not necessarily need to add it as secret as it will throw an error. [More Details](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret)
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_MODEL: "gpt-4" # Optional: defaults to "gpt-4"
exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas
2 changes: 2 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Future<void> main() async {

uiReceivePort.listen((message) async {
print("🔷 Received message '$message' in UI");

print("TESTING 123");
});

await initializeService();
Expand Down
Loading