diff --git a/.github/workflows/gpt_pr_review.yml b/.github/workflows/gpt_pr_review.yml index 560442c..12a3e02 100644 --- a/.github/workflows/gpt_pr_review.yml +++ b/.github/workflows/gpt_pr_review.yml @@ -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 \ No newline at end of file + 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 \ No newline at end of file diff --git a/lib/main.dart b/lib/main.dart index f118b72..8809e6f 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -18,6 +18,8 @@ Future main() async { uiReceivePort.listen((message) async { print("🔷 Received message '$message' in UI"); + + print("TESTING 123"); }); await initializeService();