{"action":"created","comment":{"url":"https://api.github.com/repos/ehsanh06/statgen/pulls/comments/96010221","pull_request_review_id":16582614,"id":96010221,"diff_hunk":"@@ -1,87 +1,18 @@\n-// Include Gulp and Plugins\n-var _           = require('underscore');\n-var argv        = require('yargs').argv;\n-var colors      = require('colors');\n-var fm          = require('front-matter');\n-var fs          = require('fs');\n-var gulp        = require('gulp');\n-var gzip        = require('gulp-gzip');\n-var handlebars  = require('handlebars');\n-var marked      = require('marked');\n-var mkdirp      = require('mkdirp');\n-var moment      = require('moment');\n-var rename      = require('gulp-rename');\n-var requireDir  = require('require-dir');\n-var rmrf        = require('rimraf');\n-var sass        = require('gulp-sass');\n-\n-var conf        = require('./conf.json');\n-var dir         = requireDir('./tasks/');\n-\n-\n-// Define base folders\n-var paths = {\n-    pages: './views/pages/',\n-    posts: './views/posts/',\n-    drafts: './views/drafts/',\n-    layouts: './views/',\n-    includes: './public/src/js/',\n-    sass: './public/src/sass/**/*.scss',\n-    dist: './dist/',\n-    distCss: './dist/css/'\n-}\n-\n-// Handlebars registerPartial method takes name of partial as first arg\n-// and also takes a template source or compiled template as second arg\n-// in this case it'll be the source files for each corresponding partial\n-handlebars.registerPartial('nav', fs.readFileSync(paths.includes + 'nav.hbs', 'utf8'));\n-handlebars.registerPartial('head', fs.readFileSync(paths.includes + 'head.hbs', 'utf8'));\n-handlebars.registerPartial('footer', fs.readFileSync(paths.includes + 'footer.hbs', 'utf8'));\n-handlebars.registerPartial('recent', fs.readFileSync(paths.includes + 'recent.hbs', 'utf8'));\n-\n-// Global variable function which takes care of slug\n-var hyphenateSlug = function(slug) {\n-\n-    // Convert slug to lowercase, trim whitespace, replace any /'s with '-'s\n-    return slug.toLowerCase().trim().replace(/[^\\w\\s]/g, '').replace(/\\s+/g, '-');\n-}\n-\n-// Specifying the sass file and minified CSS file\n-var files = {\n-    input: './src/sass/style.scss',\n-    output: ' style.min.css'\n-}\n-\n-// Requiring all of the external gulp-tasks\n-requireDir('./tasks', {recurse: true });\n-\n-// // Generate new page\n-// gulp.task('new-page', ['new-page'], function(){\n-//     console.log('New page');\n-// });\n-\n-// // Generate new post\n-// gulp.task('new-post', ['new-post'], function(){\n-//     console.log('New post');\n-// });\n-\n-\n-// Sass gulp task\n-gulp.task('sass-build', function () {\n-    return gulp.src(files.input)\n-        .pipe(sass({outputStyle: 'compressed'}))\n-        .pipe(rename(files.output))\n-        .pipe(gulp.dest(paths.distCss));\n+// Include Gulp and modular task file\n+var gulp = require('gulp');\n+var tasks = require('./lib/tasks/index');\n+\n+// Gulp tasks\n+gulp.task('post', function() {\n+    console.log('Console Message: Building Post'),\n+    tasks.post;\n });\n-\n-gulp.task('clean', function() { rmrf.sync(paths.dist); });\n-\n-gulp.task('build', ['clean', 'site-build', 'sass-build'], function() {\n-   console.log('Task success: All pages built successfully.');\n+gulp.task('page', function() {\n+    console.log('Console Message: Building Page'),\n+    tasks.page;","path":"gulpfile.js","position":91,"original_position":91,"commit_id":"559bc970877cf6d446dcdb4464fa5e2dd42f84fb","original_commit_id":"559bc970877cf6d446dcdb4464fa5e2dd42f84fb","user":{"login":"shahidaltaf","id":1282241,"avatar_url":"https://avatars.githubusercontent.com/u/1282241?v=3","gravatar_id":"","url":"https://api.github.com/users/shahidaltaf","html_url":"https://github.com/shahidaltaf","followers_url":"https://api.github.com/users/shahidaltaf/followers","following_url":"https://api.github.com/users/shahidaltaf/following{/other_user}","gists_url":"https://api.github.com/users/shahidaltaf/gists{/gist_id}","starred_url":"https://api.github.com/users/shahidaltaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shahidaltaf/subscriptions","organizations_url":"https://api.github.com/users/shahidaltaf/orgs","repos_url":"https://api.github.com/users/shahidaltaf/repos","events_url":"https://api.github.com/users/shahidaltaf/events{/privacy}","received_events_url":"https://api.github.com/users/shahidaltaf/received_events","type":"User","site_admin":false},"body":"Should take a title parameter","created_at":"2017-01-13T14:58:02Z","updated_at":"2017-01-13T15:01:09Z","html_url":"https://github.com/ehsanh06/statgen/pull/2#discussion_r96010221","pull_request_url":"https://api.github.com/repos/ehsanh06/statgen/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/ehsanh06/statgen/pulls/comments/96010221"},"html":{"href":"https://github.com/ehsanh06/statgen/pull/2#discussion_r96010221"},"pull_request":{"href":"https://api.github.com/repos/ehsanh06/statgen/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/ehsanh06/statgen/pulls/2","id":101248332,"html_url":"https://github.com/ehsanh06/statgen/pull/2","diff_url":"https://github.com/ehsanh06/statgen/pull/2.diff","patch_url":"https://github.com/ehsanh06/statgen/pull/2.patch","issue_url":"https://api.github.com/repos/ehsanh06/statgen/issues/2","number":2,"state":"open","locked":false,"title":"Revamp","user":{"login":"ehsanh06","id":7371627,"avatar_url":"https://avatars.githubusercontent.com/u/7371627?v=3","gravatar_id":"","url":"https://api.github.com/users/ehsanh06","html_url":"https://github.com/ehsanh06","followers_url":"https://api.github.com/users/ehsanh06/followers","following_url":"https://api.github.com/users/ehsanh06/following{/other_user}","gists_url":"https://api.github.com/users/ehsanh06/gists{/gist_id}","starred_url":"https://api.github.com/users/ehsanh06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehsanh06/subscriptions","organizations_url":"https://api.github.com/users/ehsanh06/orgs","repos_url":"https://api.github.com/users/ehsanh06/repos","events_url":"https://api.github.com/users/ehsanh06/events{/privacy}","received_events_url":"https://api.github.com/users/ehsanh06/received_events","type":"User","site_admin":false},"body":"I've rewritten this again - opened up a branch as revamp. Trouble I'm facing is getting the MD's to generate at the gulp post -t \"title\" or gulp page -t \"title\", despite there being no errors. \r\n\r\nNot sure why my views folder hasn't been pushed ","created_at":"2017-01-12T12:16:07Z","updated_at":"2017-01-13T15:01:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"179a824812e4d955b4d59b483cfa748f214b94f2","assignee":{"login":"ehsanh06","id":7371627,"avatar_url":"https://avatars.githubusercontent.com/u/7371627?v=3","gravatar_id":"","url":"https://api.github.com/users/ehsanh06","html_url":"https://github.com/ehsanh06","followers_url":"https://api.github.com/users/ehsanh06/followers","following_url":"https://api.github.com/users/ehsanh06/following{/other_user}","gists_url":"https://api.github.com/users/ehsanh06/gists{/gist_id}","starred_url":"https://api.github.com/users/ehsanh06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehsanh06/subscriptions","organizations_url":"https://api.github.com/users/ehsanh06/orgs","repos_url":"https://api.github.com/users/ehsanh06/repos","events_url":"https://api.github.com/users/ehsanh06/events{/privacy}","received_events_url":"https://api.github.com/users/ehsanh06/received_events","type":"User","site_admin":false},"assignees":[{"login":"ehsanh06","id":7371627,"avatar_url":"https://avatars.githubusercontent.com/u/7371627?v=3","gravatar_id":"","url":"https://api.github.com/users/ehsanh06","html_url":"https://github.com/ehsanh06","followers_url":"https://api.github.com/users/ehsanh06/followers","following_url":"https://api.github.com/users/ehsanh06/following{/other_user}","gists_url":"https://api.github.com/users/ehsanh06/gists{/gist_id}","starred_url":"https://api.github.com/users/ehsanh06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehsanh06/subscriptions","organizations_url":"https://api.github.com/users/ehsanh06/orgs","repos_url":"https://api.github.com/users/ehsanh06/repos","events_url":"https://api.github.com/users/ehsanh06/events{/privacy}","received_events_url":"https://api.github.com/users/ehsanh06/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ehsanh06/statgen/pulls/2/commits","review_comments_url":"https://api.github.com/repos/ehsanh06/statgen/pulls/2/comments","review_comment_url":"https://api.github.com/repos/ehsanh06/statgen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ehsanh06/statgen/issues/2/comments","statuses_url":"https://api.github.com/repos/ehsanh06/statgen/statuses/559bc970877cf6d446dcdb4464fa5e2dd42f84fb","head":{"label":"ehsanh06:revamp","ref":"revamp","sha":"559bc970877cf6d446dcdb4464fa5e2dd42f84fb","user":{"login":"ehsanh06","id":7371627,"avatar_url":"https://avatars.githubusercontent.com/u/7371627?v=3","gravatar_id":"","url":"https://api.github.com/users/ehsanh06","html_url":"https://github.com/ehsanh06","followers_url":"https://api.github.com/users/ehsanh06/followers","following_url":"https://api.github.com/users/ehsanh06/following{/other_user}","gists_url":"https://api.github.com/users/ehsanh06/gists{/gist_id}","starred_url":"https://api.github.com/users/ehsanh06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehsanh06/subscriptions","organizations_url":"https://api.github.com/users/ehsanh06/orgs","repos_url":"https://api.github.com/users/ehsanh06/repos","events_url":"https://api.github.com/users/ehsanh06/events{/privacy}","received_events_url":"https://api.github.com/users/ehsanh06/received_events","type":"User","site_admin":false},"repo":{"id":78031298,"name":"statgen","full_name":"ehsanh06/statgen","owner":{"login":"ehsanh06","id":7371627,"avatar_url":"https://avatars.githubusercontent.com/u/7371627?v=3","gravatar_id":"","url":"https://api.github.com/users/ehsanh06","html_url":"https://github.com/ehsanh06","followers_url":"https://api.github.com/users/ehsanh06/followers","following_url":"https://api.github.com/users/ehsanh06/following{/other_user}","gists_url":"https://api.github.com/users/ehsanh06/gists{/gist_id}","starred_url":"https://api.github.com/users/ehsanh06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehsanh06/subscriptions","organizations_url":"https://api.github.com/users/ehsanh06/orgs","repos_url":"https://api.github.com/users/ehsanh06/repos","events_url":"https://api.github.com/users/ehsanh06/events{/privacy}","received_events_url":"https://api.github.com/users/ehsanh06/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ehsanh06/statgen","description":null,"fork":false,"url":"https://api.github.com/repos/ehsanh06/statgen","forks_url":"https://api.github.com/repos/ehsanh06/statgen/forks","keys_url":"https://api.github.com/repos/ehsanh06/statgen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ehsanh06/statgen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ehsanh06/statgen/teams","hooks_url":"https://api.github.com/repos/ehsanh06/statgen/hooks","issue_events_url":"https://api.github.com/repos/ehsanh06/statgen/issues/events{/number}","events_url":"https://api.github.com/repos/ehsanh06/statgen/events","assignees_url":"https://api.github.com/repos/ehsanh06/statgen/assignees{/user}","branches_url":"https://api.github.com/repos/ehsanh06/statgen/branches{/branch}","tags_url":"https://api.github.com/repos/ehsanh06/statgen/tags","blobs_url":"https://api.github.com/repos/ehsanh06/statgen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ehsanh06/statgen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ehsanh06/statgen/git/refs{/sha}","trees_url":"https://api.github.com/repos/ehsanh06/statgen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ehsanh06/statgen/statuses/{sha}","languages_url":"https://api.github.com/repos/ehsanh06/statgen/languages","stargazers_url":"https://api.github.com/repos/ehsanh06/statgen/stargazers","contributors_url":"https://api.github.com/repos/ehsanh06/statgen/contributors","subscribers_url":"https://api.github.com/repos/ehsanh06/statgen/subscribers","subscription_url":"https://api.github.com/repos/ehsanh06/statgen/subscription","commits_url":"https://api.github.com/repos/ehsanh06/statgen/commits{/sha}","git_commits_url":"https://api.github.com/repos/ehsanh06/statgen/git/commits{/sha}","comments_url":"https://api.github.com/repos/ehsanh06/statgen/comments{/number}","issue_comment_url":"https://api.github.com/repos/ehsanh06/statgen/issues/comments{/number}","contents_url":"https://api.github.com/repos/ehsanh06/statgen/contents/{+path}","compare_url":"https://api.github.com/repos/ehsanh06/statgen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ehsanh06/statgen/merges","archive_url":"https://api.github.com/repos/ehsanh06/statgen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ehsanh06/statgen/downloads","issues_url":"https://api.github.com/repos/ehsanh06/statgen/issues{/number}","pulls_url":"https://api.github.com/repos/ehsanh06/statgen/pulls{/number}","milestones_url":"https://api.github.com/repos/ehsanh06/statgen/milestones{/number}","notifications_url":"https://api.github.com/repos/ehsanh06/statgen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ehsanh06/statgen/labels{/name}","releases_url":"https://api.github.com/repos/ehsanh06/statgen/releases{/id}","deployments_url":"https://api.github.com/repos/ehsanh06/statgen/deployments","created_at":"2017-01-04T16:10:43Z","updated_at":"2017-01-08T13:07:23Z","pushed_at":"2017-01-12T22:10:02Z","git_url":"git://github.com/ehsanh06/statgen.git","ssh_url":"git@github.com:ehsanh06/statgen.git","clone_url":"https://github.com/ehsanh06/statgen.git","svn_url":"https://github.com/ehsanh06/statgen","homepage":null,"size":6455,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ehsanh06:master","ref":"master","sha":"3e174a6832c2ef9c631d0abd3249578880e1b158","user":{"login":"ehsanh06","id":7371627,"avatar_url":"https://avatars.githubusercontent.com/u/7371627?v=3","gravatar_id":"","url":"https://api.github.com/users/ehsanh06","html_url":"https://github.com/ehsanh06","followers_url":"https://api.github.com/users/ehsanh06/followers","following_url":"https://api.github.com/users/ehsanh06/following{/other_user}","gists_url":"https://api.github.com/users/ehsanh06/gists{/gist_id}","starred_url":"https://api.github.com/users/ehsanh06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehsanh06/subscriptions","organizations_url":"https://api.github.com/users/ehsanh06/orgs","repos_url":"https://api.github.com/users/ehsanh06/repos","events_url":"https://api.github.com/users/ehsanh06/events{/privacy}","received_events_url":"https://api.github.com/users/ehsanh06/received_events","type":"User","site_admin":false},"repo":{"id":78031298,"name":"statgen","full_name":"ehsanh06/statgen","owner":{"login":"ehsanh06","id":7371627,"avatar_url":"https://avatars.githubusercontent.com/u/7371627?v=3","gravatar_id":"","url":"https://api.github.com/users/ehsanh06","html_url":"https://github.com/ehsanh06","followers_url":"https://api.github.com/users/ehsanh06/followers","following_url":"https://api.github.com/users/ehsanh06/following{/other_user}","gists_url":"https://api.github.com/users/ehsanh06/gists{/gist_id}","starred_url":"https://api.github.com/users/ehsanh06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehsanh06/subscriptions","organizations_url":"https://api.github.com/users/ehsanh06/orgs","repos_url":"https://api.github.com/users/ehsanh06/repos","events_url":"https://api.github.com/users/ehsanh06/events{/privacy}","received_events_url":"https://api.github.com/users/ehsanh06/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ehsanh06/statgen","description":null,"fork":false,"url":"https://api.github.com/repos/ehsanh06/statgen","forks_url":"https://api.github.com/repos/ehsanh06/statgen/forks","keys_url":"https://api.github.com/repos/ehsanh06/statgen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ehsanh06/statgen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ehsanh06/statgen/teams","hooks_url":"https://api.github.com/repos/ehsanh06/statgen/hooks","issue_events_url":"https://api.github.com/repos/ehsanh06/statgen/issues/events{/number}","events_url":"https://api.github.com/repos/ehsanh06/statgen/events","assignees_url":"https://api.github.com/repos/ehsanh06/statgen/assignees{/user}","branches_url":"https://api.github.com/repos/ehsanh06/statgen/branches{/branch}","tags_url":"https://api.github.com/repos/ehsanh06/statgen/tags","blobs_url":"https://api.github.com/repos/ehsanh06/statgen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ehsanh06/statgen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ehsanh06/statgen/git/refs{/sha}","trees_url":"https://api.github.com/repos/ehsanh06/statgen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ehsanh06/statgen/statuses/{sha}","languages_url":"https://api.github.com/repos/ehsanh06/statgen/languages","stargazers_url":"https://api.github.com/repos/ehsanh06/statgen/stargazers","contributors_url":"https://api.github.com/repos/ehsanh06/statgen/contributors","subscribers_url":"https://api.github.com/repos/ehsanh06/statgen/subscribers","subscription_url":"https://api.github.com/repos/ehsanh06/statgen/subscription","commits_url":"https://api.github.com/repos/ehsanh06/statgen/commits{/sha}","git_commits_url":"https://api.github.com/repos/ehsanh06/statgen/git/commits{/sha}","comments_url":"https://api.github.com/repos/ehsanh06/statgen/comments{/number}","issue_comment_url":"https://api.github.com/repos/ehsanh06/statgen/issues/comments{/number}","contents_url":"https://api.github.com/repos/ehsanh06/statgen/contents/{+path}","compare_url":"https://api.github.com/repos/ehsanh06/statgen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ehsanh06/statgen/merges","archive_url":"https://api.github.com/repos/ehsanh06/statgen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ehsanh06/statgen/downloads","issues_url":"https://api.github.com/repos/ehsanh06/statgen/issues{/number}","pulls_url":"https://api.github.com/repos/ehsanh06/statgen/pulls{/number}","milestones_url":"https://api.github.com/repos/ehsanh06/statgen/milestones{/number}","notifications_url":"https://api.github.com/repos/ehsanh06/statgen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ehsanh06/statgen/labels{/name}","releases_url":"https://api.github.com/repos/ehsanh06/statgen/releases{/id}","deployments_url":"https://api.github.com/repos/ehsanh06/statgen/deployments","created_at":"2017-01-04T16:10:43Z","updated_at":"2017-01-08T13:07:23Z","pushed_at":"2017-01-12T22:10:02Z","git_url":"git://github.com/ehsanh06/statgen.git","ssh_url":"git@github.com:ehsanh06/statgen.git","clone_url":"https://github.com/ehsanh06/statgen.git","svn_url":"https://github.com/ehsanh06/statgen","homepage":null,"size":6455,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ehsanh06/statgen/pulls/2"},"html":{"href":"https://github.com/ehsanh06/statgen/pull/2"},"issue":{"href":"https://api.github.com/repos/ehsanh06/statgen/issues/2"},"comments":{"href":"https://api.github.com/repos/ehsanh06/statgen/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/ehsanh06/statgen/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/ehsanh06/statgen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ehsanh06/statgen/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/ehsanh06/statgen/statuses/559bc970877cf6d446dcdb4464fa5e2dd42f84fb"}}}}
{"actor":{"display_login":"shahidaltaf"}}