48 Commits

Author SHA1 Message Date
265996e564 添加 quicksort.py
All checks were successful
ai-reviews / Review PR (pull_request) Successful in 3m21s
2025-10-20 13:35:11 +00:00
afddab0584 添加 .gitea/workflows/test1.yml 2025-10-20 13:20:18 +00:00
47af4aca14 更新 .gitea/workflows/code-review.yml 2025-10-20 11:33:37 +00:00
a303098ec8 更新 .gitea/workflows/code-review.yml 2025-10-20 11:27:05 +00:00
0469b97bd5 更新 .gitea/workflows/code-review.yml 2025-10-20 11:25:36 +00:00
7573374102 更新 .gitea/workflows/code-review.yml 2025-10-20 11:24:25 +00:00
8d7894ef9a 更新 .gitea/workflows/code-review.yml 2025-10-20 11:17:57 +00:00
b7db13bd32 更新 .gitea/workflows/code-review.yml 2025-10-20 11:16:00 +00:00
91312268aa 更新 .gitea/workflows/code-review.yml 2025-09-03 02:02:03 +00:00
sgx
d4a81d36de 添加AI审查失败时的PR评论功能 2025-09-03 09:25:20 +08:00
2b2e5da541 更新 .gitea/workflows/code-review.yml 2025-08-27 00:59:46 +00:00
e768a3975b 更新 .gitea/workflows/code-review.yml 2025-08-27 00:55:47 +00:00
5ac3791a05 更新 .gitea/workflows/code-review.yml 2025-08-27 00:48:43 +00:00
ac633048b4 更新 .gitea/workflows/code-review.yml 2025-08-26 13:47:32 +00:00
a82c158c5f 更新 .gitea/workflows/code-review.yml 2025-08-26 13:42:41 +00:00
858b205d5d 更新 .gitea/workflows/code-review.yml 2025-08-26 12:49:44 +00:00
b793db559e 更新 .gitea/workflows/code-review.yml 2025-08-26 12:38:58 +00:00
8e523bf976 更新 .gitea/workflows/code-review.yml 2025-08-26 09:06:20 +00:00
aca3b6ecb5 更新 .gitea/workflows/code-review.yml 2025-08-26 08:54:54 +00:00
6acf5a68a4 更新 .gitea/workflows/code-review.yml 2025-08-26 08:52:02 +00:00
5fade46e46 更新 .gitea/workflows/code-review.yml 2025-08-26 08:36:44 +00:00
c51d6cb241 更新 .gitea/workflows/code-review.yml 2025-08-26 06:19:51 +00:00
0cd09e473c 更新 .gitea/workflows/code-review.yml 2025-08-26 05:47:19 +00:00
33b0426313 更新 .gitea/workflows/code-review.yml 2025-08-26 05:21:24 +00:00
aa0f709ca9 更新 .gitea/workflows/code-review.yml 2025-08-26 05:15:15 +00:00
1dfdc26bab 更新 .gitea/workflows/code-review.yml 2025-08-26 05:14:37 +00:00
b3bad42f62 更新 .gitea/workflows/code-review.yml 2025-08-26 05:06:54 +00:00
3c28b9be57 更新 .gitea/workflows/code-review.yml 2025-08-26 05:02:44 +00:00
bdf7bc0684 更新 .gitea/workflows/code-review.yml 2025-08-19 15:21:20 +00:00
401374bed8 更新 .gitea/workflows/code-review.yml 2025-08-19 15:18:55 +00:00
f0c139694a 更新 .gitea/workflows/code-review.yml 2025-08-19 15:17:17 +00:00
51a237e275 更新 .gitea/workflows/code-review.yml 2025-08-19 10:45:27 +00:00
c1c5f53c86 更新 .gitea/workflows/code-review.yml 2025-08-19 10:41:59 +00:00
74e8a13585 更新 .gitea/workflows/code-review.yml 2025-08-19 10:40:52 +00:00
7e92fe47cc 更新 .gitea/workflows/code-review.yml 2025-08-19 10:30:39 +00:00
dc04fd9b84 更新 .gitea/workflows/code-review.yml 2025-08-19 10:28:19 +00:00
0de640edd8 更新 .gitea/workflows/code-review.yml 2025-08-19 10:26:42 +00:00
c185db7fd8 更新 .gitea/workflows/code-review.yml 2025-08-19 10:24:48 +00:00
af94031e94 更新 .gitea/workflows/code-review.yml 2025-08-19 10:23:23 +00:00
62853dcbdd 更新 .gitea/workflows/code-review.yml 2025-08-19 10:18:21 +00:00
3c9ba2ef8f 更新 .gitea/workflows/code-review.yml 2025-08-19 10:15:50 +00:00
d15d2827ff 更新 .gitea/workflows/code-review.yml 2025-08-19 10:08:42 +00:00
8eb51e4202 更新 .gitea/workflows/code-review.yml 2025-08-19 09:30:52 +00:00
8d552fef41 更新 .gitea/workflows/code-review.yml 2025-08-19 08:57:25 +00:00
e496310532 更新 .gitea/workflows/code-review.yml 2025-08-19 08:48:53 +00:00
8101eb52bd 更新 .gitea/workflows/code-review.yml 2025-08-19 08:47:55 +00:00
942ac51236 更新 .gitea/workflows/build.yml 2025-08-06 01:30:59 +00:00
c45070300f Merge pull request '更新工作流配置:添加代码审查功能' (#4) from feature/workflow-update into main
Reviewed-on: #4
2025-08-06 01:08:52 +00:00
4 changed files with 58 additions and 18 deletions

View File

@@ -1,18 +0,0 @@
name: Code Review
on:
issue_comment:
types: [created, edited]
jobs:
code-review:
runs-on: ubuntu-latest
if: startsWith(github.event.comment.body, 'openai')
steps:
- name: OpenAI Code Review
uses: bhavik/gitea-code-review-action@v0.1
with:
PROGRAMMING_LANGUAGE: 'JavaScript'
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
FULL_REVIEW_COMMENT: 'openai'
REVIEW_COMMENT_PREFIX: 'openai:'

View File

@@ -0,0 +1,23 @@
name: AI Code Review (on comment)
on:
issue_comment:
types: [created, edited]
jobs:
code-review:
runs-on: ubuntu-latest
if: github.event.issue.pull_request && (startsWith(github.event.comment.body, 'openai') || github.event.comment.body == 'openai')
steps:
- name: Comment on PR
uses: https://devstar.cn/beppeb/pr-comment-action@main
with:
body: "✅ 构建完成!"
token: e61260b1d4b4c981e6f91913fa98933005271f89
server: https://devstar.cn
owner: beppeb
repo: demo-workflow-repo
pr_number: 6

View File

@@ -0,0 +1,22 @@
name: ai-reviews
on:
pull_request:
types: [opened, synchronize]
jobs:
review:
name: Review PR
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Review code
uses: kekxv/AiReviewPR@v0.0.5
with:
model: 'deepseek-r1:8b'
host: 'http://127.0.0.1:11434'
REVIEW_PULL_REQUEST: false

13
quicksort.py Normal file
View File

@@ -0,0 +1,13 @@
def quick_sort(arr):
if len(arr) <= 1:
return arr
pivot = arr[len(arr) // 2]
left = [x for x in arr if x < pivot]
middle = [x for x in arr if x == pivot]
right = [x for x in arr if x > pivot]
return quick_sort(left) + middle + quick_sort(right)
nums = [3, 6, 8, 10, 1, 2, 1]
print("排序前:", nums)
print("排序后:", quick_sort(nums))