{"action":"created","issue":{"url":"https://api.github.com/repos/woocommerce/wc-api-dev/issues/1","repository_url":"https://api.github.com/repos/woocommerce/wc-api-dev","labels_url":"https://api.github.com/repos/woocommerce/wc-api-dev/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/woocommerce/wc-api-dev/issues/1/comments","events_url":"https://api.github.com/repos/woocommerce/wc-api-dev/issues/1/events","html_url":"https://github.com/woocommerce/wc-api-dev/pull/1","id":232327982,"number":1,"title":"Set featured image to first image if no position is provided and remove placeholder.","user":{"login":"justinshreve","id":689165,"avatar_url":"https://avatars1.githubusercontent.com/u/689165?v=3","gravatar_id":"","url":"https://api.github.com/users/justinshreve","html_url":"https://github.com/justinshreve","followers_url":"https://api.github.com/users/justinshreve/followers","following_url":"https://api.github.com/users/justinshreve/following{/other_user}","gists_url":"https://api.github.com/users/justinshreve/gists{/gist_id}","starred_url":"https://api.github.com/users/justinshreve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinshreve/subscriptions","organizations_url":"https://api.github.com/users/justinshreve/orgs","repos_url":"https://api.github.com/users/justinshreve/repos","events_url":"https://api.github.com/users/justinshreve/events{/privacy}","received_events_url":"https://api.github.com/users/justinshreve/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"justinshreve","id":689165,"avatar_url":"https://avatars1.githubusercontent.com/u/689165?v=3","gravatar_id":"","url":"https://api.github.com/users/justinshreve","html_url":"https://github.com/justinshreve","followers_url":"https://api.github.com/users/justinshreve/followers","following_url":"https://api.github.com/users/justinshreve/following{/other_user}","gists_url":"https://api.github.com/users/justinshreve/gists{/gist_id}","starred_url":"https://api.github.com/users/justinshreve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinshreve/subscriptions","organizations_url":"https://api.github.com/users/justinshreve/orgs","repos_url":"https://api.github.com/users/justinshreve/repos","events_url":"https://api.github.com/users/justinshreve/events{/privacy}","received_events_url":"https://api.github.com/users/justinshreve/received_events","type":"User","site_admin":false},"assignees":[{"login":"justinshreve","id":689165,"avatar_url":"https://avatars1.githubusercontent.com/u/689165?v=3","gravatar_id":"","url":"https://api.github.com/users/justinshreve","html_url":"https://github.com/justinshreve","followers_url":"https://api.github.com/users/justinshreve/followers","following_url":"https://api.github.com/users/justinshreve/following{/other_user}","gists_url":"https://api.github.com/users/justinshreve/gists{/gist_id}","starred_url":"https://api.github.com/users/justinshreve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinshreve/subscriptions","organizations_url":"https://api.github.com/users/justinshreve/orgs","repos_url":"https://api.github.com/users/justinshreve/repos","events_url":"https://api.github.com/users/justinshreve/events{/privacy}","received_events_url":"https://api.github.com/users/justinshreve/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-05-30T17:39:25Z","updated_at":"2017-05-31T15:27:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/woocommerce/wc-api-dev/pulls/1","html_url":"https://github.com/woocommerce/wc-api-dev/pull/1","diff_url":"https://github.com/woocommerce/wc-api-dev/pull/1.diff","patch_url":"https://github.com/woocommerce/wc-api-dev/pull/1.patch"},"body":"This PR makes two updates to the product/variations endpoints:\r\n\r\n* If no position is provided and no featured image is set, the first image is set as a product's featured image. This solves the problem I was having. You can still manually include positions like before.\r\n* Placeholder image is removed from the API response for products and images to make it easier to detect when no images are found."},"comment":{"url":"https://api.github.com/repos/woocommerce/wc-api-dev/issues/comments/305223423","html_url":"https://github.com/woocommerce/wc-api-dev/pull/1#issuecomment-305223423","issue_url":"https://api.github.com/repos/woocommerce/wc-api-dev/issues/1","id":305223423,"user":{"login":"claudiosanches","id":1264099,"avatar_url":"https://avatars0.githubusercontent.com/u/1264099?v=3","gravatar_id":"","url":"https://api.github.com/users/claudiosanches","html_url":"https://github.com/claudiosanches","followers_url":"https://api.github.com/users/claudiosanches/followers","following_url":"https://api.github.com/users/claudiosanches/following{/other_user}","gists_url":"https://api.github.com/users/claudiosanches/gists{/gist_id}","starred_url":"https://api.github.com/users/claudiosanches/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudiosanches/subscriptions","organizations_url":"https://api.github.com/users/claudiosanches/orgs","repos_url":"https://api.github.com/users/claudiosanches/repos","events_url":"https://api.github.com/users/claudiosanches/events{/privacy}","received_events_url":"https://api.github.com/users/claudiosanches/received_events","type":"User","site_admin":false},"created_at":"2017-05-31T15:27:17Z","updated_at":"2017-05-31T15:27:17Z","body":"I still think that we could complete remove `position`, there is no real usage for it besides the featured image.\r\n"}}
{"actor":{"display_login":"claudiosanches"}}