{"action":"created","comment":{"url":"https://api.github.com/repos/AmyAssist/Amy/pulls/comments/216134282","pull_request_review_id":153557935,"id":216134282,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNjEzNDI4Mg==","diff_hunk":"@@ -0,0 +1,85 @@\n+/*\n+ * This source file is part of the Amy open source project.\n+ * For more information see github.com/AmyAssist\n+ * \n+ * Copyright (c) 2018 the Amy project authors.\n+ *\n+ * SPDX-License-Identifier: Apache-2.0\n+ * \n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at \n+ * \n+ *   http://www.apache.org/licenses/LICENSE-2.0\n+ * \n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ *\n+ * For more information see notice.md\n+ */\n+\n+package de.unistuttgart.iaas.amyassist.amy.messagehub.topics;\n+\n+/**\n+ * A class with static methods for topics.\n+ * \n+ * @author Tim Neumann\n+ */\n+public class Topics {\n+\tprivate Topics() {\n+\t\t// hide constructor.\n+\t}\n+\n+\t/**\n+\t * Get's the topic string for the given topic parts\n+\t * \n+\t * @param parts\n+\t *            The parts of the topic string\n+\t * @return The topic string.\n+\t */\n+\tpublic static String from(String... parts) {\n+\t\treturn String.join(\"/\", parts);\n+\t}\n+\n+\t/**\n+\t * Extends a given topic string by the given topics.\n+\t * \n+\t * @param beginning\n+\t *            The existing topic string\n+\t * @param parts\n+\t *            The parts to add.\n+\t * @return The extended topic string.\n+\t */\n+\tpublic static String extend(String beginning, String... parts) {\n+\t\treturn from(beginning, from(parts));\n+\t}\n+\n+\t/**\n+\t * Get a smarthome topic string for a given location, room and function.\n+\t * \n+\t * @param location\n+\t *            The location\n+\t * @param room\n+\t *            The room\n+\t * @param function\n+\t *            The function\n+\t * @return The topic string.\n+\t */\n+\tpublic static String smarthomeTopic(String location, String room, String function) {","path":"amy-message-hub-api/src/main/java/de/unistuttgart/iaas/amyassist/amy/messagehub/topics/Topics.java","position":71,"original_position":71,"commit_id":"7c7994b44f1af840156412ffd47971ce81756d53","original_commit_id":"7c7994b44f1af840156412ffd47971ce81756d53","user":{"login":"Legion2","id":12752323,"node_id":"MDQ6VXNlcjEyNzUyMzIz","avatar_url":"https://avatars3.githubusercontent.com/u/12752323?v=4","gravatar_id":"","url":"https://api.github.com/users/Legion2","html_url":"https://github.com/Legion2","followers_url":"https://api.github.com/users/Legion2/followers","following_url":"https://api.github.com/users/Legion2/following{/other_user}","gists_url":"https://api.github.com/users/Legion2/gists{/gist_id}","starred_url":"https://api.github.com/users/Legion2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Legion2/subscriptions","organizations_url":"https://api.github.com/users/Legion2/orgs","repos_url":"https://api.github.com/users/Legion2/repos","events_url":"https://api.github.com/users/Legion2/events{/privacy}","received_events_url":"https://api.github.com/users/Legion2/received_events","type":"User","site_admin":false},"body":"remove `Topic` from name","created_at":"2018-09-08T16:14:14Z","updated_at":"2018-09-08T16:15:05Z","html_url":"https://github.com/AmyAssist/Amy/pull/422#discussion_r216134282","pull_request_url":"https://api.github.com/repos/AmyAssist/Amy/pulls/422","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/AmyAssist/Amy/pulls/comments/216134282"},"html":{"href":"https://github.com/AmyAssist/Amy/pull/422#discussion_r216134282"},"pull_request":{"href":"https://api.github.com/repos/AmyAssist/Amy/pulls/422"}}},"pull_request":{"url":"https://api.github.com/repos/AmyAssist/Amy/pulls/422","id":214089203,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0MDg5MjAz","html_url":"https://github.com/AmyAssist/Amy/pull/422","diff_url":"https://github.com/AmyAssist/Amy/pull/422.diff","patch_url":"https://github.com/AmyAssist/Amy/pull/422.patch","issue_url":"https://api.github.com/repos/AmyAssist/Amy/issues/422","number":422,"state":"open","locked":false,"title":"Improve predefinded topics","user":{"login":"neumantm","id":27770422,"node_id":"MDQ6VXNlcjI3NzcwNDIy","avatar_url":"https://avatars0.githubusercontent.com/u/27770422?v=4","gravatar_id":"","url":"https://api.github.com/users/neumantm","html_url":"https://github.com/neumantm","followers_url":"https://api.github.com/users/neumantm/followers","following_url":"https://api.github.com/users/neumantm/following{/other_user}","gists_url":"https://api.github.com/users/neumantm/gists{/gist_id}","starred_url":"https://api.github.com/users/neumantm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neumantm/subscriptions","organizations_url":"https://api.github.com/users/neumantm/orgs","repos_url":"https://api.github.com/users/neumantm/repos","events_url":"https://api.github.com/users/neumantm/events{/privacy}","received_events_url":"https://api.github.com/users/neumantm/received_events","type":"User","site_admin":false},"body":"Improves the predefined topics.\r\n\r\nPull request status:\r\n- [x] Code conventions\r\n- [x] Ready for review\r\n","created_at":"2018-09-08T10:36:18Z","updated_at":"2018-09-08T16:15:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1603c114990b689613354be2cd242e7843b9f232","assignee":{"login":"neumantm","id":27770422,"node_id":"MDQ6VXNlcjI3NzcwNDIy","avatar_url":"https://avatars0.githubusercontent.com/u/27770422?v=4","gravatar_id":"","url":"https://api.github.com/users/neumantm","html_url":"https://github.com/neumantm","followers_url":"https://api.github.com/users/neumantm/followers","following_url":"https://api.github.com/users/neumantm/following{/other_user}","gists_url":"https://api.github.com/users/neumantm/gists{/gist_id}","starred_url":"https://api.github.com/users/neumantm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neumantm/subscriptions","organizations_url":"https://api.github.com/users/neumantm/orgs","repos_url":"https://api.github.com/users/neumantm/repos","events_url":"https://api.github.com/users/neumantm/events{/privacy}","received_events_url":"https://api.github.com/users/neumantm/received_events","type":"User","site_admin":false},"assignees":[{"login":"neumantm","id":27770422,"node_id":"MDQ6VXNlcjI3NzcwNDIy","avatar_url":"https://avatars0.githubusercontent.com/u/27770422?v=4","gravatar_id":"","url":"https://api.github.com/users/neumantm","html_url":"https://github.com/neumantm","followers_url":"https://api.github.com/users/neumantm/followers","following_url":"https://api.github.com/users/neumantm/following{/other_user}","gists_url":"https://api.github.com/users/neumantm/gists{/gist_id}","starred_url":"https://api.github.com/users/neumantm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neumantm/subscriptions","organizations_url":"https://api.github.com/users/neumantm/orgs","repos_url":"https://api.github.com/users/neumantm/repos","events_url":"https://api.github.com/users/neumantm/events{/privacy}","received_events_url":"https://api.github.com/users/neumantm/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AmyAssist/Amy/pulls/422/commits","review_comments_url":"https://api.github.com/repos/AmyAssist/Amy/pulls/422/comments","review_comment_url":"https://api.github.com/repos/AmyAssist/Amy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AmyAssist/Amy/issues/422/comments","statuses_url":"https://api.github.com/repos/AmyAssist/Amy/statuses/7c7994b44f1af840156412ffd47971ce81756d53","head":{"label":"AmyAssist:improvePredefindedTopics","ref":"improvePredefindedTopics","sha":"7c7994b44f1af840156412ffd47971ce81756d53","user":{"login":"AmyAssist","id":39340355,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MzQwMzU1","avatar_url":"https://avatars0.githubusercontent.com/u/39340355?v=4","gravatar_id":"","url":"https://api.github.com/users/AmyAssist","html_url":"https://github.com/AmyAssist","followers_url":"https://api.github.com/users/AmyAssist/followers","following_url":"https://api.github.com/users/AmyAssist/following{/other_user}","gists_url":"https://api.github.com/users/AmyAssist/gists{/gist_id}","starred_url":"https://api.github.com/users/AmyAssist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmyAssist/subscriptions","organizations_url":"https://api.github.com/users/AmyAssist/orgs","repos_url":"https://api.github.com/users/AmyAssist/repos","events_url":"https://api.github.com/users/AmyAssist/events{/privacy}","received_events_url":"https://api.github.com/users/AmyAssist/received_events","type":"Organization","site_admin":false},"repo":{"id":134390462,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQzOTA0NjI=","name":"Amy","full_name":"AmyAssist/Amy","owner":{"login":"AmyAssist","id":39340355,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MzQwMzU1","avatar_url":"https://avatars0.githubusercontent.com/u/39340355?v=4","gravatar_id":"","url":"https://api.github.com/users/AmyAssist","html_url":"https://github.com/AmyAssist","followers_url":"https://api.github.com/users/AmyAssist/followers","following_url":"https://api.github.com/users/AmyAssist/following{/other_user}","gists_url":"https://api.github.com/users/AmyAssist/gists{/gist_id}","starred_url":"https://api.github.com/users/AmyAssist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmyAssist/subscriptions","organizations_url":"https://api.github.com/users/AmyAssist/orgs","repos_url":"https://api.github.com/users/AmyAssist/repos","events_url":"https://api.github.com/users/AmyAssist/events{/privacy}","received_events_url":"https://api.github.com/users/AmyAssist/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AmyAssist/Amy","description":"Personal Assistance System","fork":false,"url":"https://api.github.com/repos/AmyAssist/Amy","forks_url":"https://api.github.com/repos/AmyAssist/Amy/forks","keys_url":"https://api.github.com/repos/AmyAssist/Amy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AmyAssist/Amy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AmyAssist/Amy/teams","hooks_url":"https://api.github.com/repos/AmyAssist/Amy/hooks","issue_events_url":"https://api.github.com/repos/AmyAssist/Amy/issues/events{/number}","events_url":"https://api.github.com/repos/AmyAssist/Amy/events","assignees_url":"https://api.github.com/repos/AmyAssist/Amy/assignees{/user}","branches_url":"https://api.github.com/repos/AmyAssist/Amy/branches{/branch}","tags_url":"https://api.github.com/repos/AmyAssist/Amy/tags","blobs_url":"https://api.github.com/repos/AmyAssist/Amy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AmyAssist/Amy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AmyAssist/Amy/git/refs{/sha}","trees_url":"https://api.github.com/repos/AmyAssist/Amy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AmyAssist/Amy/statuses/{sha}","languages_url":"https://api.github.com/repos/AmyAssist/Amy/languages","stargazers_url":"https://api.github.com/repos/AmyAssist/Amy/stargazers","contributors_url":"https://api.github.com/repos/AmyAssist/Amy/contributors","subscribers_url":"https://api.github.com/repos/AmyAssist/Amy/subscribers","subscription_url":"https://api.github.com/repos/AmyAssist/Amy/subscription","commits_url":"https://api.github.com/repos/AmyAssist/Amy/commits{/sha}","git_commits_url":"https://api.github.com/repos/AmyAssist/Amy/git/commits{/sha}","comments_url":"https://api.github.com/repos/AmyAssist/Amy/comments{/number}","issue_comment_url":"https://api.github.com/repos/AmyAssist/Amy/issues/comments{/number}","contents_url":"https://api.github.com/repos/AmyAssist/Amy/contents/{+path}","compare_url":"https://api.github.com/repos/AmyAssist/Amy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AmyAssist/Amy/merges","archive_url":"https://api.github.com/repos/AmyAssist/Amy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AmyAssist/Amy/downloads","issues_url":"https://api.github.com/repos/AmyAssist/Amy/issues{/number}","pulls_url":"https://api.github.com/repos/AmyAssist/Amy/pulls{/number}","milestones_url":"https://api.github.com/repos/AmyAssist/Amy/milestones{/number}","notifications_url":"https://api.github.com/repos/AmyAssist/Amy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AmyAssist/Amy/labels{/name}","releases_url":"https://api.github.com/repos/AmyAssist/Amy/releases{/id}","deployments_url":"https://api.github.com/repos/AmyAssist/Amy/deployments","created_at":"2018-05-22T09:16:34Z","updated_at":"2018-09-08T15:49:32Z","pushed_at":"2018-09-08T16:04:10Z","git_url":"git://github.com/AmyAssist/Amy.git","ssh_url":"git@github.com:AmyAssist/Amy.git","clone_url":"https://github.com/AmyAssist/Amy.git","svn_url":"https://github.com/AmyAssist/Amy","homepage":null,"size":5783,"stargazers_count":10,"watchers_count":10,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":37,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1,"open_issues":37,"watchers":10,"default_branch":"dev"}},"base":{"label":"AmyAssist:dev","ref":"dev","sha":"f1097a1fec7a2f34d6749be9ead1c10975ef07b2","user":{"login":"AmyAssist","id":39340355,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MzQwMzU1","avatar_url":"https://avatars0.githubusercontent.com/u/39340355?v=4","gravatar_id":"","url":"https://api.github.com/users/AmyAssist","html_url":"https://github.com/AmyAssist","followers_url":"https://api.github.com/users/AmyAssist/followers","following_url":"https://api.github.com/users/AmyAssist/following{/other_user}","gists_url":"https://api.github.com/users/AmyAssist/gists{/gist_id}","starred_url":"https://api.github.com/users/AmyAssist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmyAssist/subscriptions","organizations_url":"https://api.github.com/users/AmyAssist/orgs","repos_url":"https://api.github.com/users/AmyAssist/repos","events_url":"https://api.github.com/users/AmyAssist/events{/privacy}","received_events_url":"https://api.github.com/users/AmyAssist/received_events","type":"Organization","site_admin":false},"repo":{"id":134390462,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQzOTA0NjI=","name":"Amy","full_name":"AmyAssist/Amy","owner":{"login":"AmyAssist","id":39340355,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MzQwMzU1","avatar_url":"https://avatars0.githubusercontent.com/u/39340355?v=4","gravatar_id":"","url":"https://api.github.com/users/AmyAssist","html_url":"https://github.com/AmyAssist","followers_url":"https://api.github.com/users/AmyAssist/followers","following_url":"https://api.github.com/users/AmyAssist/following{/other_user}","gists_url":"https://api.github.com/users/AmyAssist/gists{/gist_id}","starred_url":"https://api.github.com/users/AmyAssist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmyAssist/subscriptions","organizations_url":"https://api.github.com/users/AmyAssist/orgs","repos_url":"https://api.github.com/users/AmyAssist/repos","events_url":"https://api.github.com/users/AmyAssist/events{/privacy}","received_events_url":"https://api.github.com/users/AmyAssist/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AmyAssist/Amy","description":"Personal Assistance System","fork":false,"url":"https://api.github.com/repos/AmyAssist/Amy","forks_url":"https://api.github.com/repos/AmyAssist/Amy/forks","keys_url":"https://api.github.com/repos/AmyAssist/Amy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AmyAssist/Amy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AmyAssist/Amy/teams","hooks_url":"https://api.github.com/repos/AmyAssist/Amy/hooks","issue_events_url":"https://api.github.com/repos/AmyAssist/Amy/issues/events{/number}","events_url":"https://api.github.com/repos/AmyAssist/Amy/events","assignees_url":"https://api.github.com/repos/AmyAssist/Amy/assignees{/user}","branches_url":"https://api.github.com/repos/AmyAssist/Amy/branches{/branch}","tags_url":"https://api.github.com/repos/AmyAssist/Amy/tags","blobs_url":"https://api.github.com/repos/AmyAssist/Amy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AmyAssist/Amy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AmyAssist/Amy/git/refs{/sha}","trees_url":"https://api.github.com/repos/AmyAssist/Amy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AmyAssist/Amy/statuses/{sha}","languages_url":"https://api.github.com/repos/AmyAssist/Amy/languages","stargazers_url":"https://api.github.com/repos/AmyAssist/Amy/stargazers","contributors_url":"https://api.github.com/repos/AmyAssist/Amy/contributors","subscribers_url":"https://api.github.com/repos/AmyAssist/Amy/subscribers","subscription_url":"https://api.github.com/repos/AmyAssist/Amy/subscription","commits_url":"https://api.github.com/repos/AmyAssist/Amy/commits{/sha}","git_commits_url":"https://api.github.com/repos/AmyAssist/Amy/git/commits{/sha}","comments_url":"https://api.github.com/repos/AmyAssist/Amy/comments{/number}","issue_comment_url":"https://api.github.com/repos/AmyAssist/Amy/issues/comments{/number}","contents_url":"https://api.github.com/repos/AmyAssist/Amy/contents/{+path}","compare_url":"https://api.github.com/repos/AmyAssist/Amy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AmyAssist/Amy/merges","archive_url":"https://api.github.com/repos/AmyAssist/Amy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AmyAssist/Amy/downloads","issues_url":"https://api.github.com/repos/AmyAssist/Amy/issues{/number}","pulls_url":"https://api.github.com/repos/AmyAssist/Amy/pulls{/number}","milestones_url":"https://api.github.com/repos/AmyAssist/Amy/milestones{/number}","notifications_url":"https://api.github.com/repos/AmyAssist/Amy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AmyAssist/Amy/labels{/name}","releases_url":"https://api.github.com/repos/AmyAssist/Amy/releases{/id}","deployments_url":"https://api.github.com/repos/AmyAssist/Amy/deployments","created_at":"2018-05-22T09:16:34Z","updated_at":"2018-09-08T15:49:32Z","pushed_at":"2018-09-08T16:04:10Z","git_url":"git://github.com/AmyAssist/Amy.git","ssh_url":"git@github.com:AmyAssist/Amy.git","clone_url":"https://github.com/AmyAssist/Amy.git","svn_url":"https://github.com/AmyAssist/Amy","homepage":null,"size":5783,"stargazers_count":10,"watchers_count":10,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":37,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1,"open_issues":37,"watchers":10,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/AmyAssist/Amy/pulls/422"},"html":{"href":"https://github.com/AmyAssist/Amy/pull/422"},"issue":{"href":"https://api.github.com/repos/AmyAssist/Amy/issues/422"},"comments":{"href":"https://api.github.com/repos/AmyAssist/Amy/issues/422/comments"},"review_comments":{"href":"https://api.github.com/repos/AmyAssist/Amy/pulls/422/comments"},"review_comment":{"href":"https://api.github.com/repos/AmyAssist/Amy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AmyAssist/Amy/pulls/422/commits"},"statuses":{"href":"https://api.github.com/repos/AmyAssist/Amy/statuses/7c7994b44f1af840156412ffd47971ce81756d53"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"Legion2"}}