{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/YamUI/pulls/comments/202094419","pull_request_review_id":136724611,"id":202094419,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjA5NDQxOQ==","diff_hunk":"@@ -7,6 +7,15 @@ const pkg = require('../../package.json');\n \n const componentsWithoutPathLine = ['Icons'];\n \n+const redirectToDarkScript = `const redirectToDark = () => {\n+  if (document.title.match(/DARK/) && !window.location.href.match(/theme=dark/)) {","path":"config/styleguide/config.js","position":5,"original_position":5,"commit_id":"6253d9785564cfa95c891e804523d5ee94447c5e","original_commit_id":"6253d9785564cfa95c891e804523d5ee94447c5e","user":{"login":"unindented","id":69485,"node_id":"MDQ6VXNlcjY5NDg1","avatar_url":"https://avatars1.githubusercontent.com/u/69485?v=4","gravatar_id":"","url":"https://api.github.com/users/unindented","html_url":"https://github.com/unindented","followers_url":"https://api.github.com/users/unindented/followers","following_url":"https://api.github.com/users/unindented/following{/other_user}","gists_url":"https://api.github.com/users/unindented/gists{/gist_id}","starred_url":"https://api.github.com/users/unindented/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unindented/subscriptions","organizations_url":"https://api.github.com/users/unindented/orgs","repos_url":"https://api.github.com/users/unindented/repos","events_url":"https://api.github.com/users/unindented/events{/privacy}","received_events_url":"https://api.github.com/users/unindented/received_events","type":"User","site_admin":false},"body":"The code in a string, and checking the document title + lack of parameter in the URL to decide whether to redirect. I don't have better alternatives though, so my comment wasn't very useful.","created_at":"2018-07-12T16:13:17Z","updated_at":"2018-07-12T16:13:17Z","html_url":"https://github.com/Microsoft/YamUI/pull/456#discussion_r202094419","pull_request_url":"https://api.github.com/repos/Microsoft/YamUI/pulls/456","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/YamUI/pulls/comments/202094419"},"html":{"href":"https://github.com/Microsoft/YamUI/pull/456#discussion_r202094419"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/YamUI/pulls/456"}},"in_reply_to_id":202079141},"pull_request":{"url":"https://api.github.com/repos/Microsoft/YamUI/pulls/456","id":200541119,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwNTQxMTE5","html_url":"https://github.com/Microsoft/YamUI/pull/456","diff_url":"https://github.com/Microsoft/YamUI/pull/456.diff","patch_url":"https://github.com/Microsoft/YamUI/pull/456.patch","issue_url":"https://api.github.com/repos/Microsoft/YamUI/issues/456","number":456,"state":"open","locked":false,"title":"Add Dark Theme","user":{"login":"chrismohr","id":601657,"node_id":"MDQ6VXNlcjYwMTY1Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/601657?v=4","gravatar_id":"","url":"https://api.github.com/users/chrismohr","html_url":"https://github.com/chrismohr","followers_url":"https://api.github.com/users/chrismohr/followers","following_url":"https://api.github.com/users/chrismohr/following{/other_user}","gists_url":"https://api.github.com/users/chrismohr/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismohr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismohr/subscriptions","organizations_url":"https://api.github.com/users/chrismohr/orgs","repos_url":"https://api.github.com/users/chrismohr/repos","events_url":"https://api.github.com/users/chrismohr/events{/privacy}","received_events_url":"https://api.github.com/users/chrismohr/received_events","type":"User","site_admin":false},"body":"- add dark theme\r\n- see dark theme in dev by running `npm run start:dev:dark`\r\n\r\n![yamui_v8_8_0_dark](https://user-images.githubusercontent.com/601657/42541080-d7482b0a-8455-11e8-82eb-b5b4b6aa5c0b.png)\r\n","created_at":"2018-07-10T22:30:03Z","updated_at":"2018-07-12T16:13:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"24422fe096f66c46d8c75f432233feafedf9ad21","assignee":null,"assignees":[],"requested_reviewers":[{"login":"swese44","id":471731,"node_id":"MDQ6VXNlcjQ3MTczMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/471731?v=4","gravatar_id":"","url":"https://api.github.com/users/swese44","html_url":"https://github.com/swese44","followers_url":"https://api.github.com/users/swese44/followers","following_url":"https://api.github.com/users/swese44/following{/other_user}","gists_url":"https://api.github.com/users/swese44/gists{/gist_id}","starred_url":"https://api.github.com/users/swese44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swese44/subscriptions","organizations_url":"https://api.github.com/users/swese44/orgs","repos_url":"https://api.github.com/users/swese44/repos","events_url":"https://api.github.com/users/swese44/events{/privacy}","received_events_url":"https://api.github.com/users/swese44/received_events","type":"User","site_admin":false},{"login":"richardtagger","id":692240,"node_id":"MDQ6VXNlcjY5MjI0MA==","avatar_url":"https://avatars1.githubusercontent.com/u/692240?v=4","gravatar_id":"","url":"https://api.github.com/users/richardtagger","html_url":"https://github.com/richardtagger","followers_url":"https://api.github.com/users/richardtagger/followers","following_url":"https://api.github.com/users/richardtagger/following{/other_user}","gists_url":"https://api.github.com/users/richardtagger/gists{/gist_id}","starred_url":"https://api.github.com/users/richardtagger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardtagger/subscriptions","organizations_url":"https://api.github.com/users/richardtagger/orgs","repos_url":"https://api.github.com/users/richardtagger/repos","events_url":"https://api.github.com/users/richardtagger/events{/privacy}","received_events_url":"https://api.github.com/users/richardtagger/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/YamUI/pulls/456/commits","review_comments_url":"https://api.github.com/repos/Microsoft/YamUI/pulls/456/comments","review_comment_url":"https://api.github.com/repos/Microsoft/YamUI/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/YamUI/issues/456/comments","statuses_url":"https://api.github.com/repos/Microsoft/YamUI/statuses/6253d9785564cfa95c891e804523d5ee94447c5e","head":{"label":"Microsoft:dark_styleguide","ref":"dark_styleguide","sha":"6253d9785564cfa95c891e804523d5ee94447c5e","user":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":97036342,"node_id":"MDEwOlJlcG9zaXRvcnk5NzAzNjM0Mg==","name":"YamUI","full_name":"Microsoft/YamUI","owner":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/YamUI","description":"Reusable component framework for Yammer.com","fork":false,"url":"https://api.github.com/repos/Microsoft/YamUI","forks_url":"https://api.github.com/repos/Microsoft/YamUI/forks","keys_url":"https://api.github.com/repos/Microsoft/YamUI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/YamUI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/YamUI/teams","hooks_url":"https://api.github.com/repos/Microsoft/YamUI/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/YamUI/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/YamUI/events","assignees_url":"https://api.github.com/repos/Microsoft/YamUI/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/YamUI/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/YamUI/tags","blobs_url":"https://api.github.com/repos/Microsoft/YamUI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/YamUI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/YamUI/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/YamUI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/YamUI/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/YamUI/languages","stargazers_url":"https://api.github.com/repos/Microsoft/YamUI/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/YamUI/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/YamUI/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/YamUI/subscription","commits_url":"https://api.github.com/repos/Microsoft/YamUI/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/YamUI/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/YamUI/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/YamUI/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/YamUI/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/YamUI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/YamUI/merges","archive_url":"https://api.github.com/repos/Microsoft/YamUI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/YamUI/downloads","issues_url":"https://api.github.com/repos/Microsoft/YamUI/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/YamUI/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/YamUI/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/YamUI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/YamUI/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/YamUI/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/YamUI/deployments","created_at":"2017-07-12T17:43:12Z","updated_at":"2018-07-11T21:35:26Z","pushed_at":"2018-07-12T01:18:09Z","git_url":"git://github.com/Microsoft/YamUI.git","ssh_url":"git@github.com:Microsoft/YamUI.git","clone_url":"https://github.com/Microsoft/YamUI.git","svn_url":"https://github.com/Microsoft/YamUI","homepage":"https://microsoft.github.io/YamUI/","size":55281,"stargazers_count":377,"watchers_count":377,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":33,"mirror_url":null,"archived":false,"open_issues_count":52,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":33,"open_issues":52,"watchers":377,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"a80e3571d2e87a985802c385159165430d5924a8","user":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":97036342,"node_id":"MDEwOlJlcG9zaXRvcnk5NzAzNjM0Mg==","name":"YamUI","full_name":"Microsoft/YamUI","owner":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/YamUI","description":"Reusable component framework for Yammer.com","fork":false,"url":"https://api.github.com/repos/Microsoft/YamUI","forks_url":"https://api.github.com/repos/Microsoft/YamUI/forks","keys_url":"https://api.github.com/repos/Microsoft/YamUI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/YamUI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/YamUI/teams","hooks_url":"https://api.github.com/repos/Microsoft/YamUI/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/YamUI/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/YamUI/events","assignees_url":"https://api.github.com/repos/Microsoft/YamUI/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/YamUI/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/YamUI/tags","blobs_url":"https://api.github.com/repos/Microsoft/YamUI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/YamUI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/YamUI/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/YamUI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/YamUI/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/YamUI/languages","stargazers_url":"https://api.github.com/repos/Microsoft/YamUI/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/YamUI/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/YamUI/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/YamUI/subscription","commits_url":"https://api.github.com/repos/Microsoft/YamUI/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/YamUI/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/YamUI/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/YamUI/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/YamUI/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/YamUI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/YamUI/merges","archive_url":"https://api.github.com/repos/Microsoft/YamUI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/YamUI/downloads","issues_url":"https://api.github.com/repos/Microsoft/YamUI/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/YamUI/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/YamUI/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/YamUI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/YamUI/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/YamUI/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/YamUI/deployments","created_at":"2017-07-12T17:43:12Z","updated_at":"2018-07-11T21:35:26Z","pushed_at":"2018-07-12T01:18:09Z","git_url":"git://github.com/Microsoft/YamUI.git","ssh_url":"git@github.com:Microsoft/YamUI.git","clone_url":"https://github.com/Microsoft/YamUI.git","svn_url":"https://github.com/Microsoft/YamUI","homepage":"https://microsoft.github.io/YamUI/","size":55281,"stargazers_count":377,"watchers_count":377,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":33,"mirror_url":null,"archived":false,"open_issues_count":52,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":33,"open_issues":52,"watchers":377,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/YamUI/pulls/456"},"html":{"href":"https://github.com/Microsoft/YamUI/pull/456"},"issue":{"href":"https://api.github.com/repos/Microsoft/YamUI/issues/456"},"comments":{"href":"https://api.github.com/repos/Microsoft/YamUI/issues/456/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/YamUI/pulls/456/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/YamUI/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/YamUI/pulls/456/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/YamUI/statuses/6253d9785564cfa95c891e804523d5ee94447c5e"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"unindented"}}