{"action":"created","issue":{"url":"https://api.github.com/repos/go-gitea/gitea/issues/156","labels_url":"https://api.github.com/repos/go-gitea/gitea/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/go-gitea/gitea/issues/156/comments","events_url":"https://api.github.com/repos/go-gitea/gitea/issues/156/events","html_url":"https://github.com/go-gitea/gitea/issues/156","id":97261156,"number":156,"title":"latest drone can't activate repo (can't install hook)","user":{"login":"vtolstov","id":481307,"avatar_url":"https://avatars.githubusercontent.com/u/481307?v=3","gravatar_id":"","url":"https://api.github.com/users/vtolstov","html_url":"https://github.com/vtolstov","followers_url":"https://api.github.com/users/vtolstov/followers","following_url":"https://api.github.com/users/vtolstov/following{/other_user}","gists_url":"https://api.github.com/users/vtolstov/gists{/gist_id}","starred_url":"https://api.github.com/users/vtolstov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtolstov/subscriptions","organizations_url":"https://api.github.com/users/vtolstov/orgs","repos_url":"https://api.github.com/users/vtolstov/repos","events_url":"https://api.github.com/users/vtolstov/events{/privacy}","received_events_url":"https://api.github.com/users/vtolstov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-25T22:04:42Z","updated_at":"2015-07-25T22:36:30Z","closed_at":null,"body":"gitea have in logs\r\n```\r\nJul 26 01:02:06 selfip.ru gitea[28864]: [Macaron] Started POST /api/v1/repos/vtolstov/cb-mdadm/hooks for 37.139.40.30\r\nJul 26 01:02:06 selfip.ru gitea[28864]: [Macaron] Completed /api/v1/repos/vtolstov/cb-mdadm/hooks 422  in 8.844291ms\r\n```\r\n\r\nand nothing in drone happening"},"comment":{"url":"https://api.github.com/repos/go-gitea/gitea/issues/comments/124907859","html_url":"https://github.com/go-gitea/gitea/issues/156#issuecomment-124907859","issue_url":"https://api.github.com/repos/go-gitea/gitea/issues/156","id":124907859,"user":{"login":"vtolstov","id":481307,"avatar_url":"https://avatars.githubusercontent.com/u/481307?v=3","gravatar_id":"","url":"https://api.github.com/users/vtolstov","html_url":"https://github.com/vtolstov","followers_url":"https://api.github.com/users/vtolstov/followers","following_url":"https://api.github.com/users/vtolstov/following{/other_user}","gists_url":"https://api.github.com/users/vtolstov/gists{/gist_id}","starred_url":"https://api.github.com/users/vtolstov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtolstov/subscriptions","organizations_url":"https://api.github.com/users/vtolstov/orgs","repos_url":"https://api.github.com/users/vtolstov/repos","events_url":"https://api.github.com/users/vtolstov/events{/privacy}","received_events_url":"https://api.github.com/users/vtolstov/received_events","type":"User","site_admin":false},"created_at":"2015-07-25T22:36:30Z","updated_at":"2015-07-25T22:36:30Z","body":"hah i found problem. drone use hook type gogs, but gitea change hook name from gogs to gitea:\r\n\r\n```\r\nvar hookTaskTypes = map[string]HookTaskType{\r\n▶       \"gitea\":  GITEA,\r\n▶       \"slack\": SLACK,\r\n}\r\n\r\n// ToHookTaskType returns HookTaskType by given name.\r\nfunc ToHookTaskType(name string) HookTaskType {\r\n▶       return hookTaskTypes[name]\r\n}\r\n\r\nfunc (t HookTaskType) Name() string {\r\n▶       switch t {\r\n▶       case GITEA:\r\n▶       ▶       return \"gitea\"\r\n▶       case SLACK:\r\n▶       ▶       return \"slack\"\r\n▶       }\r\n▶       return \"\"\r\n}\r\n```"}}