{"action":"closed","number":20,"pull_request":{"url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/pulls/20","id":45290313,"html_url":"https://github.com/picoCTF/picoCTF-shell-manager/pull/20","diff_url":"https://github.com/picoCTF/picoCTF-shell-manager/pull/20.diff","patch_url":"https://github.com/picoCTF/picoCTF-shell-manager/pull/20.patch","issue_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/issues/20","number":20,"state":"closed","locked":false,"title":"Fix Port Re-assignment Bug","user":{"login":"tim-becker","id":4476584,"avatar_url":"https://avatars.githubusercontent.com/u/4476584?v=3","gravatar_id":"","url":"https://api.github.com/users/tim-becker","html_url":"https://github.com/tim-becker","followers_url":"https://api.github.com/users/tim-becker/followers","following_url":"https://api.github.com/users/tim-becker/following{/other_user}","gists_url":"https://api.github.com/users/tim-becker/gists{/gist_id}","starred_url":"https://api.github.com/users/tim-becker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tim-becker/subscriptions","organizations_url":"https://api.github.com/users/tim-becker/orgs","repos_url":"https://api.github.com/users/tim-becker/repos","events_url":"https://api.github.com/users/tim-becker/events{/privacy}","received_events_url":"https://api.github.com/users/tim-becker/received_events","type":"User","site_admin":false},"body":"This fixes #19.\r\n\r\nThis bug was a result of two things:\r\n* We only stored the `iid` in the output json, so we were not correctly identifying instances.\r\n* We used `is` for string comparison of the problem name, which does not work as I expected.","created_at":"2015-09-17T13:33:16Z","updated_at":"2015-09-17T16:13:27Z","closed_at":"2015-09-17T16:13:27Z","merged_at":"2015-09-17T16:13:27Z","merge_commit_sha":"e6dfa01ca330a48583cf06fea9b88305d05737fd","assignee":{"login":"cganas","id":5132014,"avatar_url":"https://avatars.githubusercontent.com/u/5132014?v=3","gravatar_id":"","url":"https://api.github.com/users/cganas","html_url":"https://github.com/cganas","followers_url":"https://api.github.com/users/cganas/followers","following_url":"https://api.github.com/users/cganas/following{/other_user}","gists_url":"https://api.github.com/users/cganas/gists{/gist_id}","starred_url":"https://api.github.com/users/cganas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cganas/subscriptions","organizations_url":"https://api.github.com/users/cganas/orgs","repos_url":"https://api.github.com/users/cganas/repos","events_url":"https://api.github.com/users/cganas/events{/privacy}","received_events_url":"https://api.github.com/users/cganas/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/pulls/20/commits","review_comments_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/pulls/20/comments","review_comment_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/issues/20/comments","statuses_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/statuses/ba33e0a9d9b6046b01b64142b89118eefeedf5c1","head":{"label":"picoCTF:port_assignment","ref":"port_assignment","sha":"ba33e0a9d9b6046b01b64142b89118eefeedf5c1","user":{"login":"picoCTF","id":5315773,"avatar_url":"https://avatars.githubusercontent.com/u/5315773?v=3","gravatar_id":"","url":"https://api.github.com/users/picoCTF","html_url":"https://github.com/picoCTF","followers_url":"https://api.github.com/users/picoCTF/followers","following_url":"https://api.github.com/users/picoCTF/following{/other_user}","gists_url":"https://api.github.com/users/picoCTF/gists{/gist_id}","starred_url":"https://api.github.com/users/picoCTF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/picoCTF/subscriptions","organizations_url":"https://api.github.com/users/picoCTF/orgs","repos_url":"https://api.github.com/users/picoCTF/repos","events_url":"https://api.github.com/users/picoCTF/events{/privacy}","received_events_url":"https://api.github.com/users/picoCTF/received_events","type":"Organization","site_admin":false},"repo":{"id":41928819,"name":"picoCTF-shell-manager","full_name":"picoCTF/picoCTF-shell-manager","owner":{"login":"picoCTF","id":5315773,"avatar_url":"https://avatars.githubusercontent.com/u/5315773?v=3","gravatar_id":"","url":"https://api.github.com/users/picoCTF","html_url":"https://github.com/picoCTF","followers_url":"https://api.github.com/users/picoCTF/followers","following_url":"https://api.github.com/users/picoCTF/following{/other_user}","gists_url":"https://api.github.com/users/picoCTF/gists{/gist_id}","starred_url":"https://api.github.com/users/picoCTF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/picoCTF/subscriptions","organizations_url":"https://api.github.com/users/picoCTF/orgs","repos_url":"https://api.github.com/users/picoCTF/repos","events_url":"https://api.github.com/users/picoCTF/events{/privacy}","received_events_url":"https://api.github.com/users/picoCTF/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/picoCTF/picoCTF-shell-manager","description":"","fork":false,"url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager","forks_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/forks","keys_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/teams","hooks_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/hooks","issue_events_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/issues/events{/number}","events_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/events","assignees_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/assignees{/user}","branches_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/branches{/branch}","tags_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/tags","blobs_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/languages","stargazers_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/stargazers","contributors_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/contributors","subscribers_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/subscribers","subscription_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/subscription","commits_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/contents/{+path}","compare_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/merges","archive_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/downloads","issues_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/issues{/number}","pulls_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/labels{/name}","releases_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/releases{/id}","created_at":"2015-09-04T17:27:00Z","updated_at":"2015-09-16T06:49:59Z","pushed_at":"2015-09-17T16:13:27Z","git_url":"git://github.com/picoCTF/picoCTF-shell-manager.git","ssh_url":"git@github.com:picoCTF/picoCTF-shell-manager.git","clone_url":"https://github.com/picoCTF/picoCTF-shell-manager.git","svn_url":"https://github.com/picoCTF/picoCTF-shell-manager","homepage":null,"size":380,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":8,"forks":3,"open_issues":8,"watchers":1,"default_branch":"master"}},"base":{"label":"picoCTF:master","ref":"master","sha":"2260af9678b01f629f16efaafd2a79e4cc1096ce","user":{"login":"picoCTF","id":5315773,"avatar_url":"https://avatars.githubusercontent.com/u/5315773?v=3","gravatar_id":"","url":"https://api.github.com/users/picoCTF","html_url":"https://github.com/picoCTF","followers_url":"https://api.github.com/users/picoCTF/followers","following_url":"https://api.github.com/users/picoCTF/following{/other_user}","gists_url":"https://api.github.com/users/picoCTF/gists{/gist_id}","starred_url":"https://api.github.com/users/picoCTF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/picoCTF/subscriptions","organizations_url":"https://api.github.com/users/picoCTF/orgs","repos_url":"https://api.github.com/users/picoCTF/repos","events_url":"https://api.github.com/users/picoCTF/events{/privacy}","received_events_url":"https://api.github.com/users/picoCTF/received_events","type":"Organization","site_admin":false},"repo":{"id":41928819,"name":"picoCTF-shell-manager","full_name":"picoCTF/picoCTF-shell-manager","owner":{"login":"picoCTF","id":5315773,"avatar_url":"https://avatars.githubusercontent.com/u/5315773?v=3","gravatar_id":"","url":"https://api.github.com/users/picoCTF","html_url":"https://github.com/picoCTF","followers_url":"https://api.github.com/users/picoCTF/followers","following_url":"https://api.github.com/users/picoCTF/following{/other_user}","gists_url":"https://api.github.com/users/picoCTF/gists{/gist_id}","starred_url":"https://api.github.com/users/picoCTF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/picoCTF/subscriptions","organizations_url":"https://api.github.com/users/picoCTF/orgs","repos_url":"https://api.github.com/users/picoCTF/repos","events_url":"https://api.github.com/users/picoCTF/events{/privacy}","received_events_url":"https://api.github.com/users/picoCTF/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/picoCTF/picoCTF-shell-manager","description":"","fork":false,"url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager","forks_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/forks","keys_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/teams","hooks_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/hooks","issue_events_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/issues/events{/number}","events_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/events","assignees_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/assignees{/user}","branches_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/branches{/branch}","tags_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/tags","blobs_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/languages","stargazers_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/stargazers","contributors_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/contributors","subscribers_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/subscribers","subscription_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/subscription","commits_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/contents/{+path}","compare_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/merges","archive_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/downloads","issues_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/issues{/number}","pulls_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/labels{/name}","releases_url":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/releases{/id}","created_at":"2015-09-04T17:27:00Z","updated_at":"2015-09-16T06:49:59Z","pushed_at":"2015-09-17T16:13:27Z","git_url":"git://github.com/picoCTF/picoCTF-shell-manager.git","ssh_url":"git@github.com:picoCTF/picoCTF-shell-manager.git","clone_url":"https://github.com/picoCTF/picoCTF-shell-manager.git","svn_url":"https://github.com/picoCTF/picoCTF-shell-manager","homepage":null,"size":380,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":8,"forks":3,"open_issues":8,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/pulls/20"},"html":{"href":"https://github.com/picoCTF/picoCTF-shell-manager/pull/20"},"issue":{"href":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/issues/20"},"comments":{"href":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/picoCTF/picoCTF-shell-manager/statuses/ba33e0a9d9b6046b01b64142b89118eefeedf5c1"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"royragsdale","id":593382,"avatar_url":"https://avatars.githubusercontent.com/u/593382?v=3","gravatar_id":"","url":"https://api.github.com/users/royragsdale","html_url":"https://github.com/royragsdale","followers_url":"https://api.github.com/users/royragsdale/followers","following_url":"https://api.github.com/users/royragsdale/following{/other_user}","gists_url":"https://api.github.com/users/royragsdale/gists{/gist_id}","starred_url":"https://api.github.com/users/royragsdale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/royragsdale/subscriptions","organizations_url":"https://api.github.com/users/royragsdale/orgs","repos_url":"https://api.github.com/users/royragsdale/repos","events_url":"https://api.github.com/users/royragsdale/events{/privacy}","received_events_url":"https://api.github.com/users/royragsdale/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":2,"changed_files":1}}