Files
cc-web/fixtures/gitea-workflow/valid-pr-comment.json

24 lines
773 B
JSON

{
"name": "valid-pr-comment",
"headers": {
"x-gitea-event": "pull_request_comment",
"x-gitea-delivery": "delivery-pr-001"
},
"payload": {
"repository": {
"owner": "acme",
"name": "widget",
"clone_url": "https://gitea.example/acme/widget.git",
"default_branch": "main"
},
"pull_request": {
"number": 7,
"base": {"ref": "main"},
"head": {"ref": "feature/login", "repo": {"clone_url": "https://gitea.example/alice/widget.git"}}
},
"comment": {"id": 202, "body": "请继续处理 @ccweb-bot 的 review 意见", "user": {"login": "bob"}},
"sender": {"login": "bob", "is_bot": false}
},
"expected": {"accepted": true, "resourceKind": "pull_request", "base": "main", "head": "feature/login"}
}