{"action":"created","comment":{"url":"https://api.github.com/repos/rock-core/base-scripts/pulls/comments/27032034","id":27032034,"diff_hunk":"@@ -0,0 +1,224 @@\n+require 'thor'\n+require 'autoproj'\n+require 'rock'\n+require 'rock/cli/release_admin'\n+\n+module Rock\n+    module CLI\n+        # Management of releases from the point of view of the user\n+        #\n+        # The Rock scheme here is to store all release info in the common buildconf\n+        # repository. Each release has its own tag, and within the commit pointed-to\n+        # by the tag the files overrides.d/80-release.* contain the necessary\n+        # information:\n+        #    overrides.d/80-release.md: release notes (in markdown format)\n+        #    overrides.d/80-release.package_sets.yml: version information for the package sets\n+        #    overrides.d/80-release.packages.yml: version information for the packages\n+        #\n+        class Release < Thor\n+            # VCS information where the Rock release information is stored\n+            ROCK_RELEASE_INFO = Hash[\n+                'github' => 'rock-core/buildconf',\n+                'branch' => 'releases']\n+\n+            RELEASE_NOTES    = \"RELEASE_NOTES.md\"\n+            RELEASE_VERSIONS = \"overrides.d/25-release.yml\"\n+\n+            attr_reader :config\n+            attr_reader :config_dir\n+            attr_reader :package\n+            attr_reader :importer\n+\n+            class InvalidReleaseName < Autobuild::PackageException; end\n+\n+            def initialize(*args)\n+                super\n+\n+                Autoproj.load_config\n+                Autoproj.silent do\n+                    require 'autoproj/gitorious'","path":"lib/rock/cli/release.rb","position":39,"original_position":39,"commit_id":"0a15279084a7092deacadeece560f818cc744a7a","original_commit_id":"0a15279084a7092deacadeece560f818cc744a7a","user":{"login":"marvin2k","id":226794,"avatar_url":"https://avatars.githubusercontent.com/u/226794?v=3","gravatar_id":"","url":"https://api.github.com/users/marvin2k","html_url":"https://github.com/marvin2k","followers_url":"https://api.github.com/users/marvin2k/followers","following_url":"https://api.github.com/users/marvin2k/following{/other_user}","gists_url":"https://api.github.com/users/marvin2k/gists{/gist_id}","starred_url":"https://api.github.com/users/marvin2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marvin2k/subscriptions","organizations_url":"https://api.github.com/users/marvin2k/orgs","repos_url":"https://api.github.com/users/marvin2k/repos","events_url":"https://api.github.com/users/marvin2k/events{/privacy}","received_events_url":"https://api.github.com/users/marvin2k/received_events","type":"User","site_admin":false},"body":"gitorious? I hope this is legacy code?","created_at":"2015-03-24T14:27:06Z","updated_at":"2015-03-24T14:27:06Z","html_url":"https://github.com/rock-core/base-scripts/pull/11#discussion_r27032034","pull_request_url":"https://api.github.com/repos/rock-core/base-scripts/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/rock-core/base-scripts/pulls/comments/27032034"},"html":{"href":"https://github.com/rock-core/base-scripts/pull/11#discussion_r27032034"},"pull_request":{"href":"https://api.github.com/repos/rock-core/base-scripts/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/rock-core/base-scripts/pulls/11","id":31769146,"html_url":"https://github.com/rock-core/base-scripts/pull/11","diff_url":"https://github.com/rock-core/base-scripts/pull/11.diff","patch_url":"https://github.com/rock-core/base-scripts/pull/11.patch","issue_url":"https://api.github.com/repos/rock-core/base-scripts/issues/11","number":11,"state":"open","locked":false,"title":"Create the rock-release tool","user":{"login":"doudou","id":292,"avatar_url":"https://avatars.githubusercontent.com/u/292?v=3","gravatar_id":"","url":"https://api.github.com/users/doudou","html_url":"https://github.com/doudou","followers_url":"https://api.github.com/users/doudou/followers","following_url":"https://api.github.com/users/doudou/following{/other_user}","gists_url":"https://api.github.com/users/doudou/gists{/gist_id}","starred_url":"https://api.github.com/users/doudou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doudou/subscriptions","organizations_url":"https://api.github.com/users/doudou/orgs","repos_url":"https://api.github.com/users/doudou/repos","events_url":"https://api.github.com/users/doudou/events{/privacy}","received_events_url":"https://api.github.com/users/doudou/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-23T20:10:22Z","updated_at":"2015-03-24T14:27:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ba9393152e207e5fc31770c5e1095ad2bb46bfff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rock-core/base-scripts/pulls/11/commits","review_comments_url":"https://api.github.com/repos/rock-core/base-scripts/pulls/11/comments","review_comment_url":"https://api.github.com/repos/rock-core/base-scripts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rock-core/base-scripts/issues/11/comments","statuses_url":"https://api.github.com/repos/rock-core/base-scripts/statuses/0a15279084a7092deacadeece560f818cc744a7a","head":{"label":"rock-core:rock-release","ref":"rock-release","sha":"0a15279084a7092deacadeece560f818cc744a7a","user":{"login":"rock-core","id":6654878,"avatar_url":"https://avatars.githubusercontent.com/u/6654878?v=3","gravatar_id":"","url":"https://api.github.com/users/rock-core","html_url":"https://github.com/rock-core","followers_url":"https://api.github.com/users/rock-core/followers","following_url":"https://api.github.com/users/rock-core/following{/other_user}","gists_url":"https://api.github.com/users/rock-core/gists{/gist_id}","starred_url":"https://api.github.com/users/rock-core/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rock-core/subscriptions","organizations_url":"https://api.github.com/users/rock-core/orgs","repos_url":"https://api.github.com/users/rock-core/repos","events_url":"https://api.github.com/users/rock-core/events{/privacy}","received_events_url":"https://api.github.com/users/rock-core/received_events","type":"Organization","site_admin":false},"repo":{"id":19274613,"name":"base-scripts","full_name":"rock-core/base-scripts","owner":{"login":"rock-core","id":6654878,"avatar_url":"https://avatars.githubusercontent.com/u/6654878?v=3","gravatar_id":"","url":"https://api.github.com/users/rock-core","html_url":"https://github.com/rock-core","followers_url":"https://api.github.com/users/rock-core/followers","following_url":"https://api.github.com/users/rock-core/following{/other_user}","gists_url":"https://api.github.com/users/rock-core/gists{/gist_id}","starred_url":"https://api.github.com/users/rock-core/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rock-core/subscriptions","organizations_url":"https://api.github.com/users/rock-core/orgs","repos_url":"https://api.github.com/users/rock-core/repos","events_url":"https://api.github.com/users/rock-core/events{/privacy}","received_events_url":"https://api.github.com/users/rock-core/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rock-core/base-scripts","description":"Scripts to interact with a Rock installation","fork":false,"url":"https://api.github.com/repos/rock-core/base-scripts","forks_url":"https://api.github.com/repos/rock-core/base-scripts/forks","keys_url":"https://api.github.com/repos/rock-core/base-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rock-core/base-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rock-core/base-scripts/teams","hooks_url":"https://api.github.com/repos/rock-core/base-scripts/hooks","issue_events_url":"https://api.github.com/repos/rock-core/base-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/rock-core/base-scripts/events","assignees_url":"https://api.github.com/repos/rock-core/base-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/rock-core/base-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/rock-core/base-scripts/tags","blobs_url":"https://api.github.com/repos/rock-core/base-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rock-core/base-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rock-core/base-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/rock-core/base-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rock-core/base-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/rock-core/base-scripts/languages","stargazers_url":"https://api.github.com/repos/rock-core/base-scripts/stargazers","contributors_url":"https://api.github.com/repos/rock-core/base-scripts/contributors","subscribers_url":"https://api.github.com/repos/rock-core/base-scripts/subscribers","subscription_url":"https://api.github.com/repos/rock-core/base-scripts/subscription","commits_url":"https://api.github.com/repos/rock-core/base-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/rock-core/base-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/rock-core/base-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/rock-core/base-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/rock-core/base-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/rock-core/base-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rock-core/base-scripts/merges","archive_url":"https://api.github.com/repos/rock-core/base-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rock-core/base-scripts/downloads","issues_url":"https://api.github.com/repos/rock-core/base-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/rock-core/base-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/rock-core/base-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/rock-core/base-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rock-core/base-scripts/labels{/name}","releases_url":"https://api.github.com/repos/rock-core/base-scripts/releases{/id}","created_at":"2014-04-29T11:50:14Z","updated_at":"2015-02-04T16:39:26Z","pushed_at":"2015-03-23T20:10:22Z","git_url":"git://github.com/rock-core/base-scripts.git","ssh_url":"git@github.com:rock-core/base-scripts.git","clone_url":"https://github.com/rock-core/base-scripts.git","svn_url":"https://github.com/rock-core/base-scripts","homepage":null,"size":548,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"rock-core:master","ref":"master","sha":"ec71b8babaa3641a817b48f8004365ab712f8c57","user":{"login":"rock-core","id":6654878,"avatar_url":"https://avatars.githubusercontent.com/u/6654878?v=3","gravatar_id":"","url":"https://api.github.com/users/rock-core","html_url":"https://github.com/rock-core","followers_url":"https://api.github.com/users/rock-core/followers","following_url":"https://api.github.com/users/rock-core/following{/other_user}","gists_url":"https://api.github.com/users/rock-core/gists{/gist_id}","starred_url":"https://api.github.com/users/rock-core/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rock-core/subscriptions","organizations_url":"https://api.github.com/users/rock-core/orgs","repos_url":"https://api.github.com/users/rock-core/repos","events_url":"https://api.github.com/users/rock-core/events{/privacy}","received_events_url":"https://api.github.com/users/rock-core/received_events","type":"Organization","site_admin":false},"repo":{"id":19274613,"name":"base-scripts","full_name":"rock-core/base-scripts","owner":{"login":"rock-core","id":6654878,"avatar_url":"https://avatars.githubusercontent.com/u/6654878?v=3","gravatar_id":"","url":"https://api.github.com/users/rock-core","html_url":"https://github.com/rock-core","followers_url":"https://api.github.com/users/rock-core/followers","following_url":"https://api.github.com/users/rock-core/following{/other_user}","gists_url":"https://api.github.com/users/rock-core/gists{/gist_id}","starred_url":"https://api.github.com/users/rock-core/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rock-core/subscriptions","organizations_url":"https://api.github.com/users/rock-core/orgs","repos_url":"https://api.github.com/users/rock-core/repos","events_url":"https://api.github.com/users/rock-core/events{/privacy}","received_events_url":"https://api.github.com/users/rock-core/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rock-core/base-scripts","description":"Scripts to interact with a Rock installation","fork":false,"url":"https://api.github.com/repos/rock-core/base-scripts","forks_url":"https://api.github.com/repos/rock-core/base-scripts/forks","keys_url":"https://api.github.com/repos/rock-core/base-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rock-core/base-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rock-core/base-scripts/teams","hooks_url":"https://api.github.com/repos/rock-core/base-scripts/hooks","issue_events_url":"https://api.github.com/repos/rock-core/base-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/rock-core/base-scripts/events","assignees_url":"https://api.github.com/repos/rock-core/base-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/rock-core/base-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/rock-core/base-scripts/tags","blobs_url":"https://api.github.com/repos/rock-core/base-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rock-core/base-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rock-core/base-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/rock-core/base-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rock-core/base-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/rock-core/base-scripts/languages","stargazers_url":"https://api.github.com/repos/rock-core/base-scripts/stargazers","contributors_url":"https://api.github.com/repos/rock-core/base-scripts/contributors","subscribers_url":"https://api.github.com/repos/rock-core/base-scripts/subscribers","subscription_url":"https://api.github.com/repos/rock-core/base-scripts/subscription","commits_url":"https://api.github.com/repos/rock-core/base-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/rock-core/base-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/rock-core/base-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/rock-core/base-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/rock-core/base-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/rock-core/base-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rock-core/base-scripts/merges","archive_url":"https://api.github.com/repos/rock-core/base-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rock-core/base-scripts/downloads","issues_url":"https://api.github.com/repos/rock-core/base-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/rock-core/base-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/rock-core/base-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/rock-core/base-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rock-core/base-scripts/labels{/name}","releases_url":"https://api.github.com/repos/rock-core/base-scripts/releases{/id}","created_at":"2014-04-29T11:50:14Z","updated_at":"2015-02-04T16:39:26Z","pushed_at":"2015-03-23T20:10:22Z","git_url":"git://github.com/rock-core/base-scripts.git","ssh_url":"git@github.com:rock-core/base-scripts.git","clone_url":"https://github.com/rock-core/base-scripts.git","svn_url":"https://github.com/rock-core/base-scripts","homepage":null,"size":548,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rock-core/base-scripts/pulls/11"},"html":{"href":"https://github.com/rock-core/base-scripts/pull/11"},"issue":{"href":"https://api.github.com/repos/rock-core/base-scripts/issues/11"},"comments":{"href":"https://api.github.com/repos/rock-core/base-scripts/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/rock-core/base-scripts/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/rock-core/base-scripts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rock-core/base-scripts/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/rock-core/base-scripts/statuses/0a15279084a7092deacadeece560f818cc744a7a"}}}}