跳转到内容
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!

Test a push webhook

POST
/repos/{owner}/{repo}/hooks/{id}/tests
curl --request POST \
--url https://gitea.com/api/v1/repos/example/example/hooks/1/tests \
--header 'Authorization: Basic <credentials>'
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

id
required
integer format: int64

Id of the hook to test

ref
string

The name of the commit/branch/tag, indicates which commit will be loaded to the webhook payload.

APIEmpty is an empty response

Media typeapplication/json

APINotFound is a not found empty response

Media typeapplication/json