{"action":"created","comment":{"url":"https://api.github.com/repos/iissnan/hexo-theme-next/pulls/comments/137921712","pull_request_review_id":61658322,"id":137921712,"diff_hunk":"@@ -9,6 +9,11 @@ var merge = require('./merge');\n hexo.on('generateBefore', function () {\n   if (hexo.locals.get) {\n     var data = hexo.locals.get('data');\n-    data && data.next && merge(hexo.theme.config, data.next);\n+    if ( data && data.next ) {\n+      if ( data.next.override )\n+        hexo.theme.config = data.next","path":"scripts/merge-configs.js","position":7,"original_position":7,"commit_id":"42d988ef38f612a34bc4560cd65af5f0de54ab2c","original_commit_id":"42d988ef38f612a34bc4560cd65af5f0de54ab2c","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Expected '{' and instead saw 'hexo'.<br>Missing semicolon.","created_at":"2017-09-09T08:28:45Z","updated_at":"2017-09-09T08:28:45Z","html_url":"https://github.com/iissnan/hexo-theme-next/pull/1861#discussion_r137921712","pull_request_url":"https://api.github.com/repos/iissnan/hexo-theme-next/pulls/1861","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/iissnan/hexo-theme-next/pulls/comments/137921712"},"html":{"href":"https://github.com/iissnan/hexo-theme-next/pull/1861#discussion_r137921712"},"pull_request":{"href":"https://api.github.com/repos/iissnan/hexo-theme-next/pulls/1861"}}},"pull_request":{"url":"https://api.github.com/repos/iissnan/hexo-theme-next/pulls/1861","id":140161537,"html_url":"https://github.com/iissnan/hexo-theme-next/pull/1861","diff_url":"https://github.com/iissnan/hexo-theme-next/pull/1861.diff","patch_url":"https://github.com/iissnan/hexo-theme-next/pull/1861.patch","issue_url":"https://api.github.com/repos/iissnan/hexo-theme-next/issues/1861","number":1861,"state":"open","locked":false,"title":"Allow the user to override the whole configuration","user":{"login":"julianxhokaxhiu","id":1237070,"avatar_url":"https://avatars2.githubusercontent.com/u/1237070?v=4","gravatar_id":"","url":"https://api.github.com/users/julianxhokaxhiu","html_url":"https://github.com/julianxhokaxhiu","followers_url":"https://api.github.com/users/julianxhokaxhiu/followers","following_url":"https://api.github.com/users/julianxhokaxhiu/following{/other_user}","gists_url":"https://api.github.com/users/julianxhokaxhiu/gists{/gist_id}","starred_url":"https://api.github.com/users/julianxhokaxhiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianxhokaxhiu/subscriptions","organizations_url":"https://api.github.com/users/julianxhokaxhiu/orgs","repos_url":"https://api.github.com/users/julianxhokaxhiu/repos","events_url":"https://api.github.com/users/julianxhokaxhiu/events{/privacy}","received_events_url":"https://api.github.com/users/julianxhokaxhiu/received_events","type":"User","site_admin":false},"body":"<!-- ATTENTION!\r\n\r\n1. Please, write pulls readme in English. Not all contributors/collaborators know Chinese language and Google translate can't always give true translates on issues. Thanks!\r\n\r\n2. If your pull is short and simple, recommended to use \"Usual pull template\".\r\n   If your pull is big and include many separated changes, recommended to use \"BIG pull template\".\r\n-->\r\n\r\n<!-- Usual pull template -->\r\n\r\n## PR Checklist\r\n**Please check if your PR fulfills the following requirements:**\r\n\r\n- [x] The commit message follows [our guidelines](https://github.com/iissnan/hexo-theme-next/blob/master/.github/CONTRIBUTING.md).\r\n- [ ] Tests for the changes have been added (for bug fixes / features).\r\n- [ ] Docs have been added / updated (for bug fixes / features).\r\n\r\n## PR Type\r\n**What kind of change does this PR introduce?**  <!-- (Check one with \"x\") -->\r\n\r\n- [ ] Bugfix.\r\n- [x] Feature.\r\n- [ ] Code style update (formatting, local variables).\r\n- [ ] Refactoring (no functional changes, no api changes).\r\n- [ ] Build related changes.\r\n- [ ] CI related changes.\r\n- [ ] Documentation content changes.\r\n- [ ] Other... Please describe:\r\n\r\n## What is the current behavior?\r\n<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->\r\n\r\nIssue Number(s): #1860 \r\n\r\n## What is the new behavior?\r\nThis PR adds a flag in the `_data/next.yml` configuration that allows the user to override the theme configuration. Useful if you don't want to inherit default set by the theme already.\r\n\r\n### How to use?\r\nIn NexT `_config.yml`:\r\n```yml\r\noverride: true\r\n```\r\n\r\n## Does this PR introduce a breaking change?\r\n- [ ] Yes.\r\n- [x] No.\r\n\r\n<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->\r\n\r\n<!-- BIG pull template -->\r\n<!-- \r\n1. xxxxxxx - commit link on modified file. Just copy this below your pull request readme.\r\n2. You can paste any image directly from your clipboard. Just press **Print Scr** and paste it into pull readme - link on image will generate and paste automaticly.\r\n-->\r\n<!--\r\n## PART X. Title of fixes and/or enhancements.\r\nShort description in several words here.\r\n\r\n### Files modified:\r\n1.\tShort description of modified file [1].\t\t\txxxxxxx\r\n2.\tShort description of modified file [2].\t\t\txxxxxxx\r\n3.\tShort description of modified file [3].\t\t\txxxxxxx\r\n\r\n### How it looks?\r\n![image](https://user-images.githubusercontent.com/xxxxxxxx/xxxxxxxx-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx.png)\r\n\r\nLive demo [here](http://site.com/).\r\n\r\n### How to use?\r\nIn Next `_config.yml`:\r\n```\r\n...\r\n```\r\n-->\r\n","created_at":"2017-09-09T08:28:40Z","updated_at":"2017-09-09T08:28:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"73b5908e5b2e6f48b5ecbf70b466073e42107b9f","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/iissnan/hexo-theme-next/pulls/1861/commits","review_comments_url":"https://api.github.com/repos/iissnan/hexo-theme-next/pulls/1861/comments","review_comment_url":"https://api.github.com/repos/iissnan/hexo-theme-next/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iissnan/hexo-theme-next/issues/1861/comments","statuses_url":"https://api.github.com/repos/iissnan/hexo-theme-next/statuses/42d988ef38f612a34bc4560cd65af5f0de54ab2c","head":{"label":"julianxhokaxhiu:feature/issue-1860","ref":"feature/issue-1860","sha":"42d988ef38f612a34bc4560cd65af5f0de54ab2c","user":{"login":"julianxhokaxhiu","id":1237070,"avatar_url":"https://avatars2.githubusercontent.com/u/1237070?v=4","gravatar_id":"","url":"https://api.github.com/users/julianxhokaxhiu","html_url":"https://github.com/julianxhokaxhiu","followers_url":"https://api.github.com/users/julianxhokaxhiu/followers","following_url":"https://api.github.com/users/julianxhokaxhiu/following{/other_user}","gists_url":"https://api.github.com/users/julianxhokaxhiu/gists{/gist_id}","starred_url":"https://api.github.com/users/julianxhokaxhiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianxhokaxhiu/subscriptions","organizations_url":"https://api.github.com/users/julianxhokaxhiu/orgs","repos_url":"https://api.github.com/users/julianxhokaxhiu/repos","events_url":"https://api.github.com/users/julianxhokaxhiu/events{/privacy}","received_events_url":"https://api.github.com/users/julianxhokaxhiu/received_events","type":"User","site_admin":false},"repo":{"id":102938566,"name":"hexo-theme-next","full_name":"julianxhokaxhiu/hexo-theme-next","owner":{"login":"julianxhokaxhiu","id":1237070,"avatar_url":"https://avatars2.githubusercontent.com/u/1237070?v=4","gravatar_id":"","url":"https://api.github.com/users/julianxhokaxhiu","html_url":"https://github.com/julianxhokaxhiu","followers_url":"https://api.github.com/users/julianxhokaxhiu/followers","following_url":"https://api.github.com/users/julianxhokaxhiu/following{/other_user}","gists_url":"https://api.github.com/users/julianxhokaxhiu/gists{/gist_id}","starred_url":"https://api.github.com/users/julianxhokaxhiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianxhokaxhiu/subscriptions","organizations_url":"https://api.github.com/users/julianxhokaxhiu/orgs","repos_url":"https://api.github.com/users/julianxhokaxhiu/repos","events_url":"https://api.github.com/users/julianxhokaxhiu/events{/privacy}","received_events_url":"https://api.github.com/users/julianxhokaxhiu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/julianxhokaxhiu/hexo-theme-next","description":"Elegant theme for Hexo. ","fork":true,"url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next","forks_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/forks","keys_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/teams","hooks_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/hooks","issue_events_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/issues/events{/number}","events_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/events","assignees_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/assignees{/user}","branches_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/branches{/branch}","tags_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/tags","blobs_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/statuses/{sha}","languages_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/languages","stargazers_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/stargazers","contributors_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/contributors","subscribers_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/subscribers","subscription_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/subscription","commits_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/issues/comments{/number}","contents_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/contents/{+path}","compare_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/merges","archive_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/downloads","issues_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/issues{/number}","pulls_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/pulls{/number}","milestones_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/milestones{/number}","notifications_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/labels{/name}","releases_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/releases{/id}","deployments_url":"https://api.github.com/repos/julianxhokaxhiu/hexo-theme-next/deployments","created_at":"2017-09-09T08:15:53Z","updated_at":"2017-09-09T08:15:56Z","pushed_at":"2017-09-09T08:23:43Z","git_url":"git://github.com/julianxhokaxhiu/hexo-theme-next.git","ssh_url":"git@github.com:julianxhokaxhiu/hexo-theme-next.git","clone_url":"https://github.com/julianxhokaxhiu/hexo-theme-next.git","svn_url":"https://github.com/julianxhokaxhiu/hexo-theme-next","homepage":"http://notes.iissnan.com","size":12782,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"iissnan:master","ref":"master","sha":"0aebb80f6585579aa47df240363da605ba2645fe","user":{"login":"iissnan","id":32269,"avatar_url":"https://avatars3.githubusercontent.com/u/32269?v=4","gravatar_id":"","url":"https://api.github.com/users/iissnan","html_url":"https://github.com/iissnan","followers_url":"https://api.github.com/users/iissnan/followers","following_url":"https://api.github.com/users/iissnan/following{/other_user}","gists_url":"https://api.github.com/users/iissnan/gists{/gist_id}","starred_url":"https://api.github.com/users/iissnan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iissnan/subscriptions","organizations_url":"https://api.github.com/users/iissnan/orgs","repos_url":"https://api.github.com/users/iissnan/repos","events_url":"https://api.github.com/users/iissnan/events{/privacy}","received_events_url":"https://api.github.com/users/iissnan/received_events","type":"User","site_admin":false},"repo":{"id":27382163,"name":"hexo-theme-next","full_name":"iissnan/hexo-theme-next","owner":{"login":"iissnan","id":32269,"avatar_url":"https://avatars3.githubusercontent.com/u/32269?v=4","gravatar_id":"","url":"https://api.github.com/users/iissnan","html_url":"https://github.com/iissnan","followers_url":"https://api.github.com/users/iissnan/followers","following_url":"https://api.github.com/users/iissnan/following{/other_user}","gists_url":"https://api.github.com/users/iissnan/gists{/gist_id}","starred_url":"https://api.github.com/users/iissnan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iissnan/subscriptions","organizations_url":"https://api.github.com/users/iissnan/orgs","repos_url":"https://api.github.com/users/iissnan/repos","events_url":"https://api.github.com/users/iissnan/events{/privacy}","received_events_url":"https://api.github.com/users/iissnan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iissnan/hexo-theme-next","description":"Elegant theme for Hexo. ","fork":false,"url":"https://api.github.com/repos/iissnan/hexo-theme-next","forks_url":"https://api.github.com/repos/iissnan/hexo-theme-next/forks","keys_url":"https://api.github.com/repos/iissnan/hexo-theme-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iissnan/hexo-theme-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iissnan/hexo-theme-next/teams","hooks_url":"https://api.github.com/repos/iissnan/hexo-theme-next/hooks","issue_events_url":"https://api.github.com/repos/iissnan/hexo-theme-next/issues/events{/number}","events_url":"https://api.github.com/repos/iissnan/hexo-theme-next/events","assignees_url":"https://api.github.com/repos/iissnan/hexo-theme-next/assignees{/user}","branches_url":"https://api.github.com/repos/iissnan/hexo-theme-next/branches{/branch}","tags_url":"https://api.github.com/repos/iissnan/hexo-theme-next/tags","blobs_url":"https://api.github.com/repos/iissnan/hexo-theme-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iissnan/hexo-theme-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iissnan/hexo-theme-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/iissnan/hexo-theme-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iissnan/hexo-theme-next/statuses/{sha}","languages_url":"https://api.github.com/repos/iissnan/hexo-theme-next/languages","stargazers_url":"https://api.github.com/repos/iissnan/hexo-theme-next/stargazers","contributors_url":"https://api.github.com/repos/iissnan/hexo-theme-next/contributors","subscribers_url":"https://api.github.com/repos/iissnan/hexo-theme-next/subscribers","subscription_url":"https://api.github.com/repos/iissnan/hexo-theme-next/subscription","commits_url":"https://api.github.com/repos/iissnan/hexo-theme-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/iissnan/hexo-theme-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/iissnan/hexo-theme-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/iissnan/hexo-theme-next/issues/comments{/number}","contents_url":"https://api.github.com/repos/iissnan/hexo-theme-next/contents/{+path}","compare_url":"https://api.github.com/repos/iissnan/hexo-theme-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iissnan/hexo-theme-next/merges","archive_url":"https://api.github.com/repos/iissnan/hexo-theme-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iissnan/hexo-theme-next/downloads","issues_url":"https://api.github.com/repos/iissnan/hexo-theme-next/issues{/number}","pulls_url":"https://api.github.com/repos/iissnan/hexo-theme-next/pulls{/number}","milestones_url":"https://api.github.com/repos/iissnan/hexo-theme-next/milestones{/number}","notifications_url":"https://api.github.com/repos/iissnan/hexo-theme-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iissnan/hexo-theme-next/labels{/name}","releases_url":"https://api.github.com/repos/iissnan/hexo-theme-next/releases{/id}","deployments_url":"https://api.github.com/repos/iissnan/hexo-theme-next/deployments","created_at":"2014-12-01T14:07:07Z","updated_at":"2017-09-09T08:15:51Z","pushed_at":"2017-09-09T08:28:42Z","git_url":"git://github.com/iissnan/hexo-theme-next.git","ssh_url":"git@github.com:iissnan/hexo-theme-next.git","clone_url":"https://github.com/iissnan/hexo-theme-next.git","svn_url":"https://github.com/iissnan/hexo-theme-next","homepage":"http://notes.iissnan.com","size":12782,"stargazers_count":9269,"watchers_count":9269,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2784,"mirror_url":null,"open_issues_count":219,"forks":2784,"open_issues":219,"watchers":9269,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iissnan/hexo-theme-next/pulls/1861"},"html":{"href":"https://github.com/iissnan/hexo-theme-next/pull/1861"},"issue":{"href":"https://api.github.com/repos/iissnan/hexo-theme-next/issues/1861"},"comments":{"href":"https://api.github.com/repos/iissnan/hexo-theme-next/issues/1861/comments"},"review_comments":{"href":"https://api.github.com/repos/iissnan/hexo-theme-next/pulls/1861/comments"},"review_comment":{"href":"https://api.github.com/repos/iissnan/hexo-theme-next/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iissnan/hexo-theme-next/pulls/1861/commits"},"statuses":{"href":"https://api.github.com/repos/iissnan/hexo-theme-next/statuses/42d988ef38f612a34bc4560cd65af5f0de54ab2c"}},"author_association":"NONE"}}
{"actor":{"display_login":"houndci-bot"}}