Add pr-reviewer module: Gitea webhooks, Spring AI structured output, quote-checked inline comments, de-duplication across pushes and live tests against Gitea 1.27.3 on Spring AI 2.1.0
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4HkWoC7hLzk61vZa8
This commit is contained in:
@@ -0,0 +1,431 @@
|
||||
{
|
||||
"action": "synchronized",
|
||||
"before": "f49a94b86a0cb6a34d6207ce172eedea6947333c",
|
||||
"after": "e7d03e1839f3918ad62e39fcff009dcdb2912541",
|
||||
"number": 1,
|
||||
"pull_request": {
|
||||
"id": 1,
|
||||
"url": "http://localhost:3118/dev/shop/pulls/1",
|
||||
"number": 1,
|
||||
"user": {
|
||||
"id": 1,
|
||||
"login": "dev",
|
||||
"login_name": "",
|
||||
"source_id": 0,
|
||||
"full_name": "",
|
||||
"email": "[email protected]",
|
||||
"avatar_url": "http://localhost:3118/avatars/be9d18f611892a738e54f2a3a171e2f9",
|
||||
"html_url": "http://localhost:3118/dev",
|
||||
"language": "",
|
||||
"is_admin": true,
|
||||
"last_login": "1970-01-01T00:00:00Z",
|
||||
"created": "2026-12-03T17:58:23Z",
|
||||
"restricted": false,
|
||||
"active": true,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 0,
|
||||
"username": "dev"
|
||||
},
|
||||
"title": "Add payment",
|
||||
"body": "",
|
||||
"labels": [],
|
||||
"milestone": null,
|
||||
"assignee": null,
|
||||
"assignees": [],
|
||||
"requested_reviewers": [
|
||||
{
|
||||
"id": 2,
|
||||
"login": "reviewbot",
|
||||
"login_name": "",
|
||||
"source_id": 0,
|
||||
"full_name": "",
|
||||
"email": "[email protected]",
|
||||
"avatar_url": "http://localhost:3118/avatars/d0ddb83ff9551fc35f8c789d8a572547",
|
||||
"html_url": "http://localhost:3118/reviewbot",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2026-12-03T17:58:23Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 0,
|
||||
"username": "reviewbot"
|
||||
}
|
||||
],
|
||||
"requested_reviewers_teams": [],
|
||||
"state": "open",
|
||||
"draft": false,
|
||||
"is_locked": false,
|
||||
"comments": 0,
|
||||
"review_comments": 6,
|
||||
"additions": 4,
|
||||
"deletions": 0,
|
||||
"changed_files": 1,
|
||||
"html_url": "http://localhost:3118/dev/shop/pulls/1",
|
||||
"diff_url": "http://localhost:3118/dev/shop/pulls/1.diff",
|
||||
"patch_url": "http://localhost:3118/dev/shop/pulls/1.patch",
|
||||
"mergeable": false,
|
||||
"merged": false,
|
||||
"merged_at": null,
|
||||
"merge_commit_sha": null,
|
||||
"merged_by": null,
|
||||
"allow_maintainer_edit": true,
|
||||
"base": {
|
||||
"label": "main",
|
||||
"ref": "main",
|
||||
"sha": "d2bf2d37a7c29a0f791dd60faf1be9975b11c0dd",
|
||||
"repo_id": 1,
|
||||
"repo": {
|
||||
"id": 1,
|
||||
"owner": {
|
||||
"id": 1,
|
||||
"login": "dev",
|
||||
"login_name": "",
|
||||
"source_id": 0,
|
||||
"full_name": "",
|
||||
"email": "[email protected]",
|
||||
"avatar_url": "http://localhost:3118/avatars/be9d18f611892a738e54f2a3a171e2f9",
|
||||
"html_url": "http://localhost:3118/dev",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2026-12-03T17:58:23Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 0,
|
||||
"username": "dev"
|
||||
},
|
||||
"name": "shop",
|
||||
"full_name": "dev/shop",
|
||||
"description": "",
|
||||
"empty": false,
|
||||
"private": true,
|
||||
"fork": false,
|
||||
"template": false,
|
||||
"mirror": false,
|
||||
"size": 26,
|
||||
"language": "",
|
||||
"languages_url": "http://localhost:3118/api/v1/repos/dev/shop/languages",
|
||||
"html_url": "http://localhost:3118/dev/shop",
|
||||
"url": "http://localhost:3118/api/v1/repos/dev/shop",
|
||||
"link": "",
|
||||
"ssh_url": "git@localhost:dev/shop.git",
|
||||
"clone_url": "http://localhost:3118/dev/shop.git",
|
||||
"original_url": "",
|
||||
"website": "",
|
||||
"stars_count": 0,
|
||||
"forks_count": 0,
|
||||
"watchers_count": 1,
|
||||
"branch_count": 2,
|
||||
"open_issues_count": 0,
|
||||
"open_pr_counter": 1,
|
||||
"release_counter": 0,
|
||||
"default_branch": "main",
|
||||
"archived": false,
|
||||
"created_at": "2026-12-03T17:58:37Z",
|
||||
"updated_at": "2026-12-03T17:58:38Z",
|
||||
"archived_at": "1970-01-01T00:00:00Z",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"has_code": true,
|
||||
"has_issues": true,
|
||||
"internal_tracker": {
|
||||
"enable_time_tracker": true,
|
||||
"allow_only_contributors_to_track_time": true,
|
||||
"enable_issue_dependencies": true
|
||||
},
|
||||
"has_wiki": true,
|
||||
"has_pull_requests": true,
|
||||
"has_projects": true,
|
||||
"projects_mode": "all",
|
||||
"has_releases": true,
|
||||
"has_packages": true,
|
||||
"has_actions": true,
|
||||
"ignore_whitespace_conflicts": false,
|
||||
"allow_merge_commits": true,
|
||||
"allow_rebase": true,
|
||||
"allow_rebase_explicit": true,
|
||||
"allow_squash_merge": true,
|
||||
"allow_fast_forward_only_merge": true,
|
||||
"allow_merge_update": true,
|
||||
"allow_rebase_update": true,
|
||||
"allow_manual_merge": false,
|
||||
"autodetect_manual_merge": false,
|
||||
"default_delete_branch_after_merge": false,
|
||||
"default_merge_style": "merge",
|
||||
"default_update_style": "merge",
|
||||
"default_allow_maintainer_edit": true,
|
||||
"avatar_url": "",
|
||||
"internal": false,
|
||||
"mirror_interval": "",
|
||||
"object_format_name": "sha1",
|
||||
"mirror_updated": "0001-01-01T00:00:00Z",
|
||||
"mirror_last_sync_at": "0001-01-01T00:00:00Z",
|
||||
"topics": [],
|
||||
"licenses": []
|
||||
}
|
||||
},
|
||||
"head": {
|
||||
"label": "feature",
|
||||
"ref": "feature",
|
||||
"sha": "e7d03e1839f3918ad62e39fcff009dcdb2912541",
|
||||
"repo_id": 1,
|
||||
"repo": {
|
||||
"id": 1,
|
||||
"owner": {
|
||||
"id": 1,
|
||||
"login": "dev",
|
||||
"login_name": "",
|
||||
"source_id": 0,
|
||||
"full_name": "",
|
||||
"email": "[email protected]",
|
||||
"avatar_url": "http://localhost:3118/avatars/be9d18f611892a738e54f2a3a171e2f9",
|
||||
"html_url": "http://localhost:3118/dev",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2026-12-03T17:58:23Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 0,
|
||||
"username": "dev"
|
||||
},
|
||||
"name": "shop",
|
||||
"full_name": "dev/shop",
|
||||
"description": "",
|
||||
"empty": false,
|
||||
"private": true,
|
||||
"fork": false,
|
||||
"template": false,
|
||||
"mirror": false,
|
||||
"size": 26,
|
||||
"language": "",
|
||||
"languages_url": "http://localhost:3118/api/v1/repos/dev/shop/languages",
|
||||
"html_url": "http://localhost:3118/dev/shop",
|
||||
"url": "http://localhost:3118/api/v1/repos/dev/shop",
|
||||
"link": "",
|
||||
"ssh_url": "git@localhost:dev/shop.git",
|
||||
"clone_url": "http://localhost:3118/dev/shop.git",
|
||||
"original_url": "",
|
||||
"website": "",
|
||||
"stars_count": 0,
|
||||
"forks_count": 0,
|
||||
"watchers_count": 1,
|
||||
"branch_count": 2,
|
||||
"open_issues_count": 0,
|
||||
"open_pr_counter": 1,
|
||||
"release_counter": 0,
|
||||
"default_branch": "main",
|
||||
"archived": false,
|
||||
"created_at": "2026-12-03T17:58:37Z",
|
||||
"updated_at": "2026-12-03T17:58:38Z",
|
||||
"archived_at": "1970-01-01T00:00:00Z",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"has_code": true,
|
||||
"has_issues": true,
|
||||
"internal_tracker": {
|
||||
"enable_time_tracker": true,
|
||||
"allow_only_contributors_to_track_time": true,
|
||||
"enable_issue_dependencies": true
|
||||
},
|
||||
"has_wiki": true,
|
||||
"has_pull_requests": true,
|
||||
"has_projects": true,
|
||||
"projects_mode": "all",
|
||||
"has_releases": true,
|
||||
"has_packages": true,
|
||||
"has_actions": true,
|
||||
"ignore_whitespace_conflicts": false,
|
||||
"allow_merge_commits": true,
|
||||
"allow_rebase": true,
|
||||
"allow_rebase_explicit": true,
|
||||
"allow_squash_merge": true,
|
||||
"allow_fast_forward_only_merge": true,
|
||||
"allow_merge_update": true,
|
||||
"allow_rebase_update": true,
|
||||
"allow_manual_merge": false,
|
||||
"autodetect_manual_merge": false,
|
||||
"default_delete_branch_after_merge": false,
|
||||
"default_merge_style": "merge",
|
||||
"default_update_style": "merge",
|
||||
"default_allow_maintainer_edit": true,
|
||||
"avatar_url": "",
|
||||
"internal": false,
|
||||
"mirror_interval": "",
|
||||
"object_format_name": "sha1",
|
||||
"mirror_updated": "0001-01-01T00:00:00Z",
|
||||
"mirror_last_sync_at": "0001-01-01T00:00:00Z",
|
||||
"topics": [],
|
||||
"licenses": []
|
||||
}
|
||||
},
|
||||
"merge_base": "d2bf2d37a7c29a0f791dd60faf1be9975b11c0dd",
|
||||
"due_date": null,
|
||||
"created_at": "2026-12-03T17:58:38Z",
|
||||
"updated_at": "2026-12-03T17:59:09Z",
|
||||
"closed_at": null,
|
||||
"pin_order": 0,
|
||||
"content_version": 0
|
||||
},
|
||||
"requested_reviewer": null,
|
||||
"repository": {
|
||||
"id": 1,
|
||||
"owner": {
|
||||
"id": 1,
|
||||
"login": "dev",
|
||||
"login_name": "",
|
||||
"source_id": 0,
|
||||
"full_name": "",
|
||||
"email": "[email protected]",
|
||||
"avatar_url": "http://localhost:3118/avatars/be9d18f611892a738e54f2a3a171e2f9",
|
||||
"html_url": "http://localhost:3118/dev",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2026-12-03T17:58:23Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 0,
|
||||
"username": "dev"
|
||||
},
|
||||
"name": "shop",
|
||||
"full_name": "dev/shop",
|
||||
"description": "",
|
||||
"empty": false,
|
||||
"private": true,
|
||||
"fork": false,
|
||||
"template": false,
|
||||
"mirror": false,
|
||||
"size": 26,
|
||||
"language": "",
|
||||
"languages_url": "http://localhost:3118/api/v1/repos/dev/shop/languages",
|
||||
"html_url": "http://localhost:3118/dev/shop",
|
||||
"url": "http://localhost:3118/api/v1/repos/dev/shop",
|
||||
"link": "",
|
||||
"ssh_url": "git@localhost:dev/shop.git",
|
||||
"clone_url": "http://localhost:3118/dev/shop.git",
|
||||
"original_url": "",
|
||||
"website": "",
|
||||
"stars_count": 0,
|
||||
"forks_count": 0,
|
||||
"watchers_count": 1,
|
||||
"branch_count": 2,
|
||||
"open_issues_count": 0,
|
||||
"open_pr_counter": 1,
|
||||
"release_counter": 0,
|
||||
"default_branch": "main",
|
||||
"archived": false,
|
||||
"created_at": "2026-12-03T17:58:37Z",
|
||||
"updated_at": "2026-12-03T17:58:38Z",
|
||||
"archived_at": "1970-01-01T00:00:00Z",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"has_code": true,
|
||||
"has_issues": true,
|
||||
"internal_tracker": {
|
||||
"enable_time_tracker": true,
|
||||
"allow_only_contributors_to_track_time": true,
|
||||
"enable_issue_dependencies": true
|
||||
},
|
||||
"has_wiki": true,
|
||||
"has_pull_requests": true,
|
||||
"has_projects": true,
|
||||
"projects_mode": "all",
|
||||
"has_releases": true,
|
||||
"has_packages": true,
|
||||
"has_actions": true,
|
||||
"ignore_whitespace_conflicts": false,
|
||||
"allow_merge_commits": true,
|
||||
"allow_rebase": true,
|
||||
"allow_rebase_explicit": true,
|
||||
"allow_squash_merge": true,
|
||||
"allow_fast_forward_only_merge": true,
|
||||
"allow_merge_update": true,
|
||||
"allow_rebase_update": true,
|
||||
"allow_manual_merge": false,
|
||||
"autodetect_manual_merge": false,
|
||||
"default_delete_branch_after_merge": false,
|
||||
"default_merge_style": "merge",
|
||||
"default_update_style": "merge",
|
||||
"default_allow_maintainer_edit": true,
|
||||
"avatar_url": "",
|
||||
"internal": false,
|
||||
"mirror_interval": "",
|
||||
"object_format_name": "sha1",
|
||||
"mirror_updated": "0001-01-01T00:00:00Z",
|
||||
"mirror_last_sync_at": "0001-01-01T00:00:00Z",
|
||||
"topics": [],
|
||||
"licenses": []
|
||||
},
|
||||
"sender": {
|
||||
"id": 1,
|
||||
"login": "dev",
|
||||
"login_name": "",
|
||||
"source_id": 0,
|
||||
"full_name": "",
|
||||
"email": "[email protected]",
|
||||
"avatar_url": "http://localhost:3118/avatars/be9d18f611892a738e54f2a3a171e2f9",
|
||||
"html_url": "http://localhost:3118/dev",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2026-12-03T17:58:23Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 0,
|
||||
"username": "dev"
|
||||
},
|
||||
"commit_id": "",
|
||||
"review": null
|
||||
}
|
||||
Reference in New Issue
Block a user