{"action":"created","comment":{"url":"https://api.github.com/repos/metarhia/Metarhia/pulls/comments/300698807","pull_request_review_id":258424898,"id":300698807,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMwMDY5ODgwNw==","diff_hunk":"@@ -0,0 +1,103 @@\n+#!/usr/bin/env node\n+\n+const labels = require('./labels.json');\n+const fs = require('fs');\n+const path = require('path');\n+\n+const html = `\\\n+<!DOCTYPE html>\n+<html>\n+  <head>\n+    <style>\n+      table {\n+        border-collapse: collapse;\n+      }\n+\n+      tr {\n+        border-top: 1px solid #eaecef;\n+      }\n+      tr:last-child {\n+        border-bottom: 1px solid #eaecef;\n+      }\n+\n+      tr > td:first-child {\n+        border-left: 1px solid #eaecef;\n+      }\n+      tr > td:last-child {\n+        border-right: 1px solid #eaecef;\n+      }\n+      .label {\n+        border-radius: 3px;\n+        font-size: 16px;\n+        font-weight: 600;\n+        line-height: 2;\n+        font-family: sans-serif;\n+        padding: 0 8px;\n+        display: inline-block;\n+        margin: 8px 8px;\n+      }\n+\n+      .desc {\n+        padding: 8px 16px;\n+        display: inline-block;\n+      }\n+    </style>\n+  </head>\n+  <body>\n+    <script>\n+      const labels = ${JSON.stringify(labels)};\n+\n+      function calculateColor(bgColor) {\n+        const R = parseInt(bgColor.slice(0, 2), 16),\n+          G = parseInt(bgColor.slice(2, 4), 16),\n+          B = parseInt(bgColor.slice(4, 6), 16);\n+\n+        const C = [R / 255, G / 255, B / 255];\n+\n+        for (var i = 0; i < C.length; ++i) {\n+          if (C[i] <= 0.03928) {\n+            C[i] = C[i] / 12.92;\n+          } else {\n+            C[i] = Math.pow((C[i] + 0.055) / 1.055, 2.4);\n+          }\n+        }\n+\n+        const L = 0.2126 * C[0] + 0.7152 * C[1] + 0.0722 * C[2];\n+\n+        if (L > 0.179) {\n+          return 'black';\n+        } else {\n+          return 'white';","path":"labels/make-preview.js","position":70,"original_position":70,"commit_id":"857e9f73f17c9690fe5f5b847073f2b78111c2f6","original_commit_id":"857e9f73f17c9690fe5f5b847073f2b78111c2f6","user":{"login":"tshemsedinov","id":4405297,"node_id":"MDQ6VXNlcjQ0MDUyOTc=","avatar_url":"https://avatars2.githubusercontent.com/u/4405297?v=4","gravatar_id":"","url":"https://api.github.com/users/tshemsedinov","html_url":"https://github.com/tshemsedinov","followers_url":"https://api.github.com/users/tshemsedinov/followers","following_url":"https://api.github.com/users/tshemsedinov/following{/other_user}","gists_url":"https://api.github.com/users/tshemsedinov/gists{/gist_id}","starred_url":"https://api.github.com/users/tshemsedinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tshemsedinov/subscriptions","organizations_url":"https://api.github.com/users/tshemsedinov/orgs","repos_url":"https://api.github.com/users/tshemsedinov/repos","events_url":"https://api.github.com/users/tshemsedinov/events{/privacy}","received_events_url":"https://api.github.com/users/tshemsedinov/received_events","type":"User","site_admin":false},"body":"```suggestion\r\n```","created_at":"2019-07-05T14:10:38Z","updated_at":"2019-07-05T14:10:38Z","html_url":"https://github.com/metarhia/Metarhia/pull/38#discussion_r300698807","pull_request_url":"https://api.github.com/repos/metarhia/Metarhia/pulls/38","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/metarhia/Metarhia/pulls/comments/300698807"},"html":{"href":"https://github.com/metarhia/Metarhia/pull/38#discussion_r300698807"},"pull_request":{"href":"https://api.github.com/repos/metarhia/Metarhia/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/metarhia/Metarhia/pulls/38","id":272679050,"node_id":"MDExOlB1bGxSZXF1ZXN0MjcyNjc5MDUw","html_url":"https://github.com/metarhia/Metarhia/pull/38","diff_url":"https://github.com/metarhia/Metarhia/pull/38.diff","patch_url":"https://github.com/metarhia/Metarhia/pull/38.patch","issue_url":"https://api.github.com/repos/metarhia/Metarhia/issues/38","number":38,"state":"open","locked":false,"title":"Add base set of labels","user":{"login":"SemenchenkoVitaliy","id":17744818,"node_id":"MDQ6VXNlcjE3NzQ0ODE4","avatar_url":"https://avatars0.githubusercontent.com/u/17744818?v=4","gravatar_id":"","url":"https://api.github.com/users/SemenchenkoVitaliy","html_url":"https://github.com/SemenchenkoVitaliy","followers_url":"https://api.github.com/users/SemenchenkoVitaliy/followers","following_url":"https://api.github.com/users/SemenchenkoVitaliy/following{/other_user}","gists_url":"https://api.github.com/users/SemenchenkoVitaliy/gists{/gist_id}","starred_url":"https://api.github.com/users/SemenchenkoVitaliy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SemenchenkoVitaliy/subscriptions","organizations_url":"https://api.github.com/users/SemenchenkoVitaliy/orgs","repos_url":"https://api.github.com/users/SemenchenkoVitaliy/repos","events_url":"https://api.github.com/users/SemenchenkoVitaliy/events{/privacy}","received_events_url":"https://api.github.com/users/SemenchenkoVitaliy/received_events","type":"User","site_admin":false},"body":"Info: https://github.com/metarhia/Metarhia/issues/37.","created_at":"2019-04-23T10:49:52Z","updated_at":"2019-07-05T14:10:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3c6cc23c40845fff744a5fec4ef6b8004ef109b","assignee":{"login":"SemenchenkoVitaliy","id":17744818,"node_id":"MDQ6VXNlcjE3NzQ0ODE4","avatar_url":"https://avatars0.githubusercontent.com/u/17744818?v=4","gravatar_id":"","url":"https://api.github.com/users/SemenchenkoVitaliy","html_url":"https://github.com/SemenchenkoVitaliy","followers_url":"https://api.github.com/users/SemenchenkoVitaliy/followers","following_url":"https://api.github.com/users/SemenchenkoVitaliy/following{/other_user}","gists_url":"https://api.github.com/users/SemenchenkoVitaliy/gists{/gist_id}","starred_url":"https://api.github.com/users/SemenchenkoVitaliy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SemenchenkoVitaliy/subscriptions","organizations_url":"https://api.github.com/users/SemenchenkoVitaliy/orgs","repos_url":"https://api.github.com/users/SemenchenkoVitaliy/repos","events_url":"https://api.github.com/users/SemenchenkoVitaliy/events{/privacy}","received_events_url":"https://api.github.com/users/SemenchenkoVitaliy/received_events","type":"User","site_admin":false},"assignees":[{"login":"SemenchenkoVitaliy","id":17744818,"node_id":"MDQ6VXNlcjE3NzQ0ODE4","avatar_url":"https://avatars0.githubusercontent.com/u/17744818?v=4","gravatar_id":"","url":"https://api.github.com/users/SemenchenkoVitaliy","html_url":"https://github.com/SemenchenkoVitaliy","followers_url":"https://api.github.com/users/SemenchenkoVitaliy/followers","following_url":"https://api.github.com/users/SemenchenkoVitaliy/following{/other_user}","gists_url":"https://api.github.com/users/SemenchenkoVitaliy/gists{/gist_id}","starred_url":"https://api.github.com/users/SemenchenkoVitaliy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SemenchenkoVitaliy/subscriptions","organizations_url":"https://api.github.com/users/SemenchenkoVitaliy/orgs","repos_url":"https://api.github.com/users/SemenchenkoVitaliy/repos","events_url":"https://api.github.com/users/SemenchenkoVitaliy/events{/privacy}","received_events_url":"https://api.github.com/users/SemenchenkoVitaliy/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":594915489,"node_id":"MDU6TGFiZWw1OTQ5MTU0ODk=","url":"https://api.github.com/repos/metarhia/Metarhia/labels/docs","name":"docs","color":"fef2c0","default":false},{"id":594915299,"node_id":"MDU6TGFiZWw1OTQ5MTUyOTk=","url":"https://api.github.com/repos/metarhia/Metarhia/labels/research","name":"research","color":"0052cc","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/metarhia/Metarhia/pulls/38/commits","review_comments_url":"https://api.github.com/repos/metarhia/Metarhia/pulls/38/comments","review_comment_url":"https://api.github.com/repos/metarhia/Metarhia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/metarhia/Metarhia/issues/38/comments","statuses_url":"https://api.github.com/repos/metarhia/Metarhia/statuses/857e9f73f17c9690fe5f5b847073f2b78111c2f6","head":{"label":"metarhia:add-labels-base-set","ref":"add-labels-base-set","sha":"857e9f73f17c9690fe5f5b847073f2b78111c2f6","user":{"login":"metarhia","id":18060695,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MDYwNjk1","avatar_url":"https://avatars2.githubusercontent.com/u/18060695?v=4","gravatar_id":"","url":"https://api.github.com/users/metarhia","html_url":"https://github.com/metarhia","followers_url":"https://api.github.com/users/metarhia/followers","following_url":"https://api.github.com/users/metarhia/following{/other_user}","gists_url":"https://api.github.com/users/metarhia/gists{/gist_id}","starred_url":"https://api.github.com/users/metarhia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metarhia/subscriptions","organizations_url":"https://api.github.com/users/metarhia/orgs","repos_url":"https://api.github.com/users/metarhia/repos","events_url":"https://api.github.com/users/metarhia/events{/privacy}","received_events_url":"https://api.github.com/users/metarhia/received_events","type":"Organization","site_admin":false},"repo":{"id":52074757,"node_id":"MDEwOlJlcG9zaXRvcnk1MjA3NDc1Nw==","name":"Metarhia","full_name":"metarhia/Metarhia","private":false,"owner":{"login":"metarhia","id":18060695,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MDYwNjk1","avatar_url":"https://avatars2.githubusercontent.com/u/18060695?v=4","gravatar_id":"","url":"https://api.github.com/users/metarhia","html_url":"https://github.com/metarhia","followers_url":"https://api.github.com/users/metarhia/followers","following_url":"https://api.github.com/users/metarhia/following{/other_user}","gists_url":"https://api.github.com/users/metarhia/gists{/gist_id}","starred_url":"https://api.github.com/users/metarhia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metarhia/subscriptions","organizations_url":"https://api.github.com/users/metarhia/orgs","repos_url":"https://api.github.com/users/metarhia/repos","events_url":"https://api.github.com/users/metarhia/events{/privacy}","received_events_url":"https://api.github.com/users/metarhia/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/metarhia/Metarhia","description":"Technology Stack for Highload Applications","fork":false,"url":"https://api.github.com/repos/metarhia/Metarhia","forks_url":"https://api.github.com/repos/metarhia/Metarhia/forks","keys_url":"https://api.github.com/repos/metarhia/Metarhia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/metarhia/Metarhia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/metarhia/Metarhia/teams","hooks_url":"https://api.github.com/repos/metarhia/Metarhia/hooks","issue_events_url":"https://api.github.com/repos/metarhia/Metarhia/issues/events{/number}","events_url":"https://api.github.com/repos/metarhia/Metarhia/events","assignees_url":"https://api.github.com/repos/metarhia/Metarhia/assignees{/user}","branches_url":"https://api.github.com/repos/metarhia/Metarhia/branches{/branch}","tags_url":"https://api.github.com/repos/metarhia/Metarhia/tags","blobs_url":"https://api.github.com/repos/metarhia/Metarhia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/metarhia/Metarhia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/metarhia/Metarhia/git/refs{/sha}","trees_url":"https://api.github.com/repos/metarhia/Metarhia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/metarhia/Metarhia/statuses/{sha}","languages_url":"https://api.github.com/repos/metarhia/Metarhia/languages","stargazers_url":"https://api.github.com/repos/metarhia/Metarhia/stargazers","contributors_url":"https://api.github.com/repos/metarhia/Metarhia/contributors","subscribers_url":"https://api.github.com/repos/metarhia/Metarhia/subscribers","subscription_url":"https://api.github.com/repos/metarhia/Metarhia/subscription","commits_url":"https://api.github.com/repos/metarhia/Metarhia/commits{/sha}","git_commits_url":"https://api.github.com/repos/metarhia/Metarhia/git/commits{/sha}","comments_url":"https://api.github.com/repos/metarhia/Metarhia/comments{/number}","issue_comment_url":"https://api.github.com/repos/metarhia/Metarhia/issues/comments{/number}","contents_url":"https://api.github.com/repos/metarhia/Metarhia/contents/{+path}","compare_url":"https://api.github.com/repos/metarhia/Metarhia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/metarhia/Metarhia/merges","archive_url":"https://api.github.com/repos/metarhia/Metarhia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/metarhia/Metarhia/downloads","issues_url":"https://api.github.com/repos/metarhia/Metarhia/issues{/number}","pulls_url":"https://api.github.com/repos/metarhia/Metarhia/pulls{/number}","milestones_url":"https://api.github.com/repos/metarhia/Metarhia/milestones{/number}","notifications_url":"https://api.github.com/repos/metarhia/Metarhia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/metarhia/Metarhia/labels{/name}","releases_url":"https://api.github.com/repos/metarhia/Metarhia/releases{/id}","deployments_url":"https://api.github.com/repos/metarhia/Metarhia/deployments","created_at":"2016-02-19T08:56:27Z","updated_at":"2019-04-07T08:23:41Z","pushed_at":"2019-07-03T12:43:34Z","git_url":"git://github.com/metarhia/Metarhia.git","ssh_url":"git@github.com:metarhia/Metarhia.git","clone_url":"https://github.com/metarhia/Metarhia.git","svn_url":"https://github.com/metarhia/Metarhia","homepage":"","size":5376,"stargazers_count":36,"watchers_count":36,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":23,"license":null,"forks":1,"open_issues":23,"watchers":36,"default_branch":"master"}},"base":{"label":"metarhia:master","ref":"master","sha":"e1e7f3bcdc44770dda875a8035fcc5b156187db7","user":{"login":"metarhia","id":18060695,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MDYwNjk1","avatar_url":"https://avatars2.githubusercontent.com/u/18060695?v=4","gravatar_id":"","url":"https://api.github.com/users/metarhia","html_url":"https://github.com/metarhia","followers_url":"https://api.github.com/users/metarhia/followers","following_url":"https://api.github.com/users/metarhia/following{/other_user}","gists_url":"https://api.github.com/users/metarhia/gists{/gist_id}","starred_url":"https://api.github.com/users/metarhia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metarhia/subscriptions","organizations_url":"https://api.github.com/users/metarhia/orgs","repos_url":"https://api.github.com/users/metarhia/repos","events_url":"https://api.github.com/users/metarhia/events{/privacy}","received_events_url":"https://api.github.com/users/metarhia/received_events","type":"Organization","site_admin":false},"repo":{"id":52074757,"node_id":"MDEwOlJlcG9zaXRvcnk1MjA3NDc1Nw==","name":"Metarhia","full_name":"metarhia/Metarhia","private":false,"owner":{"login":"metarhia","id":18060695,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MDYwNjk1","avatar_url":"https://avatars2.githubusercontent.com/u/18060695?v=4","gravatar_id":"","url":"https://api.github.com/users/metarhia","html_url":"https://github.com/metarhia","followers_url":"https://api.github.com/users/metarhia/followers","following_url":"https://api.github.com/users/metarhia/following{/other_user}","gists_url":"https://api.github.com/users/metarhia/gists{/gist_id}","starred_url":"https://api.github.com/users/metarhia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metarhia/subscriptions","organizations_url":"https://api.github.com/users/metarhia/orgs","repos_url":"https://api.github.com/users/metarhia/repos","events_url":"https://api.github.com/users/metarhia/events{/privacy}","received_events_url":"https://api.github.com/users/metarhia/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/metarhia/Metarhia","description":"Technology Stack for Highload Applications","fork":false,"url":"https://api.github.com/repos/metarhia/Metarhia","forks_url":"https://api.github.com/repos/metarhia/Metarhia/forks","keys_url":"https://api.github.com/repos/metarhia/Metarhia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/metarhia/Metarhia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/metarhia/Metarhia/teams","hooks_url":"https://api.github.com/repos/metarhia/Metarhia/hooks","issue_events_url":"https://api.github.com/repos/metarhia/Metarhia/issues/events{/number}","events_url":"https://api.github.com/repos/metarhia/Metarhia/events","assignees_url":"https://api.github.com/repos/metarhia/Metarhia/assignees{/user}","branches_url":"https://api.github.com/repos/metarhia/Metarhia/branches{/branch}","tags_url":"https://api.github.com/repos/metarhia/Metarhia/tags","blobs_url":"https://api.github.com/repos/metarhia/Metarhia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/metarhia/Metarhia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/metarhia/Metarhia/git/refs{/sha}","trees_url":"https://api.github.com/repos/metarhia/Metarhia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/metarhia/Metarhia/statuses/{sha}","languages_url":"https://api.github.com/repos/metarhia/Metarhia/languages","stargazers_url":"https://api.github.com/repos/metarhia/Metarhia/stargazers","contributors_url":"https://api.github.com/repos/metarhia/Metarhia/contributors","subscribers_url":"https://api.github.com/repos/metarhia/Metarhia/subscribers","subscription_url":"https://api.github.com/repos/metarhia/Metarhia/subscription","commits_url":"https://api.github.com/repos/metarhia/Metarhia/commits{/sha}","git_commits_url":"https://api.github.com/repos/metarhia/Metarhia/git/commits{/sha}","comments_url":"https://api.github.com/repos/metarhia/Metarhia/comments{/number}","issue_comment_url":"https://api.github.com/repos/metarhia/Metarhia/issues/comments{/number}","contents_url":"https://api.github.com/repos/metarhia/Metarhia/contents/{+path}","compare_url":"https://api.github.com/repos/metarhia/Metarhia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/metarhia/Metarhia/merges","archive_url":"https://api.github.com/repos/metarhia/Metarhia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/metarhia/Metarhia/downloads","issues_url":"https://api.github.com/repos/metarhia/Metarhia/issues{/number}","pulls_url":"https://api.github.com/repos/metarhia/Metarhia/pulls{/number}","milestones_url":"https://api.github.com/repos/metarhia/Metarhia/milestones{/number}","notifications_url":"https://api.github.com/repos/metarhia/Metarhia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/metarhia/Metarhia/labels{/name}","releases_url":"https://api.github.com/repos/metarhia/Metarhia/releases{/id}","deployments_url":"https://api.github.com/repos/metarhia/Metarhia/deployments","created_at":"2016-02-19T08:56:27Z","updated_at":"2019-04-07T08:23:41Z","pushed_at":"2019-07-03T12:43:34Z","git_url":"git://github.com/metarhia/Metarhia.git","ssh_url":"git@github.com:metarhia/Metarhia.git","clone_url":"https://github.com/metarhia/Metarhia.git","svn_url":"https://github.com/metarhia/Metarhia","homepage":"","size":5376,"stargazers_count":36,"watchers_count":36,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":23,"license":null,"forks":1,"open_issues":23,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/metarhia/Metarhia/pulls/38"},"html":{"href":"https://github.com/metarhia/Metarhia/pull/38"},"issue":{"href":"https://api.github.com/repos/metarhia/Metarhia/issues/38"},"comments":{"href":"https://api.github.com/repos/metarhia/Metarhia/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/metarhia/Metarhia/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/metarhia/Metarhia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/metarhia/Metarhia/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/metarhia/Metarhia/statuses/857e9f73f17c9690fe5f5b847073f2b78111c2f6"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"tshemsedinov"}}