{"action":"created","comment":{"url":"https://api.github.com/repos/iamstarkov/jsunderhood/pulls/comments/40426716","id":40426716,"diff_hunk":"@@ -1,112 +1,105 @@\n 'use strict';\n \n-var through = require('through2');\n-var gulp = require('gulp');\n-var watch = require('gulp-watch');\n-var rename = require('gulp-rename');\n-var data = require('gulp-data');\n-var gulpJade = require('gulp-jade');\n-var debug = require('gulp-debug');\n-var replace = require('gulp-replace');\n-var log = require('gulp-util').log;\n-var buildbranch = require('buildbranch');\n-var rss = require('rss');\n-var del = require('del');\n-var fs = require('fs-extra');\n-var output = require('fs-extra').outputFile;\n-var express = require('express');\n-var assign = require('object-assign');\n-var sequence = require('run-sequence');\n-var each = require('each-done');\n-var path = require('path');\n-var numd = require('numd');\n-var numbers = require('typographic-numbers');\n-var gm = require('gulp-gm');\n-\n-import renderTweet from 'tweet.md';\n+import buildbranch from 'buildbranch';\n+import del from 'del';\n+import each from 'each-done';\n+import express from 'express';\n+import fs, { outputFile as output } from 'fs-extra';\n import { html } from 'commonmark-helpers';\n+import moment from 'moment';\n+import numbers from 'typographic-numbers';\n+import numd from 'numd';\n+import path from 'path';\n+import rss from 'rss';\n+import sequence from 'run-sequence';\n+import through from 'through2';\n+import renderTweet from 'tweet.md';\n \n-var latestInfo = fs.readJsonSync('./dump/latest-info.json');\n-var authors = require('./authors.js');\n-var getStats = require('./stats.js');\n+import gulp from 'gulp';\n+import data from 'gulp-data';\n+import debug from 'gulp-debug';\n+import gm from 'gulp-gm';\n+import gulpJade from 'gulp-jade';\n+import rename from 'gulp-rename';\n+import replace from 'gulp-replace';\n+import watch from 'gulp-watch';\n+import { log } from 'gulp-util';\n \n-var moment = require('moment');\n-var d = function(input) { return moment(new Date(input)).format(\"DD MMMM YYYY\"); };\n-var unix = function(text) { return moment(new Date(text)).unix(); }\n-var site = require('./package.json').site;\n+import articleData from './article-data';\n+import authors from './authors.js';\n+import getStats from './stats.js';\n \n-var getBasename = function(file) {\n-  return path.basename(file.relative, path.extname(file.relative));\n-};\n+import latestInfo from './dump/latest-info.json';\n+import { site } from './package.json';\n+\n+const d = input => moment(new Date(input)).format(\"DD MMMM YYYY\");\n+const unix = input => moment(new Date(input)).unix();\n \n-var jadeDefaults = {\n+const getBasename = ({ relative }) => path.parse(relative).name;","path":"gulpfile.babel.js","position":73,"original_position":73,"commit_id":"fc731361bca26188adead1170d0055efa5e58852","original_commit_id":"fc731361bca26188adead1170d0055efa5e58852","user":{"login":"iamstarkov","id":559321,"avatar_url":"https://avatars.githubusercontent.com/u/559321?v=3","gravatar_id":"","url":"https://api.github.com/users/iamstarkov","html_url":"https://github.com/iamstarkov","followers_url":"https://api.github.com/users/iamstarkov/followers","following_url":"https://api.github.com/users/iamstarkov/following{/other_user}","gists_url":"https://api.github.com/users/iamstarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/iamstarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamstarkov/subscriptions","organizations_url":"https://api.github.com/users/iamstarkov/orgs","repos_url":"https://api.github.com/users/iamstarkov/repos","events_url":"https://api.github.com/users/iamstarkov/events{/privacy}","received_events_url":"https://api.github.com/users/iamstarkov/received_events","type":"User","site_admin":false},"body":"очень нравится","created_at":"2015-09-25T13:04:10Z","updated_at":"2015-09-25T13:04:10Z","html_url":"https://github.com/iamstarkov/jsunderhood/pull/62#discussion_r40426716","pull_request_url":"https://api.github.com/repos/iamstarkov/jsunderhood/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/iamstarkov/jsunderhood/pulls/comments/40426716"},"html":{"href":"https://github.com/iamstarkov/jsunderhood/pull/62#discussion_r40426716"},"pull_request":{"href":"https://api.github.com/repos/iamstarkov/jsunderhood/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/iamstarkov/jsunderhood/pulls/62","id":45940055,"html_url":"https://github.com/iamstarkov/jsunderhood/pull/62","diff_url":"https://github.com/iamstarkov/jsunderhood/pull/62.diff","patch_url":"https://github.com/iamstarkov/jsunderhood/pull/62.patch","issue_url":"https://api.github.com/repos/iamstarkov/jsunderhood/issues/62","number":62,"state":"open","locked":false,"title":"Refactor gulpfile","user":{"login":"kinday","id":1751980,"avatar_url":"https://avatars.githubusercontent.com/u/1751980?v=3","gravatar_id":"","url":"https://api.github.com/users/kinday","html_url":"https://github.com/kinday","followers_url":"https://api.github.com/users/kinday/followers","following_url":"https://api.github.com/users/kinday/following{/other_user}","gists_url":"https://api.github.com/users/kinday/gists{/gist_id}","starred_url":"https://api.github.com/users/kinday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinday/subscriptions","organizations_url":"https://api.github.com/users/kinday/orgs","repos_url":"https://api.github.com/users/kinday/repos","events_url":"https://api.github.com/users/kinday/events{/privacy}","received_events_url":"https://api.github.com/users/kinday/received_events","type":"User","site_admin":false},"body":"Привёл немного в порядок. Открыт к предложениям.","created_at":"2015-09-24T19:37:39Z","updated_at":"2015-09-25T13:04:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af5f16024e8e7569f5085738600e6e09cc1fdb01","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/iamstarkov/jsunderhood/pulls/62/commits","review_comments_url":"https://api.github.com/repos/iamstarkov/jsunderhood/pulls/62/comments","review_comment_url":"https://api.github.com/repos/iamstarkov/jsunderhood/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iamstarkov/jsunderhood/issues/62/comments","statuses_url":"https://api.github.com/repos/iamstarkov/jsunderhood/statuses/fc731361bca26188adead1170d0055efa5e58852","head":{"label":"kinday:refactor-gulpfile","ref":"refactor-gulpfile","sha":"fc731361bca26188adead1170d0055efa5e58852","user":{"login":"kinday","id":1751980,"avatar_url":"https://avatars.githubusercontent.com/u/1751980?v=3","gravatar_id":"","url":"https://api.github.com/users/kinday","html_url":"https://github.com/kinday","followers_url":"https://api.github.com/users/kinday/followers","following_url":"https://api.github.com/users/kinday/following{/other_user}","gists_url":"https://api.github.com/users/kinday/gists{/gist_id}","starred_url":"https://api.github.com/users/kinday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinday/subscriptions","organizations_url":"https://api.github.com/users/kinday/orgs","repos_url":"https://api.github.com/users/kinday/repos","events_url":"https://api.github.com/users/kinday/events{/privacy}","received_events_url":"https://api.github.com/users/kinday/received_events","type":"User","site_admin":false},"repo":{"id":42918849,"name":"jsunderhood","full_name":"kinday/jsunderhood","owner":{"login":"kinday","id":1751980,"avatar_url":"https://avatars.githubusercontent.com/u/1751980?v=3","gravatar_id":"","url":"https://api.github.com/users/kinday","html_url":"https://github.com/kinday","followers_url":"https://api.github.com/users/kinday/followers","following_url":"https://api.github.com/users/kinday/following{/other_user}","gists_url":"https://api.github.com/users/kinday/gists{/gist_id}","starred_url":"https://api.github.com/users/kinday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinday/subscriptions","organizations_url":"https://api.github.com/users/kinday/orgs","repos_url":"https://api.github.com/users/kinday/repos","events_url":"https://api.github.com/users/kinday/events{/privacy}","received_events_url":"https://api.github.com/users/kinday/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kinday/jsunderhood","description":"Коллективный твиттер-аккаунт для фронтенд-разработчиков с новым автором каждую неделю","fork":true,"url":"https://api.github.com/repos/kinday/jsunderhood","forks_url":"https://api.github.com/repos/kinday/jsunderhood/forks","keys_url":"https://api.github.com/repos/kinday/jsunderhood/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kinday/jsunderhood/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kinday/jsunderhood/teams","hooks_url":"https://api.github.com/repos/kinday/jsunderhood/hooks","issue_events_url":"https://api.github.com/repos/kinday/jsunderhood/issues/events{/number}","events_url":"https://api.github.com/repos/kinday/jsunderhood/events","assignees_url":"https://api.github.com/repos/kinday/jsunderhood/assignees{/user}","branches_url":"https://api.github.com/repos/kinday/jsunderhood/branches{/branch}","tags_url":"https://api.github.com/repos/kinday/jsunderhood/tags","blobs_url":"https://api.github.com/repos/kinday/jsunderhood/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kinday/jsunderhood/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kinday/jsunderhood/git/refs{/sha}","trees_url":"https://api.github.com/repos/kinday/jsunderhood/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kinday/jsunderhood/statuses/{sha}","languages_url":"https://api.github.com/repos/kinday/jsunderhood/languages","stargazers_url":"https://api.github.com/repos/kinday/jsunderhood/stargazers","contributors_url":"https://api.github.com/repos/kinday/jsunderhood/contributors","subscribers_url":"https://api.github.com/repos/kinday/jsunderhood/subscribers","subscription_url":"https://api.github.com/repos/kinday/jsunderhood/subscription","commits_url":"https://api.github.com/repos/kinday/jsunderhood/commits{/sha}","git_commits_url":"https://api.github.com/repos/kinday/jsunderhood/git/commits{/sha}","comments_url":"https://api.github.com/repos/kinday/jsunderhood/comments{/number}","issue_comment_url":"https://api.github.com/repos/kinday/jsunderhood/issues/comments{/number}","contents_url":"https://api.github.com/repos/kinday/jsunderhood/contents/{+path}","compare_url":"https://api.github.com/repos/kinday/jsunderhood/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kinday/jsunderhood/merges","archive_url":"https://api.github.com/repos/kinday/jsunderhood/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kinday/jsunderhood/downloads","issues_url":"https://api.github.com/repos/kinday/jsunderhood/issues{/number}","pulls_url":"https://api.github.com/repos/kinday/jsunderhood/pulls{/number}","milestones_url":"https://api.github.com/repos/kinday/jsunderhood/milestones{/number}","notifications_url":"https://api.github.com/repos/kinday/jsunderhood/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kinday/jsunderhood/labels{/name}","releases_url":"https://api.github.com/repos/kinday/jsunderhood/releases{/id}","created_at":"2015-09-22T07:38:33Z","updated_at":"2015-09-22T07:38:37Z","pushed_at":"2015-09-25T09:16:24Z","git_url":"git://github.com/kinday/jsunderhood.git","ssh_url":"git@github.com:kinday/jsunderhood.git","clone_url":"https://github.com/kinday/jsunderhood.git","svn_url":"https://github.com/kinday/jsunderhood","homepage":"http://jsunderhood.ru/","size":17113,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"iamstarkov:master","ref":"master","sha":"f54d41f95a777b9358546d700280a92461ef3b2c","user":{"login":"iamstarkov","id":559321,"avatar_url":"https://avatars.githubusercontent.com/u/559321?v=3","gravatar_id":"","url":"https://api.github.com/users/iamstarkov","html_url":"https://github.com/iamstarkov","followers_url":"https://api.github.com/users/iamstarkov/followers","following_url":"https://api.github.com/users/iamstarkov/following{/other_user}","gists_url":"https://api.github.com/users/iamstarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/iamstarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamstarkov/subscriptions","organizations_url":"https://api.github.com/users/iamstarkov/orgs","repos_url":"https://api.github.com/users/iamstarkov/repos","events_url":"https://api.github.com/users/iamstarkov/events{/privacy}","received_events_url":"https://api.github.com/users/iamstarkov/received_events","type":"User","site_admin":false},"repo":{"id":36231837,"name":"jsunderhood","full_name":"iamstarkov/jsunderhood","owner":{"login":"iamstarkov","id":559321,"avatar_url":"https://avatars.githubusercontent.com/u/559321?v=3","gravatar_id":"","url":"https://api.github.com/users/iamstarkov","html_url":"https://github.com/iamstarkov","followers_url":"https://api.github.com/users/iamstarkov/followers","following_url":"https://api.github.com/users/iamstarkov/following{/other_user}","gists_url":"https://api.github.com/users/iamstarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/iamstarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamstarkov/subscriptions","organizations_url":"https://api.github.com/users/iamstarkov/orgs","repos_url":"https://api.github.com/users/iamstarkov/repos","events_url":"https://api.github.com/users/iamstarkov/events{/privacy}","received_events_url":"https://api.github.com/users/iamstarkov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iamstarkov/jsunderhood","description":"Коллективный твиттер-аккаунт для фронтенд-разработчиков с новым автором каждую неделю","fork":false,"url":"https://api.github.com/repos/iamstarkov/jsunderhood","forks_url":"https://api.github.com/repos/iamstarkov/jsunderhood/forks","keys_url":"https://api.github.com/repos/iamstarkov/jsunderhood/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iamstarkov/jsunderhood/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iamstarkov/jsunderhood/teams","hooks_url":"https://api.github.com/repos/iamstarkov/jsunderhood/hooks","issue_events_url":"https://api.github.com/repos/iamstarkov/jsunderhood/issues/events{/number}","events_url":"https://api.github.com/repos/iamstarkov/jsunderhood/events","assignees_url":"https://api.github.com/repos/iamstarkov/jsunderhood/assignees{/user}","branches_url":"https://api.github.com/repos/iamstarkov/jsunderhood/branches{/branch}","tags_url":"https://api.github.com/repos/iamstarkov/jsunderhood/tags","blobs_url":"https://api.github.com/repos/iamstarkov/jsunderhood/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iamstarkov/jsunderhood/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iamstarkov/jsunderhood/git/refs{/sha}","trees_url":"https://api.github.com/repos/iamstarkov/jsunderhood/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iamstarkov/jsunderhood/statuses/{sha}","languages_url":"https://api.github.com/repos/iamstarkov/jsunderhood/languages","stargazers_url":"https://api.github.com/repos/iamstarkov/jsunderhood/stargazers","contributors_url":"https://api.github.com/repos/iamstarkov/jsunderhood/contributors","subscribers_url":"https://api.github.com/repos/iamstarkov/jsunderhood/subscribers","subscription_url":"https://api.github.com/repos/iamstarkov/jsunderhood/subscription","commits_url":"https://api.github.com/repos/iamstarkov/jsunderhood/commits{/sha}","git_commits_url":"https://api.github.com/repos/iamstarkov/jsunderhood/git/commits{/sha}","comments_url":"https://api.github.com/repos/iamstarkov/jsunderhood/comments{/number}","issue_comment_url":"https://api.github.com/repos/iamstarkov/jsunderhood/issues/comments{/number}","contents_url":"https://api.github.com/repos/iamstarkov/jsunderhood/contents/{+path}","compare_url":"https://api.github.com/repos/iamstarkov/jsunderhood/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iamstarkov/jsunderhood/merges","archive_url":"https://api.github.com/repos/iamstarkov/jsunderhood/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iamstarkov/jsunderhood/downloads","issues_url":"https://api.github.com/repos/iamstarkov/jsunderhood/issues{/number}","pulls_url":"https://api.github.com/repos/iamstarkov/jsunderhood/pulls{/number}","milestones_url":"https://api.github.com/repos/iamstarkov/jsunderhood/milestones{/number}","notifications_url":"https://api.github.com/repos/iamstarkov/jsunderhood/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iamstarkov/jsunderhood/labels{/name}","releases_url":"https://api.github.com/repos/iamstarkov/jsunderhood/releases{/id}","created_at":"2015-05-25T13:06:33Z","updated_at":"2015-09-23T17:28:28Z","pushed_at":"2015-09-25T09:16:25Z","git_url":"git://github.com/iamstarkov/jsunderhood.git","ssh_url":"git@github.com:iamstarkov/jsunderhood.git","clone_url":"https://github.com/iamstarkov/jsunderhood.git","svn_url":"https://github.com/iamstarkov/jsunderhood","homepage":"http://jsunderhood.ru/","size":17113,"stargazers_count":42,"watchers_count":42,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":12,"mirror_url":null,"open_issues_count":6,"forks":12,"open_issues":6,"watchers":42,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iamstarkov/jsunderhood/pulls/62"},"html":{"href":"https://github.com/iamstarkov/jsunderhood/pull/62"},"issue":{"href":"https://api.github.com/repos/iamstarkov/jsunderhood/issues/62"},"comments":{"href":"https://api.github.com/repos/iamstarkov/jsunderhood/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/iamstarkov/jsunderhood/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/iamstarkov/jsunderhood/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iamstarkov/jsunderhood/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/iamstarkov/jsunderhood/statuses/fc731361bca26188adead1170d0055efa5e58852"}}}}