{"action":"created","issue":{"url":"https://api.github.com/repos/Yoast/yoast-components/issues/790","repository_url":"https://api.github.com/repos/Yoast/yoast-components","labels_url":"https://api.github.com/repos/Yoast/yoast-components/issues/790/labels{/name}","comments_url":"https://api.github.com/repos/Yoast/yoast-components/issues/790/comments","events_url":"https://api.github.com/repos/Yoast/yoast-components/issues/790/events","html_url":"https://github.com/Yoast/yoast-components/pull/790","id":386839741,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1NDY0MDA1","number":790,"title":"780 build structured url api","user":{"login":"Xyfi","id":5389513,"node_id":"MDQ6VXNlcjUzODk1MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/5389513?v=4","gravatar_id":"","url":"https://api.github.com/users/Xyfi","html_url":"https://github.com/Xyfi","followers_url":"https://api.github.com/users/Xyfi/followers","following_url":"https://api.github.com/users/Xyfi/following{/other_user}","gists_url":"https://api.github.com/users/Xyfi/gists{/gist_id}","starred_url":"https://api.github.com/users/Xyfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xyfi/subscriptions","organizations_url":"https://api.github.com/users/Xyfi/orgs","repos_url":"https://api.github.com/users/Xyfi/repos","events_url":"https://api.github.com/users/Xyfi/events{/privacy}","received_events_url":"https://api.github.com/users/Xyfi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-03T14:21:29Z","updated_at":"2018-12-04T08:55:37Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/Yoast/yoast-components/pulls/790","html_url":"https://github.com/Yoast/yoast-components/pull/790","diff_url":"https://github.com/Yoast/yoast-components/pull/790.diff","patch_url":"https://github.com/Yoast/yoast-components/pull/790.patch"},"body":"## Summary\r\n\r\nThis PR can be summarized in the following changelog entry:\r\n\r\n* Adds `buildStructuredUrl` function.\r\n\r\n## Relevant technical choices:\r\n\r\n* This is the first step towards fixing Yoast/wordpress-seo#3514. It introduces a function that later on will be used to built the permalink in the snippet editor.\r\n\r\n## Test instructions\r\n\r\nThis PR can be tested by following these steps:\r\n\r\n* Link `yoast-components` with this PR to `wordpress-seo` and build the project.\r\n* In your browsers console go to any admin page where `window.yoast.components` is loaded, like the Dashboard.\r\n* In the console, you can test the function, for example like this:\r\n```\r\nwindow.yoast.components.utils.buildStructuredUrl( \"http://www.example.com/%category%/%postname%, {\r\n    category: [ \"transportation\", \"flying\" ],\r\n    postname: \"the-cost-of-flying\",\r\n} );\r\n```\r\n\r\nFixes #780 \r\n"},"comment":{"url":"https://api.github.com/repos/Yoast/yoast-components/issues/comments/444021164","html_url":"https://github.com/Yoast/yoast-components/pull/790#issuecomment-444021164","issue_url":"https://api.github.com/repos/Yoast/yoast-components/issues/790","id":444021164,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDAyMTE2NA==","user":{"login":"IreneStr","id":17744553,"node_id":"MDQ6VXNlcjE3NzQ0NTUz","avatar_url":"https://avatars3.githubusercontent.com/u/17744553?v=4","gravatar_id":"","url":"https://api.github.com/users/IreneStr","html_url":"https://github.com/IreneStr","followers_url":"https://api.github.com/users/IreneStr/followers","following_url":"https://api.github.com/users/IreneStr/following{/other_user}","gists_url":"https://api.github.com/users/IreneStr/gists{/gist_id}","starred_url":"https://api.github.com/users/IreneStr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IreneStr/subscriptions","organizations_url":"https://api.github.com/users/IreneStr/orgs","repos_url":"https://api.github.com/users/IreneStr/repos","events_url":"https://api.github.com/users/IreneStr/events{/privacy}","received_events_url":"https://api.github.com/users/IreneStr/received_events","type":"User","site_admin":false},"created_at":"2018-12-04T08:55:37Z","updated_at":"2018-12-04T08:55:37Z","author_association":"CONTRIBUTOR","body":"CR2 done 👍 "}}
{"actor":{"display_login":"IreneStr"}}