{"action":"created","comment":{"url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/comments/82588181","pull_request_review_id":3484703,"id":82588181,"diff_hunk":"@@ -25,6 +25,29 @@ use utils qw /addon_decline_license/;\n \n our @EXPORT = qw/fill_in_registration_data registration_bootloader_params yast_scc_registration/;\n \n+sub setup_unregister_hook {\n+    # Get file without switching console\n+    # console(\"testapi_console\")->type_string(\"stringstring\");\n+    # my $creds = console(\"install-shell\")->script_output(\"cut -d= -f2 /etc/zypp/credentials.d/SCCcredentials\");","path":"lib/registration.pm","position":null,"original_position":7,"commit_id":"701e761ca42b2e260848a041dfa57df1436577f6","original_commit_id":"034b7ce7a7c1214d584837fbc0d58d2a07628ab9","user":{"login":"kravciak","id":538604,"avatar_url":"https://avatars.githubusercontent.com/u/538604?v=3","gravatar_id":"","url":"https://api.github.com/users/kravciak","html_url":"https://github.com/kravciak","followers_url":"https://api.github.com/users/kravciak/followers","following_url":"https://api.github.com/users/kravciak/following{/other_user}","gists_url":"https://api.github.com/users/kravciak/gists{/gist_id}","starred_url":"https://api.github.com/users/kravciak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kravciak/subscriptions","organizations_url":"https://api.github.com/users/kravciak/orgs","repos_url":"https://api.github.com/users/kravciak/repos","events_url":"https://api.github.com/users/kravciak/events{/privacy}","received_events_url":"https://api.github.com/users/kravciak/received_events","type":"User","site_admin":false},"body":"removed","created_at":"2016-10-10T11:46:29Z","updated_at":"2016-10-10T11:46:29Z","html_url":"https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/1923#discussion_r82588181","pull_request_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/1923","_links":{"self":{"href":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/comments/82588181"},"html":{"href":"https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/1923#discussion_r82588181"},"pull_request":{"href":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/1923"}}},"pull_request":{"url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/1923","id":88411208,"html_url":"https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/1923","diff_url":"https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/1923.diff","patch_url":"https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/1923.patch","issue_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/issues/1923","number":1923,"state":"open","locked":false,"title":"Unregister from SCC after worker finishes","user":{"login":"kravciak","id":538604,"avatar_url":"https://avatars.githubusercontent.com/u/538604?v=3","gravatar_id":"","url":"https://api.github.com/users/kravciak","html_url":"https://github.com/kravciak","followers_url":"https://api.github.com/users/kravciak/followers","following_url":"https://api.github.com/users/kravciak/following{/other_user}","gists_url":"https://api.github.com/users/kravciak/gists{/gist_id}","starred_url":"https://api.github.com/users/kravciak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kravciak/subscriptions","organizations_url":"https://api.github.com/users/kravciak/orgs","repos_url":"https://api.github.com/users/kravciak/repos","events_url":"https://api.github.com/users/kravciak/events{/privacy}","received_events_url":"https://api.github.com/users/kravciak/received_events","type":"User","site_admin":false},"body":"https://progress.opensuse.org/issues/11518\r\n\r\nWe need to consider canceled & failed jobs, so de-registration must be performed from worker. It needs username & password that are generated during registration.","created_at":"2016-10-07T10:01:06Z","updated_at":"2016-10-10T11:46:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f8be7cc280c33effe3b99c005830da5f5a7d08b8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/1923/commits","review_comments_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/1923/comments","review_comment_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/issues/1923/comments","statuses_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/statuses/701e761ca42b2e260848a041dfa57df1436577f6","head":{"label":"kravciak:scc","ref":"scc","sha":"701e761ca42b2e260848a041dfa57df1436577f6","user":{"login":"kravciak","id":538604,"avatar_url":"https://avatars.githubusercontent.com/u/538604?v=3","gravatar_id":"","url":"https://api.github.com/users/kravciak","html_url":"https://github.com/kravciak","followers_url":"https://api.github.com/users/kravciak/followers","following_url":"https://api.github.com/users/kravciak/following{/other_user}","gists_url":"https://api.github.com/users/kravciak/gists{/gist_id}","starred_url":"https://api.github.com/users/kravciak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kravciak/subscriptions","organizations_url":"https://api.github.com/users/kravciak/orgs","repos_url":"https://api.github.com/users/kravciak/repos","events_url":"https://api.github.com/users/kravciak/events{/privacy}","received_events_url":"https://api.github.com/users/kravciak/received_events","type":"User","site_admin":false},"repo":{"id":45985015,"name":"openqa-tests","full_name":"kravciak/openqa-tests","owner":{"login":"kravciak","id":538604,"avatar_url":"https://avatars.githubusercontent.com/u/538604?v=3","gravatar_id":"","url":"https://api.github.com/users/kravciak","html_url":"https://github.com/kravciak","followers_url":"https://api.github.com/users/kravciak/followers","following_url":"https://api.github.com/users/kravciak/following{/other_user}","gists_url":"https://api.github.com/users/kravciak/gists{/gist_id}","starred_url":"https://api.github.com/users/kravciak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kravciak/subscriptions","organizations_url":"https://api.github.com/users/kravciak/orgs","repos_url":"https://api.github.com/users/kravciak/repos","events_url":"https://api.github.com/users/kravciak/events{/privacy}","received_events_url":"https://api.github.com/users/kravciak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kravciak/openqa-tests","description":"os-autoinst test cases for openSUSE","fork":true,"url":"https://api.github.com/repos/kravciak/openqa-tests","forks_url":"https://api.github.com/repos/kravciak/openqa-tests/forks","keys_url":"https://api.github.com/repos/kravciak/openqa-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kravciak/openqa-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kravciak/openqa-tests/teams","hooks_url":"https://api.github.com/repos/kravciak/openqa-tests/hooks","issue_events_url":"https://api.github.com/repos/kravciak/openqa-tests/issues/events{/number}","events_url":"https://api.github.com/repos/kravciak/openqa-tests/events","assignees_url":"https://api.github.com/repos/kravciak/openqa-tests/assignees{/user}","branches_url":"https://api.github.com/repos/kravciak/openqa-tests/branches{/branch}","tags_url":"https://api.github.com/repos/kravciak/openqa-tests/tags","blobs_url":"https://api.github.com/repos/kravciak/openqa-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kravciak/openqa-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kravciak/openqa-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/kravciak/openqa-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kravciak/openqa-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/kravciak/openqa-tests/languages","stargazers_url":"https://api.github.com/repos/kravciak/openqa-tests/stargazers","contributors_url":"https://api.github.com/repos/kravciak/openqa-tests/contributors","subscribers_url":"https://api.github.com/repos/kravciak/openqa-tests/subscribers","subscription_url":"https://api.github.com/repos/kravciak/openqa-tests/subscription","commits_url":"https://api.github.com/repos/kravciak/openqa-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/kravciak/openqa-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/kravciak/openqa-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/kravciak/openqa-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/kravciak/openqa-tests/contents/{+path}","compare_url":"https://api.github.com/repos/kravciak/openqa-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kravciak/openqa-tests/merges","archive_url":"https://api.github.com/repos/kravciak/openqa-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kravciak/openqa-tests/downloads","issues_url":"https://api.github.com/repos/kravciak/openqa-tests/issues{/number}","pulls_url":"https://api.github.com/repos/kravciak/openqa-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/kravciak/openqa-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/kravciak/openqa-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kravciak/openqa-tests/labels{/name}","releases_url":"https://api.github.com/repos/kravciak/openqa-tests/releases{/id}","deployments_url":"https://api.github.com/repos/kravciak/openqa-tests/deployments","created_at":"2015-11-11T14:01:04Z","updated_at":"2016-02-02T15:31:24Z","pushed_at":"2016-10-10T11:34:49Z","git_url":"git://github.com/kravciak/openqa-tests.git","ssh_url":"git@github.com:kravciak/openqa-tests.git","clone_url":"https://github.com/kravciak/openqa-tests.git","svn_url":"https://github.com/kravciak/openqa-tests","homepage":null,"size":66288,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"os-autoinst:master","ref":"master","sha":"c2ec918729127ab9f47ee2ce78736bf44ef80cff","user":{"login":"os-autoinst","id":6918706,"avatar_url":"https://avatars.githubusercontent.com/u/6918706?v=3","gravatar_id":"","url":"https://api.github.com/users/os-autoinst","html_url":"https://github.com/os-autoinst","followers_url":"https://api.github.com/users/os-autoinst/followers","following_url":"https://api.github.com/users/os-autoinst/following{/other_user}","gists_url":"https://api.github.com/users/os-autoinst/gists{/gist_id}","starred_url":"https://api.github.com/users/os-autoinst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/os-autoinst/subscriptions","organizations_url":"https://api.github.com/users/os-autoinst/orgs","repos_url":"https://api.github.com/users/os-autoinst/repos","events_url":"https://api.github.com/users/os-autoinst/events{/privacy}","received_events_url":"https://api.github.com/users/os-autoinst/received_events","type":"Organization","site_admin":false},"repo":{"id":17630288,"name":"os-autoinst-distri-opensuse","full_name":"os-autoinst/os-autoinst-distri-opensuse","owner":{"login":"os-autoinst","id":6918706,"avatar_url":"https://avatars.githubusercontent.com/u/6918706?v=3","gravatar_id":"","url":"https://api.github.com/users/os-autoinst","html_url":"https://github.com/os-autoinst","followers_url":"https://api.github.com/users/os-autoinst/followers","following_url":"https://api.github.com/users/os-autoinst/following{/other_user}","gists_url":"https://api.github.com/users/os-autoinst/gists{/gist_id}","starred_url":"https://api.github.com/users/os-autoinst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/os-autoinst/subscriptions","organizations_url":"https://api.github.com/users/os-autoinst/orgs","repos_url":"https://api.github.com/users/os-autoinst/repos","events_url":"https://api.github.com/users/os-autoinst/events{/privacy}","received_events_url":"https://api.github.com/users/os-autoinst/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/os-autoinst/os-autoinst-distri-opensuse","description":"os-autoinst test cases for openSUSE","fork":false,"url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse","forks_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/forks","keys_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/teams","hooks_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/hooks","issue_events_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/issues/events{/number}","events_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/events","assignees_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/assignees{/user}","branches_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/branches{/branch}","tags_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/tags","blobs_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/git/refs{/sha}","trees_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/statuses/{sha}","languages_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/languages","stargazers_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/stargazers","contributors_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/contributors","subscribers_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/subscribers","subscription_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/subscription","commits_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/commits{/sha}","git_commits_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/git/commits{/sha}","comments_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/comments{/number}","issue_comment_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/issues/comments{/number}","contents_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/contents/{+path}","compare_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/merges","archive_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/downloads","issues_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/issues{/number}","pulls_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls{/number}","milestones_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/milestones{/number}","notifications_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/labels{/name}","releases_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/releases{/id}","deployments_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/deployments","created_at":"2014-03-11T12:54:42Z","updated_at":"2016-09-20T01:05:39Z","pushed_at":"2016-10-10T11:35:29Z","git_url":"git://github.com/os-autoinst/os-autoinst-distri-opensuse.git","ssh_url":"git@github.com:os-autoinst/os-autoinst-distri-opensuse.git","clone_url":"https://github.com/os-autoinst/os-autoinst-distri-opensuse.git","svn_url":"https://github.com/os-autoinst/os-autoinst-distri-opensuse","homepage":"https://progress.opensuse.org/projects/openqatests/issues","size":68776,"stargazers_count":13,"watchers_count":13,"language":"Perl","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":70,"mirror_url":null,"open_issues_count":16,"forks":70,"open_issues":16,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/1923"},"html":{"href":"https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/1923"},"issue":{"href":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/issues/1923"},"comments":{"href":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/issues/1923/comments"},"review_comments":{"href":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/1923/comments"},"review_comment":{"href":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/1923/commits"},"statuses":{"href":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/statuses/701e761ca42b2e260848a041dfa57df1436577f6"}}}}
{"actor":{"display_login":"kravciak"}}