Skip to content

[Bug]: gitea无法触发ai审查 #207

Description

@shiguang0122

Checklist

  • The issue exists on a clean installation
  • The issue exists in the current version
  • The issue has not been reported before
  • The issue has been reported before but has not been fixed yet

What happened?

推送到钉钉的只有push总结,ai审查结果都是:关注的文件没有修改

Steps to reproduce the problem

  1. gitea进行push
  2. gitea 进行webhoot,正常
  3. 进行ai审查,找diff信息找不到,实际是有。

What should have happened?

ai进行审查,并告知结果

What browsers do you use to access the dashboard?

No response

Where are you running the app?

Locally

What operating system are you using?

ubuntu 22.04

Console logs

日志:
具体日志:
192.168.5.211 - - [06/Aug/2026 10:39:32] "POST /review/webhook HTTP/1.1" 200 -
2026-08-06 10:39:32,483 - INFO - worker.py:handle_gitea_push_event:384 - Gitea Push event received
2026-08-06 10:39:32,485 - INFO - webhook_handler.py:get_push_commits:249 - Collected 1 commits from Gitea push event.
2026-08-06 10:39:32,514 - DEBUG - webhook_handler.py:_get_commit_diff:287 - Get commit diff from Gitea: 404, http://192.168.5.211:3000/api/v1/repos/HIS/yuyue/git/commits/d41f7c10d4c7c0bc1fe81649b436b89d8072c802.diff
2026-08-06 10:39:32,515 - WARNING - log.py:warn:10 - ⚠️ Failed to get commit diff from Gitea: 404, {"message":"not found","url":"http://192.168.5.211:3000/api/swagger"}
2026-08-06 10:39:32,516 - INFO - worker.py:handle_gitea_push_event:396 - changes: []
2026-08-06 10:39:32,516 - INFO - worker.py:handle_gitea_push_event:399 - 未检测到PUSH代码的修改,修改文件可能不满足SUPPORTED_EXTENSIONS。

Additional information

Gitea 版本
1.27.1 built with go1.26.5-X:jsonv2 : bindata, pam

gitea配置的accessToken权限:
read:activitypub
read:misc
read:notification
read:organization
read:package
write:issue
write:repository
read:user

配置都根据ai和文档检查了,没问题:包括后缀,是否开启push
使用的docker部署,v1.5.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions