{"action":"created","comment":{"url":"https://api.github.com/repos/2gis/tars/pulls/comments/34948272","id":34948272,"diff_hunk":"@@ -0,0 +1,38 @@\n+var gulp = require('gulp');\n+var chokidar = require('chokidar');\n+var tarsConfig = require('../../../tars-config');\n+var watcherLog = require('../../helpers/watcher-log');\n+\n+/**\n+ * Watcher for templates-files of modules and pages\n+ * @param  {Object} watchOptions\n+ */\n+module.exports = function (watchOptions) {\n+    var pagesToWatch = 'markup/pages/**/*.';\n+    var moduelsToWatch = 'markup/modules/**/*.';\n+    var filesToWatch = [];\n+    var templateExtension = watchOptions.templateExtension;\n+\n+    if (templateExtension instanceof Array) {\n+        templateExtension.forEach(function (item) {\n+            filesToWatch.push(\n+                pagesToWatch + item,\n+                moduelsToWatch + item\n+            );\n+        });\n+    } else {\n+        filesToWatch.push(\n+            pagesToWatch + templateExtension,\n+            moduelsToWatch + templateExtension\n+        );\n+    }\n+","path":"tars/watchers/templates/pages-modules.js","position":29,"original_position":29,"commit_id":"e34322645a588343f4e3e9539c0c778ebf42b417","original_commit_id":"e34322645a588343f4e3e9539c0c778ebf42b417","user":{"login":"owanturist","id":8354670,"avatar_url":"https://avatars.githubusercontent.com/u/8354670?v=3","gravatar_id":"","url":"https://api.github.com/users/owanturist","html_url":"https://github.com/owanturist","followers_url":"https://api.github.com/users/owanturist/followers","following_url":"https://api.github.com/users/owanturist/following{/other_user}","gists_url":"https://api.github.com/users/owanturist/gists{/gist_id}","starred_url":"https://api.github.com/users/owanturist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owanturist/subscriptions","organizations_url":"https://api.github.com/users/owanturist/orgs","repos_url":"https://api.github.com/users/owanturist/repos","events_url":"https://api.github.com/users/owanturist/events{/privacy}","received_events_url":"https://api.github.com/users/owanturist/received_events","type":"User","site_admin":false},"body":"Вот здесь","created_at":"2015-07-18T14:42:50Z","updated_at":"2015-07-18T14:42:50Z","html_url":"https://github.com/2gis/tars/pull/89#discussion_r34948272","pull_request_url":"https://api.github.com/repos/2gis/tars/pulls/89","_links":{"self":{"href":"https://api.github.com/repos/2gis/tars/pulls/comments/34948272"},"html":{"href":"https://github.com/2gis/tars/pull/89#discussion_r34948272"},"pull_request":{"href":"https://api.github.com/repos/2gis/tars/pulls/89"}}},"pull_request":{"url":"https://api.github.com/repos/2gis/tars/pulls/89","id":40290525,"html_url":"https://github.com/2gis/tars/pull/89","diff_url":"https://github.com/2gis/tars/pull/89.diff","patch_url":"https://github.com/2gis/tars/pull/89.patch","issue_url":"https://api.github.com/repos/2gis/tars/issues/89","number":89,"state":"open","locked":false,"title":"add hbs extension support for handlebars","user":{"login":"artem-malko","id":1823689,"avatar_url":"https://avatars.githubusercontent.com/u/1823689?v=3","gravatar_id":"","url":"https://api.github.com/users/artem-malko","html_url":"https://github.com/artem-malko","followers_url":"https://api.github.com/users/artem-malko/followers","following_url":"https://api.github.com/users/artem-malko/following{/other_user}","gists_url":"https://api.github.com/users/artem-malko/gists{/gist_id}","starred_url":"https://api.github.com/users/artem-malko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artem-malko/subscriptions","organizations_url":"https://api.github.com/users/artem-malko/orgs","repos_url":"https://api.github.com/users/artem-malko/repos","events_url":"https://api.github.com/users/artem-malko/events{/privacy}","received_events_url":"https://api.github.com/users/artem-malko/received_events","type":"User","site_admin":false},"body":"Добавил поддержку .hbs для handlebars.\r\nПосле выкатывания версии 1.3.0 обновить master в репе tars-handlebars","created_at":"2015-07-18T10:49:39Z","updated_at":"2015-07-18T14:42:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"996c93a0c2f1e9a66fd4406d15191d2112ade623","assignee":null,"milestone":{"url":"https://api.github.com/repos/2gis/tars/milestones/4","html_url":"https://github.com/2gis/tars/milestones/Version%201.3.0","labels_url":"https://api.github.com/repos/2gis/tars/milestones/4/labels","id":1007012,"number":4,"title":"Version 1.3.0","description":"All changes have to be in branch version-1.3.0","creator":{"login":"artem-malko","id":1823689,"avatar_url":"https://avatars.githubusercontent.com/u/1823689?v=3","gravatar_id":"","url":"https://api.github.com/users/artem-malko","html_url":"https://github.com/artem-malko","followers_url":"https://api.github.com/users/artem-malko/followers","following_url":"https://api.github.com/users/artem-malko/following{/other_user}","gists_url":"https://api.github.com/users/artem-malko/gists{/gist_id}","starred_url":"https://api.github.com/users/artem-malko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artem-malko/subscriptions","organizations_url":"https://api.github.com/users/artem-malko/orgs","repos_url":"https://api.github.com/users/artem-malko/repos","events_url":"https://api.github.com/users/artem-malko/events{/privacy}","received_events_url":"https://api.github.com/users/artem-malko/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":2,"state":"open","created_at":"2015-03-05T05:43:28Z","updated_at":"2015-07-18T11:05:15Z","due_on":"2015-07-31T19:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/2gis/tars/pulls/89/commits","review_comments_url":"https://api.github.com/repos/2gis/tars/pulls/89/comments","review_comment_url":"https://api.github.com/repos/2gis/tars/pulls/comments{/number}","comments_url":"https://api.github.com/repos/2gis/tars/issues/89/comments","statuses_url":"https://api.github.com/repos/2gis/tars/statuses/e34322645a588343f4e3e9539c0c778ebf42b417","head":{"label":"2gis:version-1.3.0-add-hbs-extension-processing","ref":"version-1.3.0-add-hbs-extension-processing","sha":"e34322645a588343f4e3e9539c0c778ebf42b417","user":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"repo":{"id":20493429,"name":"tars","full_name":"2gis/tars","owner":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/2gis/tars","description":"Markup builder on gulp","fork":false,"url":"https://api.github.com/repos/2gis/tars","forks_url":"https://api.github.com/repos/2gis/tars/forks","keys_url":"https://api.github.com/repos/2gis/tars/keys{/key_id}","collaborators_url":"https://api.github.com/repos/2gis/tars/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/2gis/tars/teams","hooks_url":"https://api.github.com/repos/2gis/tars/hooks","issue_events_url":"https://api.github.com/repos/2gis/tars/issues/events{/number}","events_url":"https://api.github.com/repos/2gis/tars/events","assignees_url":"https://api.github.com/repos/2gis/tars/assignees{/user}","branches_url":"https://api.github.com/repos/2gis/tars/branches{/branch}","tags_url":"https://api.github.com/repos/2gis/tars/tags","blobs_url":"https://api.github.com/repos/2gis/tars/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/2gis/tars/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/2gis/tars/git/refs{/sha}","trees_url":"https://api.github.com/repos/2gis/tars/git/trees{/sha}","statuses_url":"https://api.github.com/repos/2gis/tars/statuses/{sha}","languages_url":"https://api.github.com/repos/2gis/tars/languages","stargazers_url":"https://api.github.com/repos/2gis/tars/stargazers","contributors_url":"https://api.github.com/repos/2gis/tars/contributors","subscribers_url":"https://api.github.com/repos/2gis/tars/subscribers","subscription_url":"https://api.github.com/repos/2gis/tars/subscription","commits_url":"https://api.github.com/repos/2gis/tars/commits{/sha}","git_commits_url":"https://api.github.com/repos/2gis/tars/git/commits{/sha}","comments_url":"https://api.github.com/repos/2gis/tars/comments{/number}","issue_comment_url":"https://api.github.com/repos/2gis/tars/issues/comments{/number}","contents_url":"https://api.github.com/repos/2gis/tars/contents/{+path}","compare_url":"https://api.github.com/repos/2gis/tars/compare/{base}...{head}","merges_url":"https://api.github.com/repos/2gis/tars/merges","archive_url":"https://api.github.com/repos/2gis/tars/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/2gis/tars/downloads","issues_url":"https://api.github.com/repos/2gis/tars/issues{/number}","pulls_url":"https://api.github.com/repos/2gis/tars/pulls{/number}","milestones_url":"https://api.github.com/repos/2gis/tars/milestones{/number}","notifications_url":"https://api.github.com/repos/2gis/tars/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/2gis/tars/labels{/name}","releases_url":"https://api.github.com/repos/2gis/tars/releases{/id}","created_at":"2014-06-04T17:44:16Z","updated_at":"2015-07-18T10:54:46Z","pushed_at":"2015-07-18T10:49:39Z","git_url":"git://github.com/2gis/tars.git","ssh_url":"git@github.com:2gis/tars.git","clone_url":"https://github.com/2gis/tars.git","svn_url":"https://github.com/2gis/tars","homepage":null,"size":2168,"stargazers_count":211,"watchers_count":211,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"open_issues_count":40,"forks":40,"open_issues":40,"watchers":211,"default_branch":"master"}},"base":{"label":"2gis:version-1.3.0","ref":"version-1.3.0","sha":"d6d7f9a97b342f059a0f46cdcb02e29d34969998","user":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"repo":{"id":20493429,"name":"tars","full_name":"2gis/tars","owner":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/2gis/tars","description":"Markup builder on gulp","fork":false,"url":"https://api.github.com/repos/2gis/tars","forks_url":"https://api.github.com/repos/2gis/tars/forks","keys_url":"https://api.github.com/repos/2gis/tars/keys{/key_id}","collaborators_url":"https://api.github.com/repos/2gis/tars/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/2gis/tars/teams","hooks_url":"https://api.github.com/repos/2gis/tars/hooks","issue_events_url":"https://api.github.com/repos/2gis/tars/issues/events{/number}","events_url":"https://api.github.com/repos/2gis/tars/events","assignees_url":"https://api.github.com/repos/2gis/tars/assignees{/user}","branches_url":"https://api.github.com/repos/2gis/tars/branches{/branch}","tags_url":"https://api.github.com/repos/2gis/tars/tags","blobs_url":"https://api.github.com/repos/2gis/tars/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/2gis/tars/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/2gis/tars/git/refs{/sha}","trees_url":"https://api.github.com/repos/2gis/tars/git/trees{/sha}","statuses_url":"https://api.github.com/repos/2gis/tars/statuses/{sha}","languages_url":"https://api.github.com/repos/2gis/tars/languages","stargazers_url":"https://api.github.com/repos/2gis/tars/stargazers","contributors_url":"https://api.github.com/repos/2gis/tars/contributors","subscribers_url":"https://api.github.com/repos/2gis/tars/subscribers","subscription_url":"https://api.github.com/repos/2gis/tars/subscription","commits_url":"https://api.github.com/repos/2gis/tars/commits{/sha}","git_commits_url":"https://api.github.com/repos/2gis/tars/git/commits{/sha}","comments_url":"https://api.github.com/repos/2gis/tars/comments{/number}","issue_comment_url":"https://api.github.com/repos/2gis/tars/issues/comments{/number}","contents_url":"https://api.github.com/repos/2gis/tars/contents/{+path}","compare_url":"https://api.github.com/repos/2gis/tars/compare/{base}...{head}","merges_url":"https://api.github.com/repos/2gis/tars/merges","archive_url":"https://api.github.com/repos/2gis/tars/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/2gis/tars/downloads","issues_url":"https://api.github.com/repos/2gis/tars/issues{/number}","pulls_url":"https://api.github.com/repos/2gis/tars/pulls{/number}","milestones_url":"https://api.github.com/repos/2gis/tars/milestones{/number}","notifications_url":"https://api.github.com/repos/2gis/tars/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/2gis/tars/labels{/name}","releases_url":"https://api.github.com/repos/2gis/tars/releases{/id}","created_at":"2014-06-04T17:44:16Z","updated_at":"2015-07-18T10:54:46Z","pushed_at":"2015-07-18T10:49:39Z","git_url":"git://github.com/2gis/tars.git","ssh_url":"git@github.com:2gis/tars.git","clone_url":"https://github.com/2gis/tars.git","svn_url":"https://github.com/2gis/tars","homepage":null,"size":2168,"stargazers_count":211,"watchers_count":211,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"open_issues_count":40,"forks":40,"open_issues":40,"watchers":211,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/2gis/tars/pulls/89"},"html":{"href":"https://github.com/2gis/tars/pull/89"},"issue":{"href":"https://api.github.com/repos/2gis/tars/issues/89"},"comments":{"href":"https://api.github.com/repos/2gis/tars/issues/89/comments"},"review_comments":{"href":"https://api.github.com/repos/2gis/tars/pulls/89/comments"},"review_comment":{"href":"https://api.github.com/repos/2gis/tars/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/2gis/tars/pulls/89/commits"},"statuses":{"href":"https://api.github.com/repos/2gis/tars/statuses/e34322645a588343f4e3e9539c0c778ebf42b417"}}}}