{"action":"created","comment":{"url":"https://api.github.com/repos/Minecolonies/minecolonies/pulls/comments/89875826","pull_request_review_id":10406720,"id":89875826,"diff_hunk":"@@ -0,0 +1,467 @@\n+package com.minecolonies.client.gui;\n+\n+import com.blockout.Pane;\n+import com.blockout.controls.Button;\n+import com.blockout.controls.Label;\n+import com.blockout.views.ScrollingList;\n+import com.blockout.views.SwitchView;\n+import com.minecolonies.MineColonies;\n+import com.minecolonies.colony.buildings.BuildingGuardTower;\n+import com.minecolonies.lib.Constants;\n+import com.minecolonies.network.messages.GuardScepterMessage;\n+import com.minecolonies.network.messages.GuardTaskMessage;\n+import com.minecolonies.util.LanguageHandler;\n+import net.minecraft.client.entity.EntityPlayerSP;\n+import net.minecraft.util.math.BlockPos;\n+import org.jetbrains.annotations.NotNull;\n+\n+import java.util.ArrayList;\n+\n+/**\n+ * Window for the guardTower hut\n+ */\n+public class WindowHutGuardTower extends AbstractWindowWorkerBuilding<BuildingGuardTower.View>\n+{\n+    /**\n+     * Id of the list of the patrol points in the GUI.\n+     */\n+    private static final String LIST_LEVELS    = \"positions\";\n+\n+    /**\n+     * Id of the actions page in the GUI.\n+     */\n+    private static final String PAGE_ACTIONS    = \"levelActions\";\n+\n+    /**\n+     * Id of the previous page button in the GUI\n+     */\n+    private static final String BUTTON_PREVPAGE = \"prevPage\";\n+\n+    /**\n+     * Id of the next page button in the GUI.\n+     */\n+    private static final String BUTTON_NEXTPAGE = \"nextPage\";\n+\n+    /**\n+     * Id of the switch job button in the GUI.\n+     */\n+    private static final String BUTTON_JOB = \"job\";\n+\n+    /**\n+     * Id of the switch assignment mode button in the GUI - (Manually / Automatically).\n+     */\n+    private static final String BUTTON_ASSIGNMENT_MODE = \"assign\";\n+\n+    /**\n+     * Id of the switch patrolling mode button in the GUI - (Manually / Automatically).\n+     */\n+    private static final String BUTTON_PATROL_MODE = \"patrol\";\n+\n+    /**\n+     * Id of the switch retrieval mode button in the GUI - (Off / 10% / 20%).\n+     */\n+    private static final String BUTTON_RETRIEVAL_MODE = \"retrieve\";\n+\n+    /**\n+     * Id of the switch the task button in the GUI - (Patrol).\n+     */\n+    private static final String BUTTON_TASK_PATROL= \"patrolling\";\n+\n+    /**\n+     * Id of the switch the task button in the GUI - (Follow).\n+     */\n+    private static final String BUTTON_TASK_FOLLOW = \"following\";\n+\n+    /**\n+     * Id of the switch the task button in the GUI - (Guard).\n+     */\n+    private static final String BUTTON_TASK_GUARD = \"guarding\";\n+\n+    /**\n+     * Id of the settarget button in the GUI - Depending on task sets guard position or patrol..\n+     */\n+    private static final String BUTTON_SET_TARGET = \"setTarget\";\n+\n+\n+    private static final String VIEW_PAGES                      = \"pages\";\n+    private static final String HUT_GUARD_TOWER_RESOURCE_SUFFIX = \":gui/windowHutGuardTower.xml\";\n+    private Button                  buttonPrevPage;\n+    private Button                  buttonNextPage;\n+\n+    /**\n+     * Assign the job manually, knight or ranger.\n+     */\n+    private boolean assignManually = false;\n+\n+    /**\n+     * Retrieve the guard on low health.\n+     */\n+    private boolean retrieveOnLowHealth = false;\n+\n+    /**\n+     * Patrol manually or automatically.\n+     */\n+    private boolean patrolManually = false;\n+\n+    /**\n+     * The task of the guard, following the Task enum.\n+     */\n+    private BuildingGuardTower.Task task = BuildingGuardTower.Task.GUARD;\n+\n+    /**\n+     * The job of the guard, following the GuarJob enum.\n+     */\n+    private BuildingGuardTower.GuardJob job = null;\n+\n+    /**\n+     * The list of manual patrol targets.\n+     */\n+    private ArrayList<BlockPos> patrolTargets = new ArrayList<>();\n+\n+    /**\n+     * The patrol list.\n+     */\n+    private ScrollingList patrolList;\n+\n+    /**\n+     * Buttons used in the application:\n+     */\n+    private final Button buttonTaskPatrol;\n+    private final Button buttonTaskFollow;\n+    private final Button buttonTaskGuard;\n+    private final Button buttonSetTarget;\n+\n+\n+    /**\n+     * Constructor for the window of the guardTower hut\n+     *\n+     * @param building {@link BuildingGuardTower.View}\n+     */\n+    public WindowHutGuardTower(BuildingGuardTower.View building)\n+    {\n+        super(building, Constants.MOD_ID + HUT_GUARD_TOWER_RESOURCE_SUFFIX);\n+\n+        pullInfoFromHut();\n+\n+        registerButton(BUTTON_JOB, this::switchJob);\n+        registerButton(BUTTON_ASSIGNMENT_MODE, this::switchAssignmentMode);\n+        registerButton(BUTTON_PATROL_MODE, this::switchPatrolMode);\n+        registerButton(BUTTON_RETRIEVAL_MODE, this::switchRetrievalMode);\n+\n+        registerButton(BUTTON_TASK_PATROL, this::switchTask);\n+        registerButton(BUTTON_TASK_FOLLOW, this::switchTask);\n+        registerButton(BUTTON_TASK_GUARD, this::switchTask);\n+        registerButton(BUTTON_SET_TARGET, this::setTarget);\n+\n+        buttonTaskPatrol = this.findPaneOfTypeByID(BUTTON_TASK_PATROL, Button.class);\n+        buttonTaskFollow = this.findPaneOfTypeByID(BUTTON_TASK_FOLLOW, Button.class);\n+        buttonTaskGuard = this.findPaneOfTypeByID(BUTTON_TASK_GUARD, Button.class);\n+\n+        buttonSetTarget = this.findPaneOfTypeByID(BUTTON_SET_TARGET, Button.class);\n+        handleButtons();\n+    }\n+\n+    /**\n+     * Handle the task buttons correctly.\n+     */\n+    private void handleButtons()\n+    {\n+        Button buttonJob = this.findPaneOfTypeByID(BUTTON_JOB, Button.class);\n+\n+        if(job != null)\n+        {\n+            if (job.equals(BuildingGuardTower.GuardJob.KNIGHT))\n+            {\n+                buttonJob.setLabel(LanguageHandler.format(\"com.minecolonies.gui.workerHuts.knight\"));\n+            }\n+            else\n+            {\n+                buttonJob.setLabel(LanguageHandler.format(\"com.minecolonies.gui.workerHuts.ranger\"));\n+            }\n+        }\n+\n+        buttonJob.setEnabled(assignManually);\n+\n+        String auto = LanguageHandler.format(\"com.minecolonies.gui.workerHuts.modeA\");\n+        String manual = LanguageHandler.format(\"com.minecolonies.gui.workerHuts.modeM\");\n+\n+        String on = LanguageHandler.format(\"com.minecolonies.gui.workerHuts.retrieveOn\");\n+        String off = LanguageHandler.format(\"com.minecolonies.gui.workerHuts.retrieveOn\");\n+\n+        this.findPaneOfTypeByID(BUTTON_ASSIGNMENT_MODE, Button.class).setLabel(assignManually ? manual : auto);\n+        this.findPaneOfTypeByID(BUTTON_PATROL_MODE, Button.class).setLabel(patrolManually ? manual : auto);\n+        this.findPaneOfTypeByID(BUTTON_RETRIEVAL_MODE, Button.class).setLabel(retrieveOnLowHealth ? on : off);\n+\n+        if(task.equals(BuildingGuardTower.Task.PATROL))\n+        {\n+            if(patrolManually)\n+            {\n+                buttonSetTarget.setEnabled(true);\n+                buttonSetTarget.setLabel(LanguageHandler.format(\"com.minecolonies.gui.workerHuts.targetPatrol\"));\n+            }\n+            else\n+            {\n+                buttonSetTarget.setEnabled(false);\n+            }\n+            buttonTaskPatrol.setEnabled(false);\n+        }\n+        else if(task.equals(BuildingGuardTower.Task.FOLLOW))\n+        {\n+            buttonTaskFollow.setEnabled(false);\n+            buttonSetTarget.hide();\n+        }\n+        else\n+        {\n+            buttonSetTarget.setLabel(LanguageHandler.format(\"com.minecolonies.gui.workerHuts.targetGuard\"));\n+            buttonTaskGuard.setEnabled(true);\n+        }\n+    }\n+\n+    /**\n+     * Switch between the different task (Patrol, Follow, Guard).\n+     * @param button the button clicked to switch the task.\n+     */\n+    private void switchTask(final Button button)\n+    {\n+        if(button.getID().contains(\"patrol\"))\n+        {\n+            building.task = BuildingGuardTower.Task.PATROL;\n+\n+            buttonTaskPatrol.setEnabled(false);\n+            buttonTaskFollow.setEnabled(true);\n+            buttonTaskGuard.setEnabled(true);\n+\n+            buttonSetTarget.show();\n+        }\n+        else if(button.getID().contains(\"follow\"))\n+        {\n+            building.task = BuildingGuardTower.Task.FOLLOW;\n+\n+            buttonTaskFollow.setEnabled(false);\n+            buttonTaskPatrol.setEnabled(true);\n+            buttonTaskGuard.setEnabled(true);\n+\n+            buttonSetTarget.hide();\n+        }\n+        else\n+        {\n+            building.task = BuildingGuardTower.Task.GUARD;\n+\n+            buttonTaskGuard.setEnabled(false);\n+            buttonTaskPatrol.setEnabled(true);\n+            buttonTaskFollow.setEnabled(true);\n+\n+            buttonSetTarget.show();\n+        }\n+        pullInfoFromHut();\n+        sendChangesToServer();\n+    }\n+\n+    /**\n+     * Sets the target for patrolling or guarding of the guard.\n+     * @param button clicked button.\n+     */\n+    private void setTarget(final Button button)\n+    {\n+        final EntityPlayerSP player = this.mc.thePlayer;\n+        final int emptySlot = player.inventory.getFirstEmptyStack();\n+        pullInfoFromHut();\n+\n+        if(emptySlot == -1)\n+        {\n+            LanguageHandler.sendPlayerLocalizedMessage(player, \"com.minecolonies.gui.workerHuts.noSpace\");\n+        }\n+\n+        if(patrolManually && task.equals(BuildingGuardTower.Task.PATROL))\n+        {\n+            givePlayerScepter(BuildingGuardTower.Task.PATROL);\n+            LanguageHandler.sendPlayerLocalizedMessage(player, \"com.minecolonies.job.guard.tool.taskPatrol\");\n+        }\n+        else if(task.equals(BuildingGuardTower.Task.GUARD))\n+        {\n+            givePlayerScepter(BuildingGuardTower.Task.GUARD);\n+            LanguageHandler.sendPlayerLocalizedMessage(player, \"com.minecolonies.job.guard.tool.taskGuard\");\n+        }\n+        window.close();\n+    }\n+\n+\n+    /**\n+     * Send message to player to add scepter to his inventory.\n+     * @param localTask the task to execute with the scepter.\n+     */\n+    private void givePlayerScepter(BuildingGuardTower.Task localTask)\n+    {\n+        MineColonies.getNetwork().sendToServer(new GuardScepterMessage(localTask.ordinal(), building.getID()));\n+    }\n+\n+    /**\n+     * Sends changes to the server.\n+     */\n+    private void sendChangesToServer()\n+    {\n+        MineColonies.getNetwork().sendToServer(new GuardTaskMessage(building, job.ordinal(), assignManually, patrolManually, retrieveOnLowHealth, task.ordinal()));\n+    }\n+\n+    /**\n+     * Switch the retrieval mode.\n+     * @param button clicked button\n+     */\n+    private void switchRetrievalMode(final Button button)\n+    {\n+        building.retrieveOnLowHealth = !building.retrieveOnLowHealth;\n+        pullInfoFromHut();\n+        sendChangesToServer();\n+    }\n+\n+    /**\n+     * Switch the patrol mode.\n+     * @param button clicked button\n+     */\n+    private void switchPatrolMode(final Button button)\n+    {\n+        building.patrolManually = !building.patrolManually;\n+        pullInfoFromHut();\n+        sendChangesToServer();\n+        handleButtons();\n+    }\n+\n+    /**\n+     * Switch the job.\n+     * @param button clicked button\n+     */\n+    private void switchJob(final Button button)","path":"src/main/java/com/minecolonies/client/gui/WindowHutGuardTower.java","position":333,"original_position":333,"commit_id":"c4c1f1843591a14cc820d89e1c4278a243060eea","original_commit_id":"c4c1f1843591a14cc820d89e1c4278a243060eea","user":{"login":"MinecoloniesSonar","id":19393044,"avatar_url":"https://avatars.githubusercontent.com/u/19393044?v=3","gravatar_id":"","url":"https://api.github.com/users/MinecoloniesSonar","html_url":"https://github.com/MinecoloniesSonar","followers_url":"https://api.github.com/users/MinecoloniesSonar/followers","following_url":"https://api.github.com/users/MinecoloniesSonar/following{/other_user}","gists_url":"https://api.github.com/users/MinecoloniesSonar/gists{/gist_id}","starred_url":"https://api.github.com/users/MinecoloniesSonar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MinecoloniesSonar/subscriptions","organizations_url":"https://api.github.com/users/MinecoloniesSonar/orgs","repos_url":"https://api.github.com/users/MinecoloniesSonar/repos","events_url":"https://api.github.com/users/MinecoloniesSonar/events{/privacy}","received_events_url":"https://api.github.com/users/MinecoloniesSonar/received_events","type":"User","site_admin":false},"body":"![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) Remove this unused method parameter \"button\". [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://home.kk-sc.de:9000/coding_rules#rule_key=squid%3AS1172)\n","created_at":"2016-11-28T20:21:55Z","updated_at":"2016-11-28T20:21:55Z","html_url":"https://github.com/Minecolonies/minecolonies/pull/306#discussion_r89875826","pull_request_url":"https://api.github.com/repos/Minecolonies/minecolonies/pulls/306","_links":{"self":{"href":"https://api.github.com/repos/Minecolonies/minecolonies/pulls/comments/89875826"},"html":{"href":"https://github.com/Minecolonies/minecolonies/pull/306#discussion_r89875826"},"pull_request":{"href":"https://api.github.com/repos/Minecolonies/minecolonies/pulls/306"}}},"pull_request":{"url":"https://api.github.com/repos/Minecolonies/minecolonies/pulls/306","id":95569094,"html_url":"https://github.com/Minecolonies/minecolonies/pull/306","diff_url":"https://github.com/Minecolonies/minecolonies/pull/306.diff","patch_url":"https://github.com/Minecolonies/minecolonies/pull/306.patch","issue_url":"https://api.github.com/repos/Minecolonies/minecolonies/issues/306","number":306,"state":"open","locked":false,"title":"Feature/#99guards","user":{"login":"Raycoms","id":6438347,"avatar_url":"https://avatars.githubusercontent.com/u/6438347?v=3","gravatar_id":"","url":"https://api.github.com/users/Raycoms","html_url":"https://github.com/Raycoms","followers_url":"https://api.github.com/users/Raycoms/followers","following_url":"https://api.github.com/users/Raycoms/following{/other_user}","gists_url":"https://api.github.com/users/Raycoms/gists{/gist_id}","starred_url":"https://api.github.com/users/Raycoms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raycoms/subscriptions","organizations_url":"https://api.github.com/users/Raycoms/orgs","repos_url":"https://api.github.com/users/Raycoms/repos","events_url":"https://api.github.com/users/Raycoms/events{/privacy}","received_events_url":"https://api.github.com/users/Raycoms/received_events","type":"User","site_admin":false},"body":"Closes #281 \r\n\r\n# Changes proposed in this pull request:\r\n- Guards are smarter and more versatile.\r\n- Lots of new GUI options.\r\n- More tasks and smarter decisions.\r\n\r\nReview please\r\n","created_at":"2016-11-28T20:17:49Z","updated_at":"2016-11-28T20:21:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ce08329ee7fdecdf10669f916812b20938c1cbc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Minecolonies/minecolonies/pulls/306/commits","review_comments_url":"https://api.github.com/repos/Minecolonies/minecolonies/pulls/306/comments","review_comment_url":"https://api.github.com/repos/Minecolonies/minecolonies/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Minecolonies/minecolonies/issues/306/comments","statuses_url":"https://api.github.com/repos/Minecolonies/minecolonies/statuses/c4c1f1843591a14cc820d89e1c4278a243060eea","head":{"label":"Minecolonies:feature/#99guards","ref":"feature/#99guards","sha":"c4c1f1843591a14cc820d89e1c4278a243060eea","user":{"login":"Minecolonies","id":5167336,"avatar_url":"https://avatars.githubusercontent.com/u/5167336?v=3","gravatar_id":"","url":"https://api.github.com/users/Minecolonies","html_url":"https://github.com/Minecolonies","followers_url":"https://api.github.com/users/Minecolonies/followers","following_url":"https://api.github.com/users/Minecolonies/following{/other_user}","gists_url":"https://api.github.com/users/Minecolonies/gists{/gist_id}","starred_url":"https://api.github.com/users/Minecolonies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Minecolonies/subscriptions","organizations_url":"https://api.github.com/users/Minecolonies/orgs","repos_url":"https://api.github.com/users/Minecolonies/repos","events_url":"https://api.github.com/users/Minecolonies/events{/privacy}","received_events_url":"https://api.github.com/users/Minecolonies/received_events","type":"Organization","site_admin":false},"repo":{"id":65616760,"name":"minecolonies","full_name":"Minecolonies/minecolonies","owner":{"login":"Minecolonies","id":5167336,"avatar_url":"https://avatars.githubusercontent.com/u/5167336?v=3","gravatar_id":"","url":"https://api.github.com/users/Minecolonies","html_url":"https://github.com/Minecolonies","followers_url":"https://api.github.com/users/Minecolonies/followers","following_url":"https://api.github.com/users/Minecolonies/following{/other_user}","gists_url":"https://api.github.com/users/Minecolonies/gists{/gist_id}","starred_url":"https://api.github.com/users/Minecolonies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Minecolonies/subscriptions","organizations_url":"https://api.github.com/users/Minecolonies/orgs","repos_url":"https://api.github.com/users/Minecolonies/repos","events_url":"https://api.github.com/users/Minecolonies/events{/privacy}","received_events_url":"https://api.github.com/users/Minecolonies/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Minecolonies/minecolonies","description":"Minecolonies minecraft mod","fork":false,"url":"https://api.github.com/repos/Minecolonies/minecolonies","forks_url":"https://api.github.com/repos/Minecolonies/minecolonies/forks","keys_url":"https://api.github.com/repos/Minecolonies/minecolonies/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Minecolonies/minecolonies/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Minecolonies/minecolonies/teams","hooks_url":"https://api.github.com/repos/Minecolonies/minecolonies/hooks","issue_events_url":"https://api.github.com/repos/Minecolonies/minecolonies/issues/events{/number}","events_url":"https://api.github.com/repos/Minecolonies/minecolonies/events","assignees_url":"https://api.github.com/repos/Minecolonies/minecolonies/assignees{/user}","branches_url":"https://api.github.com/repos/Minecolonies/minecolonies/branches{/branch}","tags_url":"https://api.github.com/repos/Minecolonies/minecolonies/tags","blobs_url":"https://api.github.com/repos/Minecolonies/minecolonies/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Minecolonies/minecolonies/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Minecolonies/minecolonies/git/refs{/sha}","trees_url":"https://api.github.com/repos/Minecolonies/minecolonies/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Minecolonies/minecolonies/statuses/{sha}","languages_url":"https://api.github.com/repos/Minecolonies/minecolonies/languages","stargazers_url":"https://api.github.com/repos/Minecolonies/minecolonies/stargazers","contributors_url":"https://api.github.com/repos/Minecolonies/minecolonies/contributors","subscribers_url":"https://api.github.com/repos/Minecolonies/minecolonies/subscribers","subscription_url":"https://api.github.com/repos/Minecolonies/minecolonies/subscription","commits_url":"https://api.github.com/repos/Minecolonies/minecolonies/commits{/sha}","git_commits_url":"https://api.github.com/repos/Minecolonies/minecolonies/git/commits{/sha}","comments_url":"https://api.github.com/repos/Minecolonies/minecolonies/comments{/number}","issue_comment_url":"https://api.github.com/repos/Minecolonies/minecolonies/issues/comments{/number}","contents_url":"https://api.github.com/repos/Minecolonies/minecolonies/contents/{+path}","compare_url":"https://api.github.com/repos/Minecolonies/minecolonies/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Minecolonies/minecolonies/merges","archive_url":"https://api.github.com/repos/Minecolonies/minecolonies/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Minecolonies/minecolonies/downloads","issues_url":"https://api.github.com/repos/Minecolonies/minecolonies/issues{/number}","pulls_url":"https://api.github.com/repos/Minecolonies/minecolonies/pulls{/number}","milestones_url":"https://api.github.com/repos/Minecolonies/minecolonies/milestones{/number}","notifications_url":"https://api.github.com/repos/Minecolonies/minecolonies/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Minecolonies/minecolonies/labels{/name}","releases_url":"https://api.github.com/repos/Minecolonies/minecolonies/releases{/id}","deployments_url":"https://api.github.com/repos/Minecolonies/minecolonies/deployments","created_at":"2016-08-13T12:45:38Z","updated_at":"2016-11-06T01:07:28Z","pushed_at":"2016-11-28T20:17:49Z","git_url":"git://github.com/Minecolonies/minecolonies.git","ssh_url":"git@github.com:Minecolonies/minecolonies.git","clone_url":"https://github.com/Minecolonies/minecolonies.git","svn_url":"https://github.com/Minecolonies/minecolonies","homepage":"http://minecolonies.com/","size":11253,"stargazers_count":12,"watchers_count":12,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":73,"forks":16,"open_issues":73,"watchers":12,"default_branch":"develop"}},"base":{"label":"Minecolonies:develop","ref":"develop","sha":"27ca0ba30cc7dc6758ae4e68a9a9bcf50f418796","user":{"login":"Minecolonies","id":5167336,"avatar_url":"https://avatars.githubusercontent.com/u/5167336?v=3","gravatar_id":"","url":"https://api.github.com/users/Minecolonies","html_url":"https://github.com/Minecolonies","followers_url":"https://api.github.com/users/Minecolonies/followers","following_url":"https://api.github.com/users/Minecolonies/following{/other_user}","gists_url":"https://api.github.com/users/Minecolonies/gists{/gist_id}","starred_url":"https://api.github.com/users/Minecolonies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Minecolonies/subscriptions","organizations_url":"https://api.github.com/users/Minecolonies/orgs","repos_url":"https://api.github.com/users/Minecolonies/repos","events_url":"https://api.github.com/users/Minecolonies/events{/privacy}","received_events_url":"https://api.github.com/users/Minecolonies/received_events","type":"Organization","site_admin":false},"repo":{"id":65616760,"name":"minecolonies","full_name":"Minecolonies/minecolonies","owner":{"login":"Minecolonies","id":5167336,"avatar_url":"https://avatars.githubusercontent.com/u/5167336?v=3","gravatar_id":"","url":"https://api.github.com/users/Minecolonies","html_url":"https://github.com/Minecolonies","followers_url":"https://api.github.com/users/Minecolonies/followers","following_url":"https://api.github.com/users/Minecolonies/following{/other_user}","gists_url":"https://api.github.com/users/Minecolonies/gists{/gist_id}","starred_url":"https://api.github.com/users/Minecolonies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Minecolonies/subscriptions","organizations_url":"https://api.github.com/users/Minecolonies/orgs","repos_url":"https://api.github.com/users/Minecolonies/repos","events_url":"https://api.github.com/users/Minecolonies/events{/privacy}","received_events_url":"https://api.github.com/users/Minecolonies/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Minecolonies/minecolonies","description":"Minecolonies minecraft mod","fork":false,"url":"https://api.github.com/repos/Minecolonies/minecolonies","forks_url":"https://api.github.com/repos/Minecolonies/minecolonies/forks","keys_url":"https://api.github.com/repos/Minecolonies/minecolonies/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Minecolonies/minecolonies/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Minecolonies/minecolonies/teams","hooks_url":"https://api.github.com/repos/Minecolonies/minecolonies/hooks","issue_events_url":"https://api.github.com/repos/Minecolonies/minecolonies/issues/events{/number}","events_url":"https://api.github.com/repos/Minecolonies/minecolonies/events","assignees_url":"https://api.github.com/repos/Minecolonies/minecolonies/assignees{/user}","branches_url":"https://api.github.com/repos/Minecolonies/minecolonies/branches{/branch}","tags_url":"https://api.github.com/repos/Minecolonies/minecolonies/tags","blobs_url":"https://api.github.com/repos/Minecolonies/minecolonies/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Minecolonies/minecolonies/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Minecolonies/minecolonies/git/refs{/sha}","trees_url":"https://api.github.com/repos/Minecolonies/minecolonies/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Minecolonies/minecolonies/statuses/{sha}","languages_url":"https://api.github.com/repos/Minecolonies/minecolonies/languages","stargazers_url":"https://api.github.com/repos/Minecolonies/minecolonies/stargazers","contributors_url":"https://api.github.com/repos/Minecolonies/minecolonies/contributors","subscribers_url":"https://api.github.com/repos/Minecolonies/minecolonies/subscribers","subscription_url":"https://api.github.com/repos/Minecolonies/minecolonies/subscription","commits_url":"https://api.github.com/repos/Minecolonies/minecolonies/commits{/sha}","git_commits_url":"https://api.github.com/repos/Minecolonies/minecolonies/git/commits{/sha}","comments_url":"https://api.github.com/repos/Minecolonies/minecolonies/comments{/number}","issue_comment_url":"https://api.github.com/repos/Minecolonies/minecolonies/issues/comments{/number}","contents_url":"https://api.github.com/repos/Minecolonies/minecolonies/contents/{+path}","compare_url":"https://api.github.com/repos/Minecolonies/minecolonies/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Minecolonies/minecolonies/merges","archive_url":"https://api.github.com/repos/Minecolonies/minecolonies/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Minecolonies/minecolonies/downloads","issues_url":"https://api.github.com/repos/Minecolonies/minecolonies/issues{/number}","pulls_url":"https://api.github.com/repos/Minecolonies/minecolonies/pulls{/number}","milestones_url":"https://api.github.com/repos/Minecolonies/minecolonies/milestones{/number}","notifications_url":"https://api.github.com/repos/Minecolonies/minecolonies/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Minecolonies/minecolonies/labels{/name}","releases_url":"https://api.github.com/repos/Minecolonies/minecolonies/releases{/id}","deployments_url":"https://api.github.com/repos/Minecolonies/minecolonies/deployments","created_at":"2016-08-13T12:45:38Z","updated_at":"2016-11-06T01:07:28Z","pushed_at":"2016-11-28T20:17:49Z","git_url":"git://github.com/Minecolonies/minecolonies.git","ssh_url":"git@github.com:Minecolonies/minecolonies.git","clone_url":"https://github.com/Minecolonies/minecolonies.git","svn_url":"https://github.com/Minecolonies/minecolonies","homepage":"http://minecolonies.com/","size":11253,"stargazers_count":12,"watchers_count":12,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":73,"forks":16,"open_issues":73,"watchers":12,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Minecolonies/minecolonies/pulls/306"},"html":{"href":"https://github.com/Minecolonies/minecolonies/pull/306"},"issue":{"href":"https://api.github.com/repos/Minecolonies/minecolonies/issues/306"},"comments":{"href":"https://api.github.com/repos/Minecolonies/minecolonies/issues/306/comments"},"review_comments":{"href":"https://api.github.com/repos/Minecolonies/minecolonies/pulls/306/comments"},"review_comment":{"href":"https://api.github.com/repos/Minecolonies/minecolonies/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Minecolonies/minecolonies/pulls/306/commits"},"statuses":{"href":"https://api.github.com/repos/Minecolonies/minecolonies/statuses/c4c1f1843591a14cc820d89e1c4278a243060eea"}}}}
{"actor":{"display_login":"MinecoloniesSonar"}}