{"action":"created","comment":{"url":"https://api.github.com/repos/bem-sdk/bem-entity-name/pulls/comments/89592469","pull_request_review_id":10137034,"id":89592469,"diff_hunk":"@@ -76,17 +76,20 @@ module.exports = class BemEntityName {\n     /**\n      * Returns the modifier of this entity.\n      *\n-     * If entity is not modifier then returns empty object.\n+     * Important: If entity is not modifier then returns `undefined`.\n      *\n      * @example\n      * const BemEntityName = require('bem-entity-name');\n-     * const name = new BemEntityName({ block: 'button', mod: 'disabled' });\n      *\n-     * console.log(name.mod); // { name: 'disabled', val: true }\n+     * const blockName = new BemEntityName({ block: 'button' });\n+     * const modName = new BemEntityName({ block: 'button', mod: 'disabled' });\n+     *\n+     * console.log(blockName.mod); // { name: 'disabled', val: true }\n+     * console.log(modName.mod);   // undefined","path":"index.js","position":16,"original_position":16,"commit_id":"1f6c470a4e13b27c6357e2a54c871714423c8abf","original_commit_id":"1f6c470a4e13b27c6357e2a54c871714423c8abf","user":{"login":"skad0","id":974119,"avatar_url":"https://avatars.githubusercontent.com/u/974119?v=3","gravatar_id":"","url":"https://api.github.com/users/skad0","html_url":"https://github.com/skad0","followers_url":"https://api.github.com/users/skad0/followers","following_url":"https://api.github.com/users/skad0/following{/other_user}","gists_url":"https://api.github.com/users/skad0/gists{/gist_id}","starred_url":"https://api.github.com/users/skad0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skad0/subscriptions","organizations_url":"https://api.github.com/users/skad0/orgs","repos_url":"https://api.github.com/users/skad0/repos","events_url":"https://api.github.com/users/skad0/events{/privacy}","received_events_url":"https://api.github.com/users/skad0/received_events","type":"User","site_admin":false},"body":"Аналогично","created_at":"2016-11-25T10:09:27Z","updated_at":"2016-11-25T10:11:12Z","html_url":"https://github.com/bem-sdk/bem-entity-name/pull/58#discussion_r89592469","pull_request_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/pulls/58","_links":{"self":{"href":"https://api.github.com/repos/bem-sdk/bem-entity-name/pulls/comments/89592469"},"html":{"href":"https://github.com/bem-sdk/bem-entity-name/pull/58#discussion_r89592469"},"pull_request":{"href":"https://api.github.com/repos/bem-sdk/bem-entity-name/pulls/58"}}},"pull_request":{"url":"https://api.github.com/repos/bem-sdk/bem-entity-name/pulls/58","id":95272448,"html_url":"https://github.com/bem-sdk/bem-entity-name/pull/58","diff_url":"https://github.com/bem-sdk/bem-entity-name/pull/58.diff","patch_url":"https://github.com/bem-sdk/bem-entity-name/pull/58.patch","issue_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/issues/58","number":58,"state":"open","locked":false,"title":"fix(mod): should return `undefined` if entity is not modifier","user":{"login":"blond","id":2225579,"avatar_url":"https://avatars.githubusercontent.com/u/2225579?v=3","gravatar_id":"","url":"https://api.github.com/users/blond","html_url":"https://github.com/blond","followers_url":"https://api.github.com/users/blond/followers","following_url":"https://api.github.com/users/blond/following{/other_user}","gists_url":"https://api.github.com/users/blond/gists{/gist_id}","starred_url":"https://api.github.com/users/blond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blond/subscriptions","organizations_url":"https://api.github.com/users/blond/orgs","repos_url":"https://api.github.com/users/blond/repos","events_url":"https://api.github.com/users/blond/events{/privacy}","received_events_url":"https://api.github.com/users/blond/received_events","type":"User","site_admin":false},"body":"Closed #53 ","created_at":"2016-11-25T09:26:00Z","updated_at":"2016-11-25T10:11:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e196fef2d3ba125baef7bcd91a3acc30a9567721","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/pulls/58/commits","review_comments_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/pulls/58/comments","review_comment_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/issues/58/comments","statuses_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/statuses/1f6c470a4e13b27c6357e2a54c871714423c8abf","head":{"label":"bem-sdk:issue-53","ref":"issue-53","sha":"1f6c470a4e13b27c6357e2a54c871714423c8abf","user":{"login":"bem-sdk","id":18242231,"avatar_url":"https://avatars.githubusercontent.com/u/18242231?v=3","gravatar_id":"","url":"https://api.github.com/users/bem-sdk","html_url":"https://github.com/bem-sdk","followers_url":"https://api.github.com/users/bem-sdk/followers","following_url":"https://api.github.com/users/bem-sdk/following{/other_user}","gists_url":"https://api.github.com/users/bem-sdk/gists{/gist_id}","starred_url":"https://api.github.com/users/bem-sdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem-sdk/subscriptions","organizations_url":"https://api.github.com/users/bem-sdk/orgs","repos_url":"https://api.github.com/users/bem-sdk/repos","events_url":"https://api.github.com/users/bem-sdk/events{/privacy}","received_events_url":"https://api.github.com/users/bem-sdk/received_events","type":"Organization","site_admin":false},"repo":{"id":55176248,"name":"bem-entity-name","full_name":"bem-sdk/bem-entity-name","owner":{"login":"bem-sdk","id":18242231,"avatar_url":"https://avatars.githubusercontent.com/u/18242231?v=3","gravatar_id":"","url":"https://api.github.com/users/bem-sdk","html_url":"https://github.com/bem-sdk","followers_url":"https://api.github.com/users/bem-sdk/followers","following_url":"https://api.github.com/users/bem-sdk/following{/other_user}","gists_url":"https://api.github.com/users/bem-sdk/gists{/gist_id}","starred_url":"https://api.github.com/users/bem-sdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem-sdk/subscriptions","organizations_url":"https://api.github.com/users/bem-sdk/orgs","repos_url":"https://api.github.com/users/bem-sdk/repos","events_url":"https://api.github.com/users/bem-sdk/events{/privacy}","received_events_url":"https://api.github.com/users/bem-sdk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bem-sdk/bem-entity-name","description":"BEM entity name representation","fork":false,"url":"https://api.github.com/repos/bem-sdk/bem-entity-name","forks_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/forks","keys_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/teams","hooks_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/hooks","issue_events_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/issues/events{/number}","events_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/events","assignees_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/assignees{/user}","branches_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/branches{/branch}","tags_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/tags","blobs_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/git/refs{/sha}","trees_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/statuses/{sha}","languages_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/languages","stargazers_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/stargazers","contributors_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/contributors","subscribers_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/subscribers","subscription_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/subscription","commits_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/commits{/sha}","git_commits_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/git/commits{/sha}","comments_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/comments{/number}","issue_comment_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/issues/comments{/number}","contents_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/contents/{+path}","compare_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/merges","archive_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/downloads","issues_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/issues{/number}","pulls_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/pulls{/number}","milestones_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/milestones{/number}","notifications_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/labels{/name}","releases_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/releases{/id}","deployments_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/deployments","created_at":"2016-03-31T19:12:14Z","updated_at":"2016-11-15T11:38:14Z","pushed_at":"2016-11-25T09:28:27Z","git_url":"git://github.com/bem-sdk/bem-entity-name.git","ssh_url":"git@github.com:bem-sdk/bem-entity-name.git","clone_url":"https://github.com/bem-sdk/bem-entity-name.git","svn_url":"https://github.com/bem-sdk/bem-entity-name","homepage":"","size":62,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":3,"default_branch":"master"}},"base":{"label":"bem-sdk:master","ref":"master","sha":"4f8a748bb05d51172bc6967423250046c3cd5f22","user":{"login":"bem-sdk","id":18242231,"avatar_url":"https://avatars.githubusercontent.com/u/18242231?v=3","gravatar_id":"","url":"https://api.github.com/users/bem-sdk","html_url":"https://github.com/bem-sdk","followers_url":"https://api.github.com/users/bem-sdk/followers","following_url":"https://api.github.com/users/bem-sdk/following{/other_user}","gists_url":"https://api.github.com/users/bem-sdk/gists{/gist_id}","starred_url":"https://api.github.com/users/bem-sdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem-sdk/subscriptions","organizations_url":"https://api.github.com/users/bem-sdk/orgs","repos_url":"https://api.github.com/users/bem-sdk/repos","events_url":"https://api.github.com/users/bem-sdk/events{/privacy}","received_events_url":"https://api.github.com/users/bem-sdk/received_events","type":"Organization","site_admin":false},"repo":{"id":55176248,"name":"bem-entity-name","full_name":"bem-sdk/bem-entity-name","owner":{"login":"bem-sdk","id":18242231,"avatar_url":"https://avatars.githubusercontent.com/u/18242231?v=3","gravatar_id":"","url":"https://api.github.com/users/bem-sdk","html_url":"https://github.com/bem-sdk","followers_url":"https://api.github.com/users/bem-sdk/followers","following_url":"https://api.github.com/users/bem-sdk/following{/other_user}","gists_url":"https://api.github.com/users/bem-sdk/gists{/gist_id}","starred_url":"https://api.github.com/users/bem-sdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem-sdk/subscriptions","organizations_url":"https://api.github.com/users/bem-sdk/orgs","repos_url":"https://api.github.com/users/bem-sdk/repos","events_url":"https://api.github.com/users/bem-sdk/events{/privacy}","received_events_url":"https://api.github.com/users/bem-sdk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bem-sdk/bem-entity-name","description":"BEM entity name representation","fork":false,"url":"https://api.github.com/repos/bem-sdk/bem-entity-name","forks_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/forks","keys_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/teams","hooks_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/hooks","issue_events_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/issues/events{/number}","events_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/events","assignees_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/assignees{/user}","branches_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/branches{/branch}","tags_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/tags","blobs_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/git/refs{/sha}","trees_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/statuses/{sha}","languages_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/languages","stargazers_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/stargazers","contributors_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/contributors","subscribers_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/subscribers","subscription_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/subscription","commits_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/commits{/sha}","git_commits_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/git/commits{/sha}","comments_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/comments{/number}","issue_comment_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/issues/comments{/number}","contents_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/contents/{+path}","compare_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/merges","archive_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/downloads","issues_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/issues{/number}","pulls_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/pulls{/number}","milestones_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/milestones{/number}","notifications_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/labels{/name}","releases_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/releases{/id}","deployments_url":"https://api.github.com/repos/bem-sdk/bem-entity-name/deployments","created_at":"2016-03-31T19:12:14Z","updated_at":"2016-11-15T11:38:14Z","pushed_at":"2016-11-25T09:28:27Z","git_url":"git://github.com/bem-sdk/bem-entity-name.git","ssh_url":"git@github.com:bem-sdk/bem-entity-name.git","clone_url":"https://github.com/bem-sdk/bem-entity-name.git","svn_url":"https://github.com/bem-sdk/bem-entity-name","homepage":"","size":62,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bem-sdk/bem-entity-name/pulls/58"},"html":{"href":"https://github.com/bem-sdk/bem-entity-name/pull/58"},"issue":{"href":"https://api.github.com/repos/bem-sdk/bem-entity-name/issues/58"},"comments":{"href":"https://api.github.com/repos/bem-sdk/bem-entity-name/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/bem-sdk/bem-entity-name/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/bem-sdk/bem-entity-name/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bem-sdk/bem-entity-name/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/bem-sdk/bem-entity-name/statuses/1f6c470a4e13b27c6357e2a54c871714423c8abf"}}}}
{"actor":{"display_login":"skad0"}}