{"action":"created","comment":{"url":"https://api.github.com/repos/fago/rules/pulls/comments/28401149","id":28401149,"diff_hunk":"@@ -0,0 +1,41 @@\n+<?php\n+\n+/**\n+ * @file\n+ * Contains \\Drupal\\rules\\Core\\RulesPluginTrait.\n+ */\n+\n+namespace Drupal\\rules\\Core;\n+\n+use Drupal\\Component\\Plugin\\Exception\\ContextException;\n+\n+/**\n+ * Offers common methods for context plugin implementers.\n+ */\n+trait ExecutablePluginTrait {\n+\n+  /**\n+   * {@inheritdoc}\n+   */\n+  private function getLabelValue() {\n+    $definition = $this->getPluginDefinition();\n+\n+    if (empty($definition['label'])) {\n+      throw new ContextException('The label is not defined.');","path":"src/Core/ExecutablePluginTrait.php","position":24,"original_position":24,"commit_id":"a0935821314d7ebf878e28fe0cc40f0d701d9390","original_commit_id":"a0935821314d7ebf878e28fe0cc40f0d701d9390","user":{"login":"klausi","id":213229,"avatar_url":"https://avatars.githubusercontent.com/u/213229?v=3","gravatar_id":"","url":"https://api.github.com/users/klausi","html_url":"https://github.com/klausi","followers_url":"https://api.github.com/users/klausi/followers","following_url":"https://api.github.com/users/klausi/following{/other_user}","gists_url":"https://api.github.com/users/klausi/gists{/gist_id}","starred_url":"https://api.github.com/users/klausi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klausi/subscriptions","organizations_url":"https://api.github.com/users/klausi/orgs","repos_url":"https://api.github.com/users/klausi/repos","events_url":"https://api.github.com/users/klausi/events{/privacy}","received_events_url":"https://api.github.com/users/klausi/received_events","type":"User","site_admin":false},"body":"Context exception? This has nothing to do with the context, maybe a plugin exception would be better?","created_at":"2015-04-15T08:18:34Z","updated_at":"2015-04-15T08:18:34Z","html_url":"https://github.com/fago/rules/pull/147#discussion_r28401149","pull_request_url":"https://api.github.com/repos/fago/rules/pulls/147","_links":{"self":{"href":"https://api.github.com/repos/fago/rules/pulls/comments/28401149"},"html":{"href":"https://github.com/fago/rules/pull/147#discussion_r28401149"},"pull_request":{"href":"https://api.github.com/repos/fago/rules/pulls/147"}}},"pull_request":{"url":"https://api.github.com/repos/fago/rules/pulls/147","id":31672363,"html_url":"https://github.com/fago/rules/pull/147","diff_url":"https://github.com/fago/rules/pull/147.diff","patch_url":"https://github.com/fago/rules/pull/147.patch","issue_url":"https://api.github.com/repos/fago/rules/issues/147","number":147,"state":"open","locked":false,"title":"Move summary function to trait, reduce testbase redundancy, cleanup","user":{"login":"pheadeaux","id":1324354,"avatar_url":"https://avatars.githubusercontent.com/u/1324354?v=3","gravatar_id":"","url":"https://api.github.com/users/pheadeaux","html_url":"https://github.com/pheadeaux","followers_url":"https://api.github.com/users/pheadeaux/followers","following_url":"https://api.github.com/users/pheadeaux/following{/other_user}","gists_url":"https://api.github.com/users/pheadeaux/gists{/gist_id}","starred_url":"https://api.github.com/users/pheadeaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pheadeaux/subscriptions","organizations_url":"https://api.github.com/users/pheadeaux/orgs","repos_url":"https://api.github.com/users/pheadeaux/repos","events_url":"https://api.github.com/users/pheadeaux/events{/privacy}","received_events_url":"https://api.github.com/users/pheadeaux/received_events","type":"User","site_admin":false},"body":"worked with Martin Taleski on this. Link https://www.drupal.org/node/2456849 ","created_at":"2015-03-21T14:53:42Z","updated_at":"2015-04-15T08:18:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"990c8d51a43d926f594e3d7c961607d8c9d36598","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fago/rules/pulls/147/commits","review_comments_url":"https://api.github.com/repos/fago/rules/pulls/147/comments","review_comment_url":"https://api.github.com/repos/fago/rules/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fago/rules/issues/147/comments","statuses_url":"https://api.github.com/repos/fago/rules/statuses/a0935821314d7ebf878e28fe0cc40f0d701d9390","head":{"label":"pheadeaux:test-refactoring-and-summary-2456849","ref":"test-refactoring-and-summary-2456849","sha":"a0935821314d7ebf878e28fe0cc40f0d701d9390","user":{"login":"pheadeaux","id":1324354,"avatar_url":"https://avatars.githubusercontent.com/u/1324354?v=3","gravatar_id":"","url":"https://api.github.com/users/pheadeaux","html_url":"https://github.com/pheadeaux","followers_url":"https://api.github.com/users/pheadeaux/followers","following_url":"https://api.github.com/users/pheadeaux/following{/other_user}","gists_url":"https://api.github.com/users/pheadeaux/gists{/gist_id}","starred_url":"https://api.github.com/users/pheadeaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pheadeaux/subscriptions","organizations_url":"https://api.github.com/users/pheadeaux/orgs","repos_url":"https://api.github.com/users/pheadeaux/repos","events_url":"https://api.github.com/users/pheadeaux/events{/privacy}","received_events_url":"https://api.github.com/users/pheadeaux/received_events","type":"User","site_admin":false},"repo":{"id":32569418,"name":"rules","full_name":"pheadeaux/rules","owner":{"login":"pheadeaux","id":1324354,"avatar_url":"https://avatars.githubusercontent.com/u/1324354?v=3","gravatar_id":"","url":"https://api.github.com/users/pheadeaux","html_url":"https://github.com/pheadeaux","followers_url":"https://api.github.com/users/pheadeaux/followers","following_url":"https://api.github.com/users/pheadeaux/following{/other_user}","gists_url":"https://api.github.com/users/pheadeaux/gists{/gist_id}","starred_url":"https://api.github.com/users/pheadeaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pheadeaux/subscriptions","organizations_url":"https://api.github.com/users/pheadeaux/orgs","repos_url":"https://api.github.com/users/pheadeaux/repos","events_url":"https://api.github.com/users/pheadeaux/events{/privacy}","received_events_url":"https://api.github.com/users/pheadeaux/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pheadeaux/rules","description":"Rules 8.x-3.x development","fork":true,"url":"https://api.github.com/repos/pheadeaux/rules","forks_url":"https://api.github.com/repos/pheadeaux/rules/forks","keys_url":"https://api.github.com/repos/pheadeaux/rules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pheadeaux/rules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pheadeaux/rules/teams","hooks_url":"https://api.github.com/repos/pheadeaux/rules/hooks","issue_events_url":"https://api.github.com/repos/pheadeaux/rules/issues/events{/number}","events_url":"https://api.github.com/repos/pheadeaux/rules/events","assignees_url":"https://api.github.com/repos/pheadeaux/rules/assignees{/user}","branches_url":"https://api.github.com/repos/pheadeaux/rules/branches{/branch}","tags_url":"https://api.github.com/repos/pheadeaux/rules/tags","blobs_url":"https://api.github.com/repos/pheadeaux/rules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pheadeaux/rules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pheadeaux/rules/git/refs{/sha}","trees_url":"https://api.github.com/repos/pheadeaux/rules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pheadeaux/rules/statuses/{sha}","languages_url":"https://api.github.com/repos/pheadeaux/rules/languages","stargazers_url":"https://api.github.com/repos/pheadeaux/rules/stargazers","contributors_url":"https://api.github.com/repos/pheadeaux/rules/contributors","subscribers_url":"https://api.github.com/repos/pheadeaux/rules/subscribers","subscription_url":"https://api.github.com/repos/pheadeaux/rules/subscription","commits_url":"https://api.github.com/repos/pheadeaux/rules/commits{/sha}","git_commits_url":"https://api.github.com/repos/pheadeaux/rules/git/commits{/sha}","comments_url":"https://api.github.com/repos/pheadeaux/rules/comments{/number}","issue_comment_url":"https://api.github.com/repos/pheadeaux/rules/issues/comments{/number}","contents_url":"https://api.github.com/repos/pheadeaux/rules/contents/{+path}","compare_url":"https://api.github.com/repos/pheadeaux/rules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pheadeaux/rules/merges","archive_url":"https://api.github.com/repos/pheadeaux/rules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pheadeaux/rules/downloads","issues_url":"https://api.github.com/repos/pheadeaux/rules/issues{/number}","pulls_url":"https://api.github.com/repos/pheadeaux/rules/pulls{/number}","milestones_url":"https://api.github.com/repos/pheadeaux/rules/milestones{/number}","notifications_url":"https://api.github.com/repos/pheadeaux/rules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pheadeaux/rules/labels{/name}","releases_url":"https://api.github.com/repos/pheadeaux/rules/releases{/id}","created_at":"2015-03-20T07:31:11Z","updated_at":"2015-03-21T15:02:15Z","pushed_at":"2015-03-27T14:56:31Z","git_url":"git://github.com/pheadeaux/rules.git","ssh_url":"git@github.com:pheadeaux/rules.git","clone_url":"https://github.com/pheadeaux/rules.git","svn_url":"https://github.com/pheadeaux/rules","homepage":null,"size":2866,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"8.x-3.x"}},"base":{"label":"fago:8.x-3.x","ref":"8.x-3.x","sha":"bb46a653d6df1a7871e7c11c03993ea010a84f0f","user":{"login":"fago","id":132232,"avatar_url":"https://avatars.githubusercontent.com/u/132232?v=3","gravatar_id":"","url":"https://api.github.com/users/fago","html_url":"https://github.com/fago","followers_url":"https://api.github.com/users/fago/followers","following_url":"https://api.github.com/users/fago/following{/other_user}","gists_url":"https://api.github.com/users/fago/gists{/gist_id}","starred_url":"https://api.github.com/users/fago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fago/subscriptions","organizations_url":"https://api.github.com/users/fago/orgs","repos_url":"https://api.github.com/users/fago/repos","events_url":"https://api.github.com/users/fago/events{/privacy}","received_events_url":"https://api.github.com/users/fago/received_events","type":"User","site_admin":false},"repo":{"id":18917483,"name":"rules","full_name":"fago/rules","owner":{"login":"fago","id":132232,"avatar_url":"https://avatars.githubusercontent.com/u/132232?v=3","gravatar_id":"","url":"https://api.github.com/users/fago","html_url":"https://github.com/fago","followers_url":"https://api.github.com/users/fago/followers","following_url":"https://api.github.com/users/fago/following{/other_user}","gists_url":"https://api.github.com/users/fago/gists{/gist_id}","starred_url":"https://api.github.com/users/fago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fago/subscriptions","organizations_url":"https://api.github.com/users/fago/orgs","repos_url":"https://api.github.com/users/fago/repos","events_url":"https://api.github.com/users/fago/events{/privacy}","received_events_url":"https://api.github.com/users/fago/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fago/rules","description":"Rules 8.x-3.x development","fork":false,"url":"https://api.github.com/repos/fago/rules","forks_url":"https://api.github.com/repos/fago/rules/forks","keys_url":"https://api.github.com/repos/fago/rules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fago/rules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fago/rules/teams","hooks_url":"https://api.github.com/repos/fago/rules/hooks","issue_events_url":"https://api.github.com/repos/fago/rules/issues/events{/number}","events_url":"https://api.github.com/repos/fago/rules/events","assignees_url":"https://api.github.com/repos/fago/rules/assignees{/user}","branches_url":"https://api.github.com/repos/fago/rules/branches{/branch}","tags_url":"https://api.github.com/repos/fago/rules/tags","blobs_url":"https://api.github.com/repos/fago/rules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fago/rules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fago/rules/git/refs{/sha}","trees_url":"https://api.github.com/repos/fago/rules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fago/rules/statuses/{sha}","languages_url":"https://api.github.com/repos/fago/rules/languages","stargazers_url":"https://api.github.com/repos/fago/rules/stargazers","contributors_url":"https://api.github.com/repos/fago/rules/contributors","subscribers_url":"https://api.github.com/repos/fago/rules/subscribers","subscription_url":"https://api.github.com/repos/fago/rules/subscription","commits_url":"https://api.github.com/repos/fago/rules/commits{/sha}","git_commits_url":"https://api.github.com/repos/fago/rules/git/commits{/sha}","comments_url":"https://api.github.com/repos/fago/rules/comments{/number}","issue_comment_url":"https://api.github.com/repos/fago/rules/issues/comments{/number}","contents_url":"https://api.github.com/repos/fago/rules/contents/{+path}","compare_url":"https://api.github.com/repos/fago/rules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fago/rules/merges","archive_url":"https://api.github.com/repos/fago/rules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fago/rules/downloads","issues_url":"https://api.github.com/repos/fago/rules/issues{/number}","pulls_url":"https://api.github.com/repos/fago/rules/pulls{/number}","milestones_url":"https://api.github.com/repos/fago/rules/milestones{/number}","notifications_url":"https://api.github.com/repos/fago/rules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fago/rules/labels{/name}","releases_url":"https://api.github.com/repos/fago/rules/releases{/id}","created_at":"2014-04-18T15:49:13Z","updated_at":"2015-04-15T08:07:06Z","pushed_at":"2015-04-15T08:07:06Z","git_url":"git://github.com/fago/rules.git","ssh_url":"git@github.com:fago/rules.git","clone_url":"https://github.com/fago/rules.git","svn_url":"https://github.com/fago/rules","homepage":null,"size":6049,"stargazers_count":21,"watchers_count":21,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":65,"mirror_url":null,"open_issues_count":8,"forks":65,"open_issues":8,"watchers":21,"default_branch":"8.x-3.x"}},"_links":{"self":{"href":"https://api.github.com/repos/fago/rules/pulls/147"},"html":{"href":"https://github.com/fago/rules/pull/147"},"issue":{"href":"https://api.github.com/repos/fago/rules/issues/147"},"comments":{"href":"https://api.github.com/repos/fago/rules/issues/147/comments"},"review_comments":{"href":"https://api.github.com/repos/fago/rules/pulls/147/comments"},"review_comment":{"href":"https://api.github.com/repos/fago/rules/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fago/rules/pulls/147/commits"},"statuses":{"href":"https://api.github.com/repos/fago/rules/statuses/a0935821314d7ebf878e28fe0cc40f0d701d9390"}}}}