{"action":"created","issue":{"url":"https://api.github.com/repos/yuezk/postcss-filter-gradient/issues/7","repository_url":"https://api.github.com/repos/yuezk/postcss-filter-gradient","labels_url":"https://api.github.com/repos/yuezk/postcss-filter-gradient/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/yuezk/postcss-filter-gradient/issues/7/comments","events_url":"https://api.github.com/repos/yuezk/postcss-filter-gradient/issues/7/events","html_url":"https://github.com/yuezk/postcss-filter-gradient/pull/7","id":134663401,"number":7,"title":"Add support for direction without \"to\"","user":{"login":"lencioni","id":195534,"avatar_url":"https://avatars.githubusercontent.com/u/195534?v=3","gravatar_id":"","url":"https://api.github.com/users/lencioni","html_url":"https://github.com/lencioni","followers_url":"https://api.github.com/users/lencioni/followers","following_url":"https://api.github.com/users/lencioni/following{/other_user}","gists_url":"https://api.github.com/users/lencioni/gists{/gist_id}","starred_url":"https://api.github.com/users/lencioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lencioni/subscriptions","organizations_url":"https://api.github.com/users/lencioni/orgs","repos_url":"https://api.github.com/users/lencioni/repos","events_url":"https://api.github.com/users/lencioni/events{/privacy}","received_events_url":"https://api.github.com/users/lencioni/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-18T18:56:53Z","updated_at":"2016-02-19T19:22:06Z","closed_at":"2016-02-19T03:38:57Z","pull_request":{"url":"https://api.github.com/repos/yuezk/postcss-filter-gradient/pulls/7","html_url":"https://github.com/yuezk/postcss-filter-gradient/pull/7","diff_url":"https://github.com/yuezk/postcss-filter-gradient/pull/7.diff","patch_url":"https://github.com/yuezk/postcss-filter-gradient/pull/7.patch"},"body":"I tried running this plugin on a codebase with some old, vendored code\r\nin it, and ran into an error when trying to parse a style like the\r\nfollowing:\r\n\r\n```css\r\nbackground: linear-gradient(top, #f00, #00f);\r\n```\r\n\r\nTo fix this and generate the expected gradients, I needed to modify the\r\nside corner regex to take the presence or absence of \"to\" into account\r\nand then modify the direction if it was not there."},"comment":{"url":"https://api.github.com/repos/yuezk/postcss-filter-gradient/issues/comments/186367533","html_url":"https://github.com/yuezk/postcss-filter-gradient/pull/7#issuecomment-186367533","issue_url":"https://api.github.com/repos/yuezk/postcss-filter-gradient/issues/7","id":186367533,"user":{"login":"lencioni","id":195534,"avatar_url":"https://avatars.githubusercontent.com/u/195534?v=3","gravatar_id":"","url":"https://api.github.com/users/lencioni","html_url":"https://github.com/lencioni","followers_url":"https://api.github.com/users/lencioni/followers","following_url":"https://api.github.com/users/lencioni/following{/other_user}","gists_url":"https://api.github.com/users/lencioni/gists{/gist_id}","starred_url":"https://api.github.com/users/lencioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lencioni/subscriptions","organizations_url":"https://api.github.com/users/lencioni/orgs","repos_url":"https://api.github.com/users/lencioni/repos","events_url":"https://api.github.com/users/lencioni/events{/privacy}","received_events_url":"https://api.github.com/users/lencioni/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T19:22:06Z","updated_at":"2016-02-19T19:22:06Z","body":"\\o/ Thanks!"}}