GitHub PullRequestReviewCommentEvent at 2014-10-06 21:07:50
Repository: CKAN
Actor: eggrobin
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/KSP-CKAN/CKAN/pulls/comments/18485673","id":18485673,"diff_hunk":"@@ -0,0 +1,40 @@\n+namespace CKAN {\n+    using System;\n+    using System.Collections.Generic;\n+    using System.Linq;\n+\n+    /// <summary>\n+    /// Utility class to track version -> module mappings\n+    /// </summary>\n+    public class AvailableModule {\n+        public Dictionary<string, CkanModule> versions = new Dictionary<string, CkanModule> ();\n+\n+        public AvailableModule() { }\n+\n+        public void Add(CkanModule module) {\n+            versions [module.version] = module;\n+        }\n+\n+        /// <summary>\n+        /// Return the most recent release of a module.\n+        /// </summary>\n+        public CkanModule Latest() {\n+            string[] version_strings = versions.Keys.ToArray ();\n+\n+            List<Version> all_versions = new List<Version> ();\n+\n+            // Convert our simple strings into a list of versions\n+            foreach (string v in version_strings) {\n+                all_versions.Add (new Version (v));\n+            }\n+\n+            // Now, sort them...\n+\n+            all_versions.Sort();\n+\n+            // Return the last one!","path":"CKAN/CKAN/AvailableModule.cs","position":35,"original_position":35,"commit_id":"f3c208714f08c9a3d766cb0fff360e29044030da","original_commit_id":"f3c208714f08c9a3d766cb0fff360e29044030da","user":{"login":"eggrobin","id":2284290,"avatar_url":"https://avatars.githubusercontent.com/u/2284290?v=2","gravatar_id":"","url":"https://api.github.com/users/eggrobin","html_url":"https://github.com/eggrobin","followers_url":"https://api.github.com/users/eggrobin/followers","following_url":"https://api.github.com/users/eggrobin/following{/other_user}","gists_url":"https://api.github.com/users/eggrobin/gists{/gist_id}","starred_url":"https://api.github.com/users/eggrobin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eggrobin/subscriptions","organizations_url":"https://api.github.com/users/eggrobin/orgs","repos_url":"https://api.github.com/users/eggrobin/repos","events_url":"https://api.github.com/users/eggrobin/events{/privacy}","received_events_url":"https://api.github.com/users/eggrobin/received_events","type":"User","site_admin":false},"body":"No need to comment, this code is transparent.","created_at":"2014-10-06T21:07:50Z","updated_at":"2014-10-06T21:07:50Z","html_url":"https://github.com/KSP-CKAN/CKAN/pull/43#discussion_r18485673","pull_request_url":"https://api.github.com/repos/KSP-CKAN/CKAN/pulls/43","_links":{"self":{"href":"https://api.github.com/repos/KSP-CKAN/CKAN/pulls/comments/18485673"},"html":{"href":"https://github.com/KSP-CKAN/CKAN/pull/43#discussion_r18485673"},"pull_request":{"href":"https://api.github.com/repos/KSP-CKAN/CKAN/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/KSP-CKAN/CKAN/pulls/43","id":22292267,"html_url":"https://github.com/KSP-CKAN/CKAN/pull/43","diff_url":"https://github.com/KSP-CKAN/CKAN/pull/43.diff","patch_url":"https://github.com/KSP-CKAN/CKAN/pull/43.patch","issue_url":"https://api.github.com/repos/KSP-CKAN/CKAN/issues/43","number":43,"state":"open","locked":false,"title":"Internet installation now works","user":{"login":"pjf","id":12072,"avatar_url":"https://avatars.githubusercontent.com/u/12072?v=2","gravatar_id":"","url":"https://api.github.com/users/pjf","html_url":"https://github.com/pjf","followers_url":"https://api.github.com/users/pjf/followers","following_url":"https://api.github.com/users/pjf/following{/other_user}","gists_url":"https://api.github.com/users/pjf/gists{/gist_id}","starred_url":"https://api.github.com/users/pjf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjf/subscriptions","organizations_url":"https://api.github.com/users/pjf/orgs","repos_url":"https://api.github.com/users/pjf/repos","events_url":"https://api.github.com/users/pjf/events{/privacy}","received_events_url":"https://api.github.com/users/pjf/received_events","type":"User","site_admin":false},"body":"(Bundles and depends upon my last pull request).\n\nYou can now:\n\n    ckan update\n    ckan install kOS\n\nand it works! :)\n\nCloses #33\nCloses #34\nCloses #42","created_at":"2014-10-06T15:31:48Z","updated_at":"2014-10-06T21:07:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"be55926cca99ab40b99c591cecd89e3de84b75f2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/KSP-CKAN/CKAN/pulls/43/commits","review_comments_url":"https://api.github.com/repos/KSP-CKAN/CKAN/pulls/43/comments","review_comment_url":"https://api.github.com/repos/KSP-CKAN/CKAN/pulls/comments/{number}","comments_url":"https://api.github.com/repos/KSP-CKAN/CKAN/issues/43/comments","statuses_url":"https://api.github.com/repos/KSP-CKAN/CKAN/statuses/f3c208714f08c9a3d766cb0fff360e29044030da","head":{"label":"pjf:ckan_install","ref":"ckan_install","sha":"f3c208714f08c9a3d766cb0fff360e29044030da","user":{"login":"pjf","id":12072,"avatar_url":"https://avatars.githubusercontent.com/u/12072?v=2","gravatar_id":"","url":"https://api.github.com/users/pjf","html_url":"https://github.com/pjf","followers_url":"https://api.github.com/users/pjf/followers","following_url":"https://api.github.com/users/pjf/following{/other_user}","gists_url":"https://api.github.com/users/pjf/gists{/gist_id}","starred_url":"https://api.github.com/users/pjf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjf/subscriptions","organizations_url":"https://api.github.com/users/pjf/orgs","repos_url":"https://api.github.com/users/pjf/repos","events_url":"https://api.github.com/users/pjf/events{/privacy}","received_events_url":"https://api.github.com/users/pjf/received_events","type":"User","site_admin":false},"repo":{"id":24840862,"name":"CKAN","full_name":"pjf/CKAN","owner":{"login":"pjf","id":12072,"avatar_url":"https://avatars.githubusercontent.com/u/12072?v=2","gravatar_id":"","url":"https://api.github.com/users/pjf","html_url":"https://github.com/pjf","followers_url":"https://api.github.com/users/pjf/followers","following_url":"https://api.github.com/users/pjf/following{/other_user}","gists_url":"https://api.github.com/users/pjf/gists{/gist_id}","starred_url":"https://api.github.com/users/pjf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjf/subscriptions","organizations_url":"https://api.github.com/users/pjf/orgs","repos_url":"https://api.github.com/users/pjf/repos","events_url":"https://api.github.com/users/pjf/events{/privacy}","received_events_url":"https://api.github.com/users/pjf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pjf/CKAN","description":"The Comprehensive Kerbal Archive Network","fork":true,"url":"https://api.github.com/repos/pjf/CKAN","forks_url":"https://api.github.com/repos/pjf/CKAN/forks","keys_url":"https://api.github.com/repos/pjf/CKAN/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pjf/CKAN/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pjf/CKAN/teams","hooks_url":"https://api.github.com/repos/pjf/CKAN/hooks","issue_events_url":"https://api.github.com/repos/pjf/CKAN/issues/events{/number}","events_url":"https://api.github.com/repos/pjf/CKAN/events","assignees_url":"https://api.github.com/repos/pjf/CKAN/assignees{/user}","branches_url":"https://api.github.com/repos/pjf/CKAN/branches{/branch}","tags_url":"https://api.github.com/repos/pjf/CKAN/tags","blobs_url":"https://api.github.com/repos/pjf/CKAN/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pjf/CKAN/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pjf/CKAN/git/refs{/sha}","trees_url":"https://api.github.com/repos/pjf/CKAN/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pjf/CKAN/statuses/{sha}","languages_url":"https://api.github.com/repos/pjf/CKAN/languages","stargazers_url":"https://api.github.com/repos/pjf/CKAN/stargazers","contributors_url":"https://api.github.com/repos/pjf/CKAN/contributors","subscribers_url":"https://api.github.com/repos/pjf/CKAN/subscribers","subscription_url":"https://api.github.com/repos/pjf/CKAN/subscription","commits_url":"https://api.github.com/repos/pjf/CKAN/commits{/sha}","git_commits_url":"https://api.github.com/repos/pjf/CKAN/git/commits{/sha}","comments_url":"https://api.github.com/repos/pjf/CKAN/comments{/number}","issue_comment_url":"https://api.github.com/repos/pjf/CKAN/issues/comments/{number}","contents_url":"https://api.github.com/repos/pjf/CKAN/contents/{+path}","compare_url":"https://api.github.com/repos/pjf/CKAN/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pjf/CKAN/merges","archive_url":"https://api.github.com/repos/pjf/CKAN/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pjf/CKAN/downloads","issues_url":"https://api.github.com/repos/pjf/CKAN/issues{/number}","pulls_url":"https://api.github.com/repos/pjf/CKAN/pulls{/number}","milestones_url":"https://api.github.com/repos/pjf/CKAN/milestones{/number}","notifications_url":"https://api.github.com/repos/pjf/CKAN/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pjf/CKAN/labels{/name}","releases_url":"https://api.github.com/repos/pjf/CKAN/releases{/id}","created_at":"2014-10-06T09:54:48Z","updated_at":"2014-10-05T06:38:14Z","pushed_at":"2014-10-06T20:51:37Z","git_url":"git://github.com/pjf/CKAN.git","ssh_url":"git@github.com:pjf/CKAN.git","clone_url":"https://github.com/pjf/CKAN.git","svn_url":"https://github.com/pjf/CKAN","homepage":"","size":6182,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"KSP-CKAN:master","ref":"master","sha":"0321fcf0b929c3aea0b4491a45a60995abfcc4ef","user":{"login":"KSP-CKAN","id":9023970,"avatar_url":"https://avatars.githubusercontent.com/u/9023970?v=2","gravatar_id":"","url":"https://api.github.com/users/KSP-CKAN","html_url":"https://github.com/KSP-CKAN","followers_url":"https://api.github.com/users/KSP-CKAN/followers","following_url":"https://api.github.com/users/KSP-CKAN/following{/other_user}","gists_url":"https://api.github.com/users/KSP-CKAN/gists{/gist_id}","starred_url":"https://api.github.com/users/KSP-CKAN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KSP-CKAN/subscriptions","organizations_url":"https://api.github.com/users/KSP-CKAN/orgs","repos_url":"https://api.github.com/users/KSP-CKAN/repos","events_url":"https://api.github.com/users/KSP-CKAN/events{/privacy}","received_events_url":"https://api.github.com/users/KSP-CKAN/received_events","type":"Organization","site_admin":false},"repo":{"id":23050594,"name":"CKAN","full_name":"KSP-CKAN/CKAN","owner":{"login":"KSP-CKAN","id":9023970,"avatar_url":"https://avatars.githubusercontent.com/u/9023970?v=2","gravatar_id":"","url":"https://api.github.com/users/KSP-CKAN","html_url":"https://github.com/KSP-CKAN","followers_url":"https://api.github.com/users/KSP-CKAN/followers","following_url":"https://api.github.com/users/KSP-CKAN/following{/other_user}","gists_url":"https://api.github.com/users/KSP-CKAN/gists{/gist_id}","starred_url":"https://api.github.com/users/KSP-CKAN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KSP-CKAN/subscriptions","organizations_url":"https://api.github.com/users/KSP-CKAN/orgs","repos_url":"https://api.github.com/users/KSP-CKAN/repos","events_url":"https://api.github.com/users/KSP-CKAN/events{/privacy}","received_events_url":"https://api.github.com/users/KSP-CKAN/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KSP-CKAN/CKAN","description":"The Comprehensive Kerbal Archive Network","fork":false,"url":"https://api.github.com/repos/KSP-CKAN/CKAN","forks_url":"https://api.github.com/repos/KSP-CKAN/CKAN/forks","keys_url":"https://api.github.com/repos/KSP-CKAN/CKAN/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KSP-CKAN/CKAN/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KSP-CKAN/CKAN/teams","hooks_url":"https://api.github.com/repos/KSP-CKAN/CKAN/hooks","issue_events_url":"https://api.github.com/repos/KSP-CKAN/CKAN/issues/events{/number}","events_url":"https://api.github.com/repos/KSP-CKAN/CKAN/events","assignees_url":"https://api.github.com/repos/KSP-CKAN/CKAN/assignees{/user}","branches_url":"https://api.github.com/repos/KSP-CKAN/CKAN/branches{/branch}","tags_url":"https://api.github.com/repos/KSP-CKAN/CKAN/tags","blobs_url":"https://api.github.com/repos/KSP-CKAN/CKAN/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KSP-CKAN/CKAN/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KSP-CKAN/CKAN/git/refs{/sha}","trees_url":"https://api.github.com/repos/KSP-CKAN/CKAN/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KSP-CKAN/CKAN/statuses/{sha}","languages_url":"https://api.github.com/repos/KSP-CKAN/CKAN/languages","stargazers_url":"https://api.github.com/repos/KSP-CKAN/CKAN/stargazers","contributors_url":"https://api.github.com/repos/KSP-CKAN/CKAN/contributors","subscribers_url":"https://api.github.com/repos/KSP-CKAN/CKAN/subscribers","subscription_url":"https://api.github.com/repos/KSP-CKAN/CKAN/subscription","commits_url":"https://api.github.com/repos/KSP-CKAN/CKAN/commits{/sha}","git_commits_url":"https://api.github.com/repos/KSP-CKAN/CKAN/git/commits{/sha}","comments_url":"https://api.github.com/repos/KSP-CKAN/CKAN/comments{/number}","issue_comment_url":"https://api.github.com/repos/KSP-CKAN/CKAN/issues/comments/{number}","contents_url":"https://api.github.com/repos/KSP-CKAN/CKAN/contents/{+path}","compare_url":"https://api.github.com/repos/KSP-CKAN/CKAN/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KSP-CKAN/CKAN/merges","archive_url":"https://api.github.com/repos/KSP-CKAN/CKAN/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KSP-CKAN/CKAN/downloads","issues_url":"https://api.github.com/repos/KSP-CKAN/CKAN/issues{/number}","pulls_url":"https://api.github.com/repos/KSP-CKAN/CKAN/pulls{/number}","milestones_url":"https://api.github.com/repos/KSP-CKAN/CKAN/milestones{/number}","notifications_url":"https://api.github.com/repos/KSP-CKAN/CKAN/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KSP-CKAN/CKAN/labels{/name}","releases_url":"https://api.github.com/repos/KSP-CKAN/CKAN/releases{/id}","created_at":"2014-08-17T21:11:54Z","updated_at":"2014-10-05T06:38:14Z","pushed_at":"2014-10-06T10:17:13Z","git_url":"git://github.com/KSP-CKAN/CKAN.git","ssh_url":"git@github.com:KSP-CKAN/CKAN.git","clone_url":"https://github.com/KSP-CKAN/CKAN.git","svn_url":"https://github.com/KSP-CKAN/CKAN","homepage":"","size":6182,"stargazers_count":12,"watchers_count":12,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":23,"forks":5,"open_issues":23,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KSP-CKAN/CKAN/pulls/43"},"html":{"href":"https://github.com/KSP-CKAN/CKAN/pull/43"},"issue":{"href":"https://api.github.com/repos/KSP-CKAN/CKAN/issues/43"},"comments":{"href":"https://api.github.com/repos/KSP-CKAN/CKAN/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/KSP-CKAN/CKAN/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/KSP-CKAN/CKAN/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/KSP-CKAN/CKAN/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/KSP-CKAN/CKAN/statuses/f3c208714f08c9a3d766cb0fff360e29044030da"}}}}