From 7b7d09d4580edbd36c82615e3fa28e21904a0b72 Mon Sep 17 00:00:00 2001 From: Jim <32538482+nietsnielin@users.noreply.github.com> Date: Tue, 11 Feb 2025 15:59:51 +0800 Subject: [PATCH 1/6] Update code_review.yml --- .github/workflows/code_review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/code_review.yml b/.github/workflows/code_review.yml index 3edcf77..a224759 100644 --- a/.github/workflows/code_review.yml +++ b/.github/workflows/code_review.yml @@ -12,7 +12,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - name: Code Review - uses: freeedcom/ai-codereviewer@main + uses: nietsnielin/ai-codereviewer@main with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} From ff01bcd755a7a1b3ffb3116cc81b2a844285f14e Mon Sep 17 00:00:00 2001 From: Jim <32538482+nietsnielin@users.noreply.github.com> Date: Tue, 11 Feb 2025 16:01:17 +0800 Subject: [PATCH 2/6] Add files via upload --- test.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test.py diff --git a/test.py b/test.py new file mode 100644 index 0000000..a05a9f1 --- /dev/null +++ b/test.py @@ -0,0 +1,9 @@ +# 讀取文件 +with open('input.txt', 'r') as file: + content = file.read() + print("文件內容:", content) + +# 寫入文件 +with open('output.txt', 'w') as file: + file.write("這是寫入的新內容。") + print("內容已寫入output.txt")s \ No newline at end of file From e8f2770cc1d85aae68a0f9f4f16e391caeba143f Mon Sep 17 00:00:00 2001 From: Jim <32538482+nietsnielin@users.noreply.github.com> Date: Tue, 11 Feb 2025 16:25:13 +0800 Subject: [PATCH 3/6] Update code_review.yml --- .github/workflows/code_review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/code_review.yml b/.github/workflows/code_review.yml index a224759..781b815 100644 --- a/.github/workflows/code_review.yml +++ b/.github/workflows/code_review.yml @@ -16,5 +16,5 @@ jobs: with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - OPENAI_API_MODEL: "gpt-4-1106-preview" + OPENAI_API_MODEL: "gpt-4o-mini" exclude: "yarn.lock,dist/**" From f5e8e9c67505244a2993bf676ae542739d49e1b1 Mon Sep 17 00:00:00 2001 From: Jim <32538482+nietsnielin@users.noreply.github.com> Date: Tue, 11 Feb 2025 16:32:29 +0800 Subject: [PATCH 4/6] Update code_review.yml --- .github/workflows/code_review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/code_review.yml b/.github/workflows/code_review.yml index 781b815..323f683 100644 --- a/.github/workflows/code_review.yml +++ b/.github/workflows/code_review.yml @@ -12,7 +12,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - name: Code Review - uses: nietsnielin/ai-codereviewer@main + uses: freeedcom/ai-codereviewer@maino1 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} From 2eb4fe19d681c93a5c431b2f41d22eacc210f882 Mon Sep 17 00:00:00 2001 From: Jim <32538482+nietsnielin@users.noreply.github.com> Date: Tue, 11 Feb 2025 16:33:00 +0800 Subject: [PATCH 5/6] Delete action.yml --- action.yml | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 action.yml diff --git a/action.yml b/action.yml deleted file mode 100644 index 976aed7..0000000 --- a/action.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: "AI Code Review Action" -description: "Perform code reviews and comment on diffs using OpenAI API." -inputs: - GITHUB_TOKEN: - description: "GitHub token to interact with the repository." - required: true - OPENAI_API_KEY: - description: "OpenAI API key for GPT." - required: true - OPENAI_API_MODEL: - description: "OpenAI API model." - required: false - default: "gpt-4" - exclude: - description: "Glob patterns to exclude files from the diff analysis" - required: false - default: "" -runs: - using: "node16" - main: "dist/index.js" -branding: - icon: "aperture" - color: "green" From 94678dafe1018154a5d47fff58a7e148abd04e2b Mon Sep 17 00:00:00 2001 From: JIMLIN Date: Tue, 11 Feb 2025 16:35:13 +0800 Subject: [PATCH 6/6] 1.0001 --- info.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 info.txt diff --git a/info.txt b/info.txt new file mode 100644 index 0000000..d800886 --- /dev/null +++ b/info.txt @@ -0,0 +1 @@ +123 \ No newline at end of file