{"action":"opened","issue":{"url":"https://api.github.com/repos/lalyos/dockerhub-tag/issues/10","labels_url":"https://api.github.com/repos/lalyos/dockerhub-tag/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/lalyos/dockerhub-tag/issues/10/comments","events_url":"https://api.github.com/repos/lalyos/dockerhub-tag/issues/10/events","html_url":"https://github.com/lalyos/dockerhub-tag/issues/10","id":122520455,"number":10,"title":"Automated repo creation","user":{"login":"lalyos","id":464122,"avatar_url":"https://avatars.githubusercontent.com/u/464122?v=3","gravatar_id":"","url":"https://api.github.com/users/lalyos","html_url":"https://github.com/lalyos","followers_url":"https://api.github.com/users/lalyos/followers","following_url":"https://api.github.com/users/lalyos/following{/other_user}","gists_url":"https://api.github.com/users/lalyos/gists{/gist_id}","starred_url":"https://api.github.com/users/lalyos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lalyos/subscriptions","organizations_url":"https://api.github.com/users/lalyos/orgs","repos_url":"https://api.github.com/users/lalyos/repos","events_url":"https://api.github.com/users/lalyos/events{/privacy}","received_events_url":"https://api.github.com/users/lalyos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-16T14:50:55Z","updated_at":"2015-12-16T14:50:55Z","closed_at":null,"body":"Automated build creation should be automatic as well.\r\nSample json recorded in browser:\r\n\r\nhttps://hub.docker.com/v2/repositories/lalyos/consul-agent/autobuild/\r\n\r\n```\r\ncurl -X POST -H \"Authorization: JWT $JWT\" https://hub.docker.com/v2/repositories/lalyos/consul-agent/autobuild/ -d@- <<EOF\r\n{\r\n    \"repository\": 448262,\r\n    \"build_name\": \"lalyos/docker-consul\",\r\n    \"provider\": \"github\",\r\n    \"source_url\": \"https://github.com/lalyos/docker-consul.git\",\r\n    \"docker_url\": \"lalyos/consul-agent\",\r\n    \"repo_web_url\": \"https://github.com/lalyos/docker-consul\",\r\n    \"repo_type\": \"git\",\r\n    \"active\": true,\r\n    \"repo_id\": 48097139,\r\n    \"build_tags\": [{\r\n        \"id\": 187679,\r\n        \"name\": \"{sourceref}\",\r\n        \"dockerfile_location\": \"/\",\r\n        \"source_name\": \"/^([^m]|.[^a]|..[^s]|...[^t]|....[^e]|.....[^r]|.{0,5}$|.{7,})/\",\r\n        \"source_type\": \"Branch\"\r\n    }, {\r\n        \"id\": 187678,\r\n        \"name\": \"latest\",\r\n        \"dockerfile_location\": \"/\",\r\n        \"source_name\": \"master\",\r\n        \"source_type\": \"Branch\"\r\n    }\r\n    ],\r\n    \"deploykey\": null,\r\n    \"hook_id\": 6702158\r\n}\r\nEOF\r\n```"}}