Files
cc-web/fixtures/gitea-workflow/ignored-events.json

20 lines
775 B
JSON

[
{
"name": "push-event",
"headers": {"x-gitea-event": "push", "x-gitea-delivery": "delivery-push-001"},
"payload": {"repository": {"owner": "acme", "name": "widget"}, "sender": {"login": "alice"}},
"expected": {"accepted": false, "reason": "unsupported_event"}
},
{
"name": "comment-without-mention",
"headers": {"x-gitea-event": "issue_comment", "x-gitea-delivery": "delivery-no-mention-001"},
"payload": {
"repository": {"owner": "acme", "name": "widget"},
"issue": {"number": 42, "pull_request": false},
"comment": {"id": 404, "body": "请看看这个问题", "user": {"login": "alice"}},
"sender": {"login": "alice", "is_bot": false}
},
"expected": {"accepted": false, "reason": "missing_mention"}
}
]