{"action":"created","comment":{"url":"https://api.github.com/repos/gemini-testing/hermione/pulls/comments/62165935","id":62165935,"diff_hunk":"@@ -0,0 +1,37 @@\n+'use strict';\n+\n+const _ = require('lodash');\n+\n+const shouldBeSkipped = (browserId, matchers) => {\n+    return _(matchers)\n+        .concat([])\n+        .some(matcher => {\n+            return _.isRegExp(matcher)\n+                ? matcher.test(browserId)\n+                : _.isEqual(matcher, browserId);\n+        });\n+};\n+\n+module.exports = class {\n+    constructor(browserId) {\n+        this.info = {};\n+        this._currentBrowser = browserId;\n+    }\n+\n+    in(matcher) {\n+        const skipFunc = this.info._revert ? _.negate(shouldBeSkipped) : shouldBeSkipped;\n+        this.info.isBrowserMatched = skipFunc(this._currentBrowser, matcher);\n+\n+        return this;\n+    }\n+\n+    comment(comment) {\n+        this.info.comment = comment;","path":"lib/runner/mocha-runner/skip.js","position":29,"original_position":29,"commit_id":"8ad533e4d8088227995cb48e96797ebf4a704d03","original_commit_id":"8ad533e4d8088227995cb48e96797ebf4a704d03","user":{"login":"tormozz48","id":996162,"avatar_url":"https://avatars.githubusercontent.com/u/996162?v=3","gravatar_id":"","url":"https://api.github.com/users/tormozz48","html_url":"https://github.com/tormozz48","followers_url":"https://api.github.com/users/tormozz48/followers","following_url":"https://api.github.com/users/tormozz48/following{/other_user}","gists_url":"https://api.github.com/users/tormozz48/gists{/gist_id}","starred_url":"https://api.github.com/users/tormozz48/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tormozz48/subscriptions","organizations_url":"https://api.github.com/users/tormozz48/orgs","repos_url":"https://api.github.com/users/tormozz48/repos","events_url":"https://api.github.com/users/tormozz48/events{/privacy}","received_events_url":"https://api.github.com/users/tormozz48/received_events","type":"User","site_admin":false},"body":"а эта функция не должна возвращать `this` ?","created_at":"2016-05-05T09:31:44Z","updated_at":"2016-05-05T09:31:44Z","html_url":"https://github.com/gemini-testing/hermione/pull/26#discussion_r62165935","pull_request_url":"https://api.github.com/repos/gemini-testing/hermione/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/gemini-testing/hermione/pulls/comments/62165935"},"html":{"href":"https://github.com/gemini-testing/hermione/pull/26#discussion_r62165935"},"pull_request":{"href":"https://api.github.com/repos/gemini-testing/hermione/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/gemini-testing/hermione/pulls/26","id":68876834,"html_url":"https://github.com/gemini-testing/hermione/pull/26","diff_url":"https://github.com/gemini-testing/hermione/pull/26.diff","patch_url":"https://github.com/gemini-testing/hermione/pull/26.patch","issue_url":"https://api.github.com/repos/gemini-testing/hermione/issues/26","number":26,"state":"open","locked":false,"title":"Add hermione skip API","user":{"login":"sipayRT","id":1658415,"avatar_url":"https://avatars.githubusercontent.com/u/1658415?v=3","gravatar_id":"","url":"https://api.github.com/users/sipayRT","html_url":"https://github.com/sipayRT","followers_url":"https://api.github.com/users/sipayRT/followers","following_url":"https://api.github.com/users/sipayRT/following{/other_user}","gists_url":"https://api.github.com/users/sipayRT/gists{/gist_id}","starred_url":"https://api.github.com/users/sipayRT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sipayRT/subscriptions","organizations_url":"https://api.github.com/users/sipayRT/orgs","repos_url":"https://api.github.com/users/sipayRT/repos","events_url":"https://api.github.com/users/sipayRT/events{/privacy}","received_events_url":"https://api.github.com/users/sipayRT/received_events","type":"User","site_admin":false},"body":"@eGavr @j0tunn @tormozz48 ","created_at":"2016-05-04T15:00:11Z","updated_at":"2016-05-05T09:31:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c0dfe8db586c30cfee9af31876f048f3388a4829","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gemini-testing/hermione/pulls/26/commits","review_comments_url":"https://api.github.com/repos/gemini-testing/hermione/pulls/26/comments","review_comment_url":"https://api.github.com/repos/gemini-testing/hermione/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gemini-testing/hermione/issues/26/comments","statuses_url":"https://api.github.com/repos/gemini-testing/hermione/statuses/8ad533e4d8088227995cb48e96797ebf4a704d03","head":{"label":"gemini-testing:FEI-2383","ref":"FEI-2383","sha":"8ad533e4d8088227995cb48e96797ebf4a704d03","user":{"login":"gemini-testing","id":11424134,"avatar_url":"https://avatars.githubusercontent.com/u/11424134?v=3","gravatar_id":"","url":"https://api.github.com/users/gemini-testing","html_url":"https://github.com/gemini-testing","followers_url":"https://api.github.com/users/gemini-testing/followers","following_url":"https://api.github.com/users/gemini-testing/following{/other_user}","gists_url":"https://api.github.com/users/gemini-testing/gists{/gist_id}","starred_url":"https://api.github.com/users/gemini-testing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemini-testing/subscriptions","organizations_url":"https://api.github.com/users/gemini-testing/orgs","repos_url":"https://api.github.com/users/gemini-testing/repos","events_url":"https://api.github.com/users/gemini-testing/events{/privacy}","received_events_url":"https://api.github.com/users/gemini-testing/received_events","type":"Organization","site_admin":false},"repo":{"id":51917537,"name":"hermione","full_name":"gemini-testing/hermione","owner":{"login":"gemini-testing","id":11424134,"avatar_url":"https://avatars.githubusercontent.com/u/11424134?v=3","gravatar_id":"","url":"https://api.github.com/users/gemini-testing","html_url":"https://github.com/gemini-testing","followers_url":"https://api.github.com/users/gemini-testing/followers","following_url":"https://api.github.com/users/gemini-testing/following{/other_user}","gists_url":"https://api.github.com/users/gemini-testing/gists{/gist_id}","starred_url":"https://api.github.com/users/gemini-testing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemini-testing/subscriptions","organizations_url":"https://api.github.com/users/gemini-testing/orgs","repos_url":"https://api.github.com/users/gemini-testing/repos","events_url":"https://api.github.com/users/gemini-testing/events{/privacy}","received_events_url":"https://api.github.com/users/gemini-testing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gemini-testing/hermione","description":"Browser test runner based on mocha and wdio","fork":false,"url":"https://api.github.com/repos/gemini-testing/hermione","forks_url":"https://api.github.com/repos/gemini-testing/hermione/forks","keys_url":"https://api.github.com/repos/gemini-testing/hermione/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gemini-testing/hermione/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gemini-testing/hermione/teams","hooks_url":"https://api.github.com/repos/gemini-testing/hermione/hooks","issue_events_url":"https://api.github.com/repos/gemini-testing/hermione/issues/events{/number}","events_url":"https://api.github.com/repos/gemini-testing/hermione/events","assignees_url":"https://api.github.com/repos/gemini-testing/hermione/assignees{/user}","branches_url":"https://api.github.com/repos/gemini-testing/hermione/branches{/branch}","tags_url":"https://api.github.com/repos/gemini-testing/hermione/tags","blobs_url":"https://api.github.com/repos/gemini-testing/hermione/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gemini-testing/hermione/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gemini-testing/hermione/git/refs{/sha}","trees_url":"https://api.github.com/repos/gemini-testing/hermione/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gemini-testing/hermione/statuses/{sha}","languages_url":"https://api.github.com/repos/gemini-testing/hermione/languages","stargazers_url":"https://api.github.com/repos/gemini-testing/hermione/stargazers","contributors_url":"https://api.github.com/repos/gemini-testing/hermione/contributors","subscribers_url":"https://api.github.com/repos/gemini-testing/hermione/subscribers","subscription_url":"https://api.github.com/repos/gemini-testing/hermione/subscription","commits_url":"https://api.github.com/repos/gemini-testing/hermione/commits{/sha}","git_commits_url":"https://api.github.com/repos/gemini-testing/hermione/git/commits{/sha}","comments_url":"https://api.github.com/repos/gemini-testing/hermione/comments{/number}","issue_comment_url":"https://api.github.com/repos/gemini-testing/hermione/issues/comments{/number}","contents_url":"https://api.github.com/repos/gemini-testing/hermione/contents/{+path}","compare_url":"https://api.github.com/repos/gemini-testing/hermione/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gemini-testing/hermione/merges","archive_url":"https://api.github.com/repos/gemini-testing/hermione/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gemini-testing/hermione/downloads","issues_url":"https://api.github.com/repos/gemini-testing/hermione/issues{/number}","pulls_url":"https://api.github.com/repos/gemini-testing/hermione/pulls{/number}","milestones_url":"https://api.github.com/repos/gemini-testing/hermione/milestones{/number}","notifications_url":"https://api.github.com/repos/gemini-testing/hermione/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gemini-testing/hermione/labels{/name}","releases_url":"https://api.github.com/repos/gemini-testing/hermione/releases{/id}","deployments_url":"https://api.github.com/repos/gemini-testing/hermione/deployments","created_at":"2016-02-17T11:26:05Z","updated_at":"2016-04-07T08:53:06Z","pushed_at":"2016-05-04T15:24:37Z","git_url":"git://github.com/gemini-testing/hermione.git","ssh_url":"git@github.com:gemini-testing/hermione.git","clone_url":"https://github.com/gemini-testing/hermione.git","svn_url":"https://github.com/gemini-testing/hermione","homepage":null,"size":325,"stargazers_count":16,"watchers_count":16,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":5,"forks":3,"open_issues":5,"watchers":16,"default_branch":"master"}},"base":{"label":"gemini-testing:master","ref":"master","sha":"dd64542993f6c821f201c246b92fb211e5cdbafd","user":{"login":"gemini-testing","id":11424134,"avatar_url":"https://avatars.githubusercontent.com/u/11424134?v=3","gravatar_id":"","url":"https://api.github.com/users/gemini-testing","html_url":"https://github.com/gemini-testing","followers_url":"https://api.github.com/users/gemini-testing/followers","following_url":"https://api.github.com/users/gemini-testing/following{/other_user}","gists_url":"https://api.github.com/users/gemini-testing/gists{/gist_id}","starred_url":"https://api.github.com/users/gemini-testing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemini-testing/subscriptions","organizations_url":"https://api.github.com/users/gemini-testing/orgs","repos_url":"https://api.github.com/users/gemini-testing/repos","events_url":"https://api.github.com/users/gemini-testing/events{/privacy}","received_events_url":"https://api.github.com/users/gemini-testing/received_events","type":"Organization","site_admin":false},"repo":{"id":51917537,"name":"hermione","full_name":"gemini-testing/hermione","owner":{"login":"gemini-testing","id":11424134,"avatar_url":"https://avatars.githubusercontent.com/u/11424134?v=3","gravatar_id":"","url":"https://api.github.com/users/gemini-testing","html_url":"https://github.com/gemini-testing","followers_url":"https://api.github.com/users/gemini-testing/followers","following_url":"https://api.github.com/users/gemini-testing/following{/other_user}","gists_url":"https://api.github.com/users/gemini-testing/gists{/gist_id}","starred_url":"https://api.github.com/users/gemini-testing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemini-testing/subscriptions","organizations_url":"https://api.github.com/users/gemini-testing/orgs","repos_url":"https://api.github.com/users/gemini-testing/repos","events_url":"https://api.github.com/users/gemini-testing/events{/privacy}","received_events_url":"https://api.github.com/users/gemini-testing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gemini-testing/hermione","description":"Browser test runner based on mocha and wdio","fork":false,"url":"https://api.github.com/repos/gemini-testing/hermione","forks_url":"https://api.github.com/repos/gemini-testing/hermione/forks","keys_url":"https://api.github.com/repos/gemini-testing/hermione/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gemini-testing/hermione/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gemini-testing/hermione/teams","hooks_url":"https://api.github.com/repos/gemini-testing/hermione/hooks","issue_events_url":"https://api.github.com/repos/gemini-testing/hermione/issues/events{/number}","events_url":"https://api.github.com/repos/gemini-testing/hermione/events","assignees_url":"https://api.github.com/repos/gemini-testing/hermione/assignees{/user}","branches_url":"https://api.github.com/repos/gemini-testing/hermione/branches{/branch}","tags_url":"https://api.github.com/repos/gemini-testing/hermione/tags","blobs_url":"https://api.github.com/repos/gemini-testing/hermione/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gemini-testing/hermione/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gemini-testing/hermione/git/refs{/sha}","trees_url":"https://api.github.com/repos/gemini-testing/hermione/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gemini-testing/hermione/statuses/{sha}","languages_url":"https://api.github.com/repos/gemini-testing/hermione/languages","stargazers_url":"https://api.github.com/repos/gemini-testing/hermione/stargazers","contributors_url":"https://api.github.com/repos/gemini-testing/hermione/contributors","subscribers_url":"https://api.github.com/repos/gemini-testing/hermione/subscribers","subscription_url":"https://api.github.com/repos/gemini-testing/hermione/subscription","commits_url":"https://api.github.com/repos/gemini-testing/hermione/commits{/sha}","git_commits_url":"https://api.github.com/repos/gemini-testing/hermione/git/commits{/sha}","comments_url":"https://api.github.com/repos/gemini-testing/hermione/comments{/number}","issue_comment_url":"https://api.github.com/repos/gemini-testing/hermione/issues/comments{/number}","contents_url":"https://api.github.com/repos/gemini-testing/hermione/contents/{+path}","compare_url":"https://api.github.com/repos/gemini-testing/hermione/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gemini-testing/hermione/merges","archive_url":"https://api.github.com/repos/gemini-testing/hermione/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gemini-testing/hermione/downloads","issues_url":"https://api.github.com/repos/gemini-testing/hermione/issues{/number}","pulls_url":"https://api.github.com/repos/gemini-testing/hermione/pulls{/number}","milestones_url":"https://api.github.com/repos/gemini-testing/hermione/milestones{/number}","notifications_url":"https://api.github.com/repos/gemini-testing/hermione/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gemini-testing/hermione/labels{/name}","releases_url":"https://api.github.com/repos/gemini-testing/hermione/releases{/id}","deployments_url":"https://api.github.com/repos/gemini-testing/hermione/deployments","created_at":"2016-02-17T11:26:05Z","updated_at":"2016-04-07T08:53:06Z","pushed_at":"2016-05-04T15:24:37Z","git_url":"git://github.com/gemini-testing/hermione.git","ssh_url":"git@github.com:gemini-testing/hermione.git","clone_url":"https://github.com/gemini-testing/hermione.git","svn_url":"https://github.com/gemini-testing/hermione","homepage":null,"size":325,"stargazers_count":16,"watchers_count":16,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":5,"forks":3,"open_issues":5,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gemini-testing/hermione/pulls/26"},"html":{"href":"https://github.com/gemini-testing/hermione/pull/26"},"issue":{"href":"https://api.github.com/repos/gemini-testing/hermione/issues/26"},"comments":{"href":"https://api.github.com/repos/gemini-testing/hermione/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/gemini-testing/hermione/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/gemini-testing/hermione/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gemini-testing/hermione/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/gemini-testing/hermione/statuses/8ad533e4d8088227995cb48e96797ebf4a704d03"}}}}