{"action":"created","comment":{"url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/comments/56837797","id":56837797,"diff_hunk":"@@ -0,0 +1,308 @@\n+package ui.components.pickers;\n+\n+import backend.resource.TurboIssue;\n+import backend.resource.TurboMilestone;\n+import javafx.application.Platform;\n+import javafx.geometry.Insets;\n+import javafx.geometry.Pos;\n+import javafx.scene.Node;\n+import javafx.scene.control.*;\n+import javafx.scene.layout.FlowPane;\n+import javafx.scene.layout.HBox;\n+import javafx.scene.layout.VBox;\n+import javafx.stage.Stage;\n+import javafx.util.Pair;\n+\n+import java.util.ArrayList;\n+import java.util.Collections;\n+import java.util.List;\n+import java.util.Optional;\n+\n+public class MilestonePickerDialog extends Dialog<Pair<ButtonType, Integer>> {\n+    private static final String OCTICON_ARROW = \"\\uf03e\";\n+    private static final String DIALOG_TITLE = \"Select Milestone\";\n+\n+    private final List<PickerMilestone> originalMilestones = new ArrayList<>();\n+    private FlowPane assignedMilestonePane;\n+    private VBox matchingMilestonesPane;\n+    private TextField inputField;\n+    private MilestonePickerState state;\n+\n+    /**\n+     * The issue and the originalMilestones list provided should come from the same repository","path":"src/main/java/ui/components/pickers/MilestonePickerDialog.java","position":32,"original_position":32,"commit_id":"d5660f51a49d60f3585fd186289f2975ae1fc1a3","original_commit_id":"cb60b2986177b29bc36894668ed0ec19367d1abc","user":{"login":"dariusf","id":4328341,"avatar_url":"https://avatars.githubusercontent.com/u/4328341?v=3","gravatar_id":"","url":"https://api.github.com/users/dariusf","html_url":"https://github.com/dariusf","followers_url":"https://api.github.com/users/dariusf/followers","following_url":"https://api.github.com/users/dariusf/following{/other_user}","gists_url":"https://api.github.com/users/dariusf/gists{/gist_id}","starred_url":"https://api.github.com/users/dariusf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dariusf/subscriptions","organizations_url":"https://api.github.com/users/dariusf/orgs","repos_url":"https://api.github.com/users/dariusf/repos","events_url":"https://api.github.com/users/dariusf/events{/privacy}","received_events_url":"https://api.github.com/users/dariusf/received_events","type":"User","site_admin":false},"body":"We could check if their repo ids are equal maybe? That's info we can access from the data we have here.","created_at":"2016-03-21T15:08:58Z","updated_at":"2016-03-21T15:08:58Z","html_url":"https://github.com/HubTurbo/HubTurbo/pull/1352#discussion_r56837797","pull_request_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1352","_links":{"self":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/comments/56837797"},"html":{"href":"https://github.com/HubTurbo/HubTurbo/pull/1352#discussion_r56837797"},"pull_request":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1352"}}},"pull_request":{"url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1352","id":62722927,"html_url":"https://github.com/HubTurbo/HubTurbo/pull/1352","diff_url":"https://github.com/HubTurbo/HubTurbo/pull/1352.diff","patch_url":"https://github.com/HubTurbo/HubTurbo/pull/1352.patch","issue_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/1352","number":1352,"state":"open","locked":false,"title":"Create a Milestone Picker that allows the user to add/remove/modify the milestone of an issue #1286","user":{"login":"m133225","id":12193772,"avatar_url":"https://avatars.githubusercontent.com/u/12193772?v=3","gravatar_id":"","url":"https://api.github.com/users/m133225","html_url":"https://github.com/m133225","followers_url":"https://api.github.com/users/m133225/followers","following_url":"https://api.github.com/users/m133225/following{/other_user}","gists_url":"https://api.github.com/users/m133225/gists{/gist_id}","starred_url":"https://api.github.com/users/m133225/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m133225/subscriptions","organizations_url":"https://api.github.com/users/m133225/orgs","repos_url":"https://api.github.com/users/m133225/repos","events_url":"https://api.github.com/users/m133225/events{/privacy}","received_events_url":"https://api.github.com/users/m133225/received_events","type":"User","site_admin":false},"body":"Fixes #1286.\r\n\r\n<img src='https://cloud.githubusercontent.com/assets/12193772/13721748/ff8a1314-e86a-11e5-8a2b-3e5f663e05f7.gif' width=300\\>\r\n","created_at":"2016-03-14T10:00:40Z","updated_at":"2016-03-21T15:08:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84c0ae658e058acd5e1c19406c21381ef4ae4966","assignee":{"login":"dariusf","id":4328341,"avatar_url":"https://avatars.githubusercontent.com/u/4328341?v=3","gravatar_id":"","url":"https://api.github.com/users/dariusf","html_url":"https://github.com/dariusf","followers_url":"https://api.github.com/users/dariusf/followers","following_url":"https://api.github.com/users/dariusf/following{/other_user}","gists_url":"https://api.github.com/users/dariusf/gists{/gist_id}","starred_url":"https://api.github.com/users/dariusf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dariusf/subscriptions","organizations_url":"https://api.github.com/users/dariusf/orgs","repos_url":"https://api.github.com/users/dariusf/repos","events_url":"https://api.github.com/users/dariusf/events{/privacy}","received_events_url":"https://api.github.com/users/dariusf/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1352/commits","review_comments_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1352/comments","review_comment_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/1352/comments","statuses_url":"https://api.github.com/repos/HubTurbo/HubTurbo/statuses/d5660f51a49d60f3585fd186289f2975ae1fc1a3","head":{"label":"m133225:1286-milestone-picker","ref":"1286-milestone-picker","sha":"d5660f51a49d60f3585fd186289f2975ae1fc1a3","user":{"login":"m133225","id":12193772,"avatar_url":"https://avatars.githubusercontent.com/u/12193772?v=3","gravatar_id":"","url":"https://api.github.com/users/m133225","html_url":"https://github.com/m133225","followers_url":"https://api.github.com/users/m133225/followers","following_url":"https://api.github.com/users/m133225/following{/other_user}","gists_url":"https://api.github.com/users/m133225/gists{/gist_id}","starred_url":"https://api.github.com/users/m133225/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m133225/subscriptions","organizations_url":"https://api.github.com/users/m133225/orgs","repos_url":"https://api.github.com/users/m133225/repos","events_url":"https://api.github.com/users/m133225/events{/privacy}","received_events_url":"https://api.github.com/users/m133225/received_events","type":"User","site_admin":false},"repo":{"id":49404105,"name":"HubTurbo","full_name":"m133225/HubTurbo","owner":{"login":"m133225","id":12193772,"avatar_url":"https://avatars.githubusercontent.com/u/12193772?v=3","gravatar_id":"","url":"https://api.github.com/users/m133225","html_url":"https://github.com/m133225","followers_url":"https://api.github.com/users/m133225/followers","following_url":"https://api.github.com/users/m133225/following{/other_user}","gists_url":"https://api.github.com/users/m133225/gists{/gist_id}","starred_url":"https://api.github.com/users/m133225/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m133225/subscriptions","organizations_url":"https://api.github.com/users/m133225/orgs","repos_url":"https://api.github.com/users/m133225/repos","events_url":"https://api.github.com/users/m133225/events{/privacy}","received_events_url":"https://api.github.com/users/m133225/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/m133225/HubTurbo","description":"A companion to GitHub for your desktop","fork":true,"url":"https://api.github.com/repos/m133225/HubTurbo","forks_url":"https://api.github.com/repos/m133225/HubTurbo/forks","keys_url":"https://api.github.com/repos/m133225/HubTurbo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/m133225/HubTurbo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/m133225/HubTurbo/teams","hooks_url":"https://api.github.com/repos/m133225/HubTurbo/hooks","issue_events_url":"https://api.github.com/repos/m133225/HubTurbo/issues/events{/number}","events_url":"https://api.github.com/repos/m133225/HubTurbo/events","assignees_url":"https://api.github.com/repos/m133225/HubTurbo/assignees{/user}","branches_url":"https://api.github.com/repos/m133225/HubTurbo/branches{/branch}","tags_url":"https://api.github.com/repos/m133225/HubTurbo/tags","blobs_url":"https://api.github.com/repos/m133225/HubTurbo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/m133225/HubTurbo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/m133225/HubTurbo/git/refs{/sha}","trees_url":"https://api.github.com/repos/m133225/HubTurbo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/m133225/HubTurbo/statuses/{sha}","languages_url":"https://api.github.com/repos/m133225/HubTurbo/languages","stargazers_url":"https://api.github.com/repos/m133225/HubTurbo/stargazers","contributors_url":"https://api.github.com/repos/m133225/HubTurbo/contributors","subscribers_url":"https://api.github.com/repos/m133225/HubTurbo/subscribers","subscription_url":"https://api.github.com/repos/m133225/HubTurbo/subscription","commits_url":"https://api.github.com/repos/m133225/HubTurbo/commits{/sha}","git_commits_url":"https://api.github.com/repos/m133225/HubTurbo/git/commits{/sha}","comments_url":"https://api.github.com/repos/m133225/HubTurbo/comments{/number}","issue_comment_url":"https://api.github.com/repos/m133225/HubTurbo/issues/comments{/number}","contents_url":"https://api.github.com/repos/m133225/HubTurbo/contents/{+path}","compare_url":"https://api.github.com/repos/m133225/HubTurbo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/m133225/HubTurbo/merges","archive_url":"https://api.github.com/repos/m133225/HubTurbo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/m133225/HubTurbo/downloads","issues_url":"https://api.github.com/repos/m133225/HubTurbo/issues{/number}","pulls_url":"https://api.github.com/repos/m133225/HubTurbo/pulls{/number}","milestones_url":"https://api.github.com/repos/m133225/HubTurbo/milestones{/number}","notifications_url":"https://api.github.com/repos/m133225/HubTurbo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/m133225/HubTurbo/labels{/name}","releases_url":"https://api.github.com/repos/m133225/HubTurbo/releases{/id}","deployments_url":"https://api.github.com/repos/m133225/HubTurbo/deployments","created_at":"2016-01-11T05:25:10Z","updated_at":"2016-01-11T05:25:13Z","pushed_at":"2016-03-21T14:02:54Z","git_url":"git://github.com/m133225/HubTurbo.git","ssh_url":"git@github.com:m133225/HubTurbo.git","clone_url":"https://github.com/m133225/HubTurbo.git","svn_url":"https://github.com/m133225/HubTurbo","homepage":"http://hubturbo.info","size":133833,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"master"}},"base":{"label":"HubTurbo:master","ref":"master","sha":"94548376f266693ea6a70e22f0a8d7da737adc32","user":{"login":"HubTurbo","id":7955871,"avatar_url":"https://avatars.githubusercontent.com/u/7955871?v=3","gravatar_id":"","url":"https://api.github.com/users/HubTurbo","html_url":"https://github.com/HubTurbo","followers_url":"https://api.github.com/users/HubTurbo/followers","following_url":"https://api.github.com/users/HubTurbo/following{/other_user}","gists_url":"https://api.github.com/users/HubTurbo/gists{/gist_id}","starred_url":"https://api.github.com/users/HubTurbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubTurbo/subscriptions","organizations_url":"https://api.github.com/users/HubTurbo/orgs","repos_url":"https://api.github.com/users/HubTurbo/repos","events_url":"https://api.github.com/users/HubTurbo/events{/privacy}","received_events_url":"https://api.github.com/users/HubTurbo/received_events","type":"Organization","site_admin":false},"repo":{"id":20919534,"name":"HubTurbo","full_name":"HubTurbo/HubTurbo","owner":{"login":"HubTurbo","id":7955871,"avatar_url":"https://avatars.githubusercontent.com/u/7955871?v=3","gravatar_id":"","url":"https://api.github.com/users/HubTurbo","html_url":"https://github.com/HubTurbo","followers_url":"https://api.github.com/users/HubTurbo/followers","following_url":"https://api.github.com/users/HubTurbo/following{/other_user}","gists_url":"https://api.github.com/users/HubTurbo/gists{/gist_id}","starred_url":"https://api.github.com/users/HubTurbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubTurbo/subscriptions","organizations_url":"https://api.github.com/users/HubTurbo/orgs","repos_url":"https://api.github.com/users/HubTurbo/repos","events_url":"https://api.github.com/users/HubTurbo/events{/privacy}","received_events_url":"https://api.github.com/users/HubTurbo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HubTurbo/HubTurbo","description":"A companion to GitHub for your desktop","fork":false,"url":"https://api.github.com/repos/HubTurbo/HubTurbo","forks_url":"https://api.github.com/repos/HubTurbo/HubTurbo/forks","keys_url":"https://api.github.com/repos/HubTurbo/HubTurbo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HubTurbo/HubTurbo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HubTurbo/HubTurbo/teams","hooks_url":"https://api.github.com/repos/HubTurbo/HubTurbo/hooks","issue_events_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/events{/number}","events_url":"https://api.github.com/repos/HubTurbo/HubTurbo/events","assignees_url":"https://api.github.com/repos/HubTurbo/HubTurbo/assignees{/user}","branches_url":"https://api.github.com/repos/HubTurbo/HubTurbo/branches{/branch}","tags_url":"https://api.github.com/repos/HubTurbo/HubTurbo/tags","blobs_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/refs{/sha}","trees_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HubTurbo/HubTurbo/statuses/{sha}","languages_url":"https://api.github.com/repos/HubTurbo/HubTurbo/languages","stargazers_url":"https://api.github.com/repos/HubTurbo/HubTurbo/stargazers","contributors_url":"https://api.github.com/repos/HubTurbo/HubTurbo/contributors","subscribers_url":"https://api.github.com/repos/HubTurbo/HubTurbo/subscribers","subscription_url":"https://api.github.com/repos/HubTurbo/HubTurbo/subscription","commits_url":"https://api.github.com/repos/HubTurbo/HubTurbo/commits{/sha}","git_commits_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/commits{/sha}","comments_url":"https://api.github.com/repos/HubTurbo/HubTurbo/comments{/number}","issue_comment_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/comments{/number}","contents_url":"https://api.github.com/repos/HubTurbo/HubTurbo/contents/{+path}","compare_url":"https://api.github.com/repos/HubTurbo/HubTurbo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HubTurbo/HubTurbo/merges","archive_url":"https://api.github.com/repos/HubTurbo/HubTurbo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HubTurbo/HubTurbo/downloads","issues_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues{/number}","pulls_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls{/number}","milestones_url":"https://api.github.com/repos/HubTurbo/HubTurbo/milestones{/number}","notifications_url":"https://api.github.com/repos/HubTurbo/HubTurbo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HubTurbo/HubTurbo/labels{/name}","releases_url":"https://api.github.com/repos/HubTurbo/HubTurbo/releases{/id}","deployments_url":"https://api.github.com/repos/HubTurbo/HubTurbo/deployments","created_at":"2014-06-17T10:35:39Z","updated_at":"2016-03-20T09:12:33Z","pushed_at":"2016-03-21T15:07:34Z","git_url":"git://github.com/HubTurbo/HubTurbo.git","ssh_url":"git@github.com:HubTurbo/HubTurbo.git","clone_url":"https://github.com/HubTurbo/HubTurbo.git","svn_url":"https://github.com/HubTurbo/HubTurbo","homepage":"http://hubturbo.info","size":135506,"stargazers_count":16,"watchers_count":16,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":33,"mirror_url":null,"open_issues_count":193,"forks":33,"open_issues":193,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1352"},"html":{"href":"https://github.com/HubTurbo/HubTurbo/pull/1352"},"issue":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/1352"},"comments":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/1352/comments"},"review_comments":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1352/comments"},"review_comment":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1352/commits"},"statuses":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/statuses/d5660f51a49d60f3585fd186289f2975ae1fc1a3"}}}}