Drone 0.5+817 gitea(a gogs fork) tag webhook 404

The post data

  "sha": "",
  "ref": "v0.0.6",
  "ref_type": "tag",
  "repository": {
    "id": 5,
    "owner": {
      "id": 7,
      "login": "XXX",
      "full_name": "",
      "email": "",
      "avatar_url": "http:///avatars/7",
      "username": "RPM_Builder"
    "name": "XXX",
    "full_name": "RPM_Builder/XXX",
    "description": "",
    "private": true,
    "fork": false,
    "html_url": "http://version.uuzu.com/RPM_Builder/XXX",
    "ssh_url": "git@version.uuzu.com:RPM_Builder/XXX.git",
    "clone_url": "http://version.uuzu.com/RPM_Builder/XXX.git",
    "website": "",
    "stars_count": 1,
    "forks_count": 0,
    "watchers_count": 2,
    "open_issues_count": 0,
    "default_branch": "master",
    "created_at": "2016-10-19T13:04:37+08:00",
    "updated_at": "2016-12-19T16:47:01+08:00",
    "permissions": {
      "admin": false,
      "push": false,
      "pull": false
  "sender": {
    "id": 2,
    "login": "",
    "full_name": "",
    "email": "",
    "avatar_url": "http:///avatars/2",
    "username": ""

Gitea is not yet officially supported by Drone, although I certainly hope it will be in the future. As a result we recommend that individuals experiencing issues dig into Drone and Gitea code and send patches the respective communities if they find issues.

cc @tboerger

I have not tested gitea with drone yet, but will do it soon

I have tested, and I think it’s a missing SHA ref in the Gitea webhook payload:

  "sha": "",
  "ref": "tag-2",
  "ref_type": "tag"

the reason is http://gitea.XXX.XXX/api/v1/repos/ower/repos/raw/refs/tags/v0.0.9/.drone.yml return 404, it’s maybe a gogs(gitea) bug.