-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Description
- Gitea version (or commit ref): - (latest gogs tested 0.9.99)
- Database:
- PostgreSQL
- MySQL
- SQLite
Description
Drone 0.5 can not support tag hooks from Gitea when no commit sha is present in the webhook payload.
Drone needs the commit sha to request the .drone.yml
config file through the Gitea API.
Drone issue link: harness/harness#1870
Desired webhook payload:
{
+ "sha": "940bd336248efae0f9ee5bc7b2d5c985887b16ac",
"ref": "v1.0.0",
"ref_type": "tag",
"repository": {
"id": 1,
"owner": {
"id": 1,
"username": "gordon",
"full_name": "Gordon the Gopher",
"email": "[email protected]",
"avatar_url": "https://secure.gravatar.com/avatar/8c58a0be77ee441bb8f8595b7f1b4e87"
},
"name": "hello-world",
"full_name": "gordon/hello-world",
"description": "",
"private": true,
"fork": false,
"html_url": "http://gogs.golang.org/gordon/hello-world",
"ssh_url": "[email protected]:gordon/hello-world.git",
"clone_url": "http://gogs.golang.org/gordon/hello-world.git",
"default_branch": "master",
"created_at": "2015-10-22T19:32:44Z",
"updated_at": "2016-11-24T13:37:16Z"
},
"sender": {
"id": 1,
"username": "gordon",
"full_name": "Gordon the Gopher",
"email": "[email protected]",
"avatar_url": "https://secure.gravatar.com/avatar/8c58a0be77ee441bb8f8595b7f1b4e87"
}
}