{"action":"created","comment":{"url":"https://api.github.com/repos/resin-os/meta-resin/pulls/comments/81738878","pull_request_review_id":2695457,"id":81738878,"diff_hunk":"@@ -0,0 +1,23 @@\n+#!/bin/sh\n+\n+set -e\n+\n+. /usr/sbin/resin-vars\n+\n+if [ -z \"$NEW_HOSTNAME\" ]; then\n+    NEW_HOSTNAME=$(jq -r '.uuid //empty' $CONFIG_PATH)\n+fi\n+\n+if [ -z \"$NEW_HOSTNAME\" ]; then\n+    echo \"[ERROR]: Unexpected uuid missing from config.json.\"\n+    exit 1\n+fi\n+\n+# Set hostname temporary hostname\n+OLD_HOSTNAME=$(hostname)","path":"meta-resin-common/recipes-support/resin-hostname/resin-hostname/resin-hostname","position":17,"original_position":17,"commit_id":"e599bcbd0a17fb3a6946de12a1ae585cfce33d5a","original_commit_id":"e599bcbd0a17fb3a6946de12a1ae585cfce33d5a","user":{"login":"telphan","id":2796010,"avatar_url":"https://avatars.githubusercontent.com/u/2796010?v=3","gravatar_id":"","url":"https://api.github.com/users/telphan","html_url":"https://github.com/telphan","followers_url":"https://api.github.com/users/telphan/followers","following_url":"https://api.github.com/users/telphan/following{/other_user}","gists_url":"https://api.github.com/users/telphan/gists{/gist_id}","starred_url":"https://api.github.com/users/telphan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telphan/subscriptions","organizations_url":"https://api.github.com/users/telphan/orgs","repos_url":"https://api.github.com/users/telphan/repos","events_url":"https://api.github.com/users/telphan/events{/privacy}","received_events_url":"https://api.github.com/users/telphan/received_events","type":"User","site_admin":false},"body":"Relic from a previous version. Removing.","created_at":"2016-10-04T11:50:50Z","updated_at":"2016-10-04T11:50:51Z","html_url":"https://github.com/resin-os/meta-resin/pull/335#discussion_r81738878","pull_request_url":"https://api.github.com/repos/resin-os/meta-resin/pulls/335","_links":{"self":{"href":"https://api.github.com/repos/resin-os/meta-resin/pulls/comments/81738878"},"html":{"href":"https://github.com/resin-os/meta-resin/pull/335#discussion_r81738878"},"pull_request":{"href":"https://api.github.com/repos/resin-os/meta-resin/pulls/335"}}},"pull_request":{"url":"https://api.github.com/repos/resin-os/meta-resin/pulls/335","id":86968664,"html_url":"https://github.com/resin-os/meta-resin/pull/335","diff_url":"https://github.com/resin-os/meta-resin/pull/335.diff","patch_url":"https://github.com/resin-os/meta-resin/pull/335.patch","issue_url":"https://api.github.com/repos/resin-os/meta-resin/issues/335","number":335,"state":"open","locked":false,"title":"Allow hostname to be configurable","user":{"login":"telphan","id":2796010,"avatar_url":"https://avatars.githubusercontent.com/u/2796010?v=3","gravatar_id":"","url":"https://api.github.com/users/telphan","html_url":"https://github.com/telphan","followers_url":"https://api.github.com/users/telphan/followers","following_url":"https://api.github.com/users/telphan/following{/other_user}","gists_url":"https://api.github.com/users/telphan/gists{/gist_id}","starred_url":"https://api.github.com/users/telphan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telphan/subscriptions","organizations_url":"https://api.github.com/users/telphan/orgs","repos_url":"https://api.github.com/users/telphan/repos","events_url":"https://api.github.com/users/telphan/events{/privacy}","received_events_url":"https://api.github.com/users/telphan/received_events","type":"User","site_admin":false},"body":"@agherzan @floion @petrosagg @lorenzo-stoakes @michal-mazurek \r\nConnects to #318 ","created_at":"2016-09-27T16:49:38Z","updated_at":"2016-10-04T11:50:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83aa2463c9fe0f83d6f9c1355bc428cf874630cd","assignee":{"login":"telphan","id":2796010,"avatar_url":"https://avatars.githubusercontent.com/u/2796010?v=3","gravatar_id":"","url":"https://api.github.com/users/telphan","html_url":"https://github.com/telphan","followers_url":"https://api.github.com/users/telphan/followers","following_url":"https://api.github.com/users/telphan/following{/other_user}","gists_url":"https://api.github.com/users/telphan/gists{/gist_id}","starred_url":"https://api.github.com/users/telphan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telphan/subscriptions","organizations_url":"https://api.github.com/users/telphan/orgs","repos_url":"https://api.github.com/users/telphan/repos","events_url":"https://api.github.com/users/telphan/events{/privacy}","received_events_url":"https://api.github.com/users/telphan/received_events","type":"User","site_admin":false},"assignees":[{"login":"telphan","id":2796010,"avatar_url":"https://avatars.githubusercontent.com/u/2796010?v=3","gravatar_id":"","url":"https://api.github.com/users/telphan","html_url":"https://github.com/telphan","followers_url":"https://api.github.com/users/telphan/followers","following_url":"https://api.github.com/users/telphan/following{/other_user}","gists_url":"https://api.github.com/users/telphan/gists{/gist_id}","starred_url":"https://api.github.com/users/telphan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telphan/subscriptions","organizations_url":"https://api.github.com/users/telphan/orgs","repos_url":"https://api.github.com/users/telphan/repos","events_url":"https://api.github.com/users/telphan/events{/privacy}","received_events_url":"https://api.github.com/users/telphan/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/resin-os/meta-resin/milestones/5","html_url":"https://github.com/resin-os/meta-resin/milestones/2.0","labels_url":"https://api.github.com/repos/resin-os/meta-resin/milestones/5/labels","id":2022836,"number":5,"title":"2.0","description":"This will be the first milestone for resinOS 2.X","creator":{"login":"agherzan","id":1746941,"avatar_url":"https://avatars.githubusercontent.com/u/1746941?v=3","gravatar_id":"","url":"https://api.github.com/users/agherzan","html_url":"https://github.com/agherzan","followers_url":"https://api.github.com/users/agherzan/followers","following_url":"https://api.github.com/users/agherzan/following{/other_user}","gists_url":"https://api.github.com/users/agherzan/gists{/gist_id}","starred_url":"https://api.github.com/users/agherzan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agherzan/subscriptions","organizations_url":"https://api.github.com/users/agherzan/orgs","repos_url":"https://api.github.com/users/agherzan/repos","events_url":"https://api.github.com/users/agherzan/events{/privacy}","received_events_url":"https://api.github.com/users/agherzan/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":6,"state":"open","created_at":"2016-09-22T19:13:22Z","updated_at":"2016-10-04T11:44:30Z","due_on":"2016-10-07T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/resin-os/meta-resin/pulls/335/commits","review_comments_url":"https://api.github.com/repos/resin-os/meta-resin/pulls/335/comments","review_comment_url":"https://api.github.com/repos/resin-os/meta-resin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/resin-os/meta-resin/issues/335/comments","statuses_url":"https://api.github.com/repos/resin-os/meta-resin/statuses/e599bcbd0a17fb3a6946de12a1ae585cfce33d5a","head":{"label":"resin-os:issue_318","ref":"issue_318","sha":"e599bcbd0a17fb3a6946de12a1ae585cfce33d5a","user":{"login":"resin-os","id":16914061,"avatar_url":"https://avatars.githubusercontent.com/u/16914061?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-os","html_url":"https://github.com/resin-os","followers_url":"https://api.github.com/users/resin-os/followers","following_url":"https://api.github.com/users/resin-os/following{/other_user}","gists_url":"https://api.github.com/users/resin-os/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-os/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-os/subscriptions","organizations_url":"https://api.github.com/users/resin-os/orgs","repos_url":"https://api.github.com/users/resin-os/repos","events_url":"https://api.github.com/users/resin-os/events{/privacy}","received_events_url":"https://api.github.com/users/resin-os/received_events","type":"Organization","site_admin":false},"repo":{"id":38546546,"name":"meta-resin","full_name":"resin-os/meta-resin","owner":{"login":"resin-os","id":16914061,"avatar_url":"https://avatars.githubusercontent.com/u/16914061?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-os","html_url":"https://github.com/resin-os","followers_url":"https://api.github.com/users/resin-os/followers","following_url":"https://api.github.com/users/resin-os/following{/other_user}","gists_url":"https://api.github.com/users/resin-os/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-os/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-os/subscriptions","organizations_url":"https://api.github.com/users/resin-os/orgs","repos_url":"https://api.github.com/users/resin-os/repos","events_url":"https://api.github.com/users/resin-os/events{/privacy}","received_events_url":"https://api.github.com/users/resin-os/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/resin-os/meta-resin","description":"meta-resin is a Yocto layer used to build resin.io operating system images","fork":false,"url":"https://api.github.com/repos/resin-os/meta-resin","forks_url":"https://api.github.com/repos/resin-os/meta-resin/forks","keys_url":"https://api.github.com/repos/resin-os/meta-resin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/resin-os/meta-resin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/resin-os/meta-resin/teams","hooks_url":"https://api.github.com/repos/resin-os/meta-resin/hooks","issue_events_url":"https://api.github.com/repos/resin-os/meta-resin/issues/events{/number}","events_url":"https://api.github.com/repos/resin-os/meta-resin/events","assignees_url":"https://api.github.com/repos/resin-os/meta-resin/assignees{/user}","branches_url":"https://api.github.com/repos/resin-os/meta-resin/branches{/branch}","tags_url":"https://api.github.com/repos/resin-os/meta-resin/tags","blobs_url":"https://api.github.com/repos/resin-os/meta-resin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/resin-os/meta-resin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/resin-os/meta-resin/git/refs{/sha}","trees_url":"https://api.github.com/repos/resin-os/meta-resin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/resin-os/meta-resin/statuses/{sha}","languages_url":"https://api.github.com/repos/resin-os/meta-resin/languages","stargazers_url":"https://api.github.com/repos/resin-os/meta-resin/stargazers","contributors_url":"https://api.github.com/repos/resin-os/meta-resin/contributors","subscribers_url":"https://api.github.com/repos/resin-os/meta-resin/subscribers","subscription_url":"https://api.github.com/repos/resin-os/meta-resin/subscription","commits_url":"https://api.github.com/repos/resin-os/meta-resin/commits{/sha}","git_commits_url":"https://api.github.com/repos/resin-os/meta-resin/git/commits{/sha}","comments_url":"https://api.github.com/repos/resin-os/meta-resin/comments{/number}","issue_comment_url":"https://api.github.com/repos/resin-os/meta-resin/issues/comments{/number}","contents_url":"https://api.github.com/repos/resin-os/meta-resin/contents/{+path}","compare_url":"https://api.github.com/repos/resin-os/meta-resin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/resin-os/meta-resin/merges","archive_url":"https://api.github.com/repos/resin-os/meta-resin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/resin-os/meta-resin/downloads","issues_url":"https://api.github.com/repos/resin-os/meta-resin/issues{/number}","pulls_url":"https://api.github.com/repos/resin-os/meta-resin/pulls{/number}","milestones_url":"https://api.github.com/repos/resin-os/meta-resin/milestones{/number}","notifications_url":"https://api.github.com/repos/resin-os/meta-resin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/resin-os/meta-resin/labels{/name}","releases_url":"https://api.github.com/repos/resin-os/meta-resin/releases{/id}","deployments_url":"https://api.github.com/repos/resin-os/meta-resin/deployments","created_at":"2015-07-04T20:19:24Z","updated_at":"2016-09-18T20:08:02Z","pushed_at":"2016-10-04T11:44:31Z","git_url":"git://github.com/resin-os/meta-resin.git","ssh_url":"git@github.com:resin-os/meta-resin.git","clone_url":"https://github.com/resin-os/meta-resin.git","svn_url":"https://github.com/resin-os/meta-resin","homepage":null,"size":5585,"stargazers_count":44,"watchers_count":44,"language":"BitBake","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":126,"forks":13,"open_issues":126,"watchers":44,"default_branch":"master"}},"base":{"label":"resin-os:master","ref":"master","sha":"c83d7314b691ec8e8404ad280beb9835e3050092","user":{"login":"resin-os","id":16914061,"avatar_url":"https://avatars.githubusercontent.com/u/16914061?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-os","html_url":"https://github.com/resin-os","followers_url":"https://api.github.com/users/resin-os/followers","following_url":"https://api.github.com/users/resin-os/following{/other_user}","gists_url":"https://api.github.com/users/resin-os/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-os/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-os/subscriptions","organizations_url":"https://api.github.com/users/resin-os/orgs","repos_url":"https://api.github.com/users/resin-os/repos","events_url":"https://api.github.com/users/resin-os/events{/privacy}","received_events_url":"https://api.github.com/users/resin-os/received_events","type":"Organization","site_admin":false},"repo":{"id":38546546,"name":"meta-resin","full_name":"resin-os/meta-resin","owner":{"login":"resin-os","id":16914061,"avatar_url":"https://avatars.githubusercontent.com/u/16914061?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-os","html_url":"https://github.com/resin-os","followers_url":"https://api.github.com/users/resin-os/followers","following_url":"https://api.github.com/users/resin-os/following{/other_user}","gists_url":"https://api.github.com/users/resin-os/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-os/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-os/subscriptions","organizations_url":"https://api.github.com/users/resin-os/orgs","repos_url":"https://api.github.com/users/resin-os/repos","events_url":"https://api.github.com/users/resin-os/events{/privacy}","received_events_url":"https://api.github.com/users/resin-os/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/resin-os/meta-resin","description":"meta-resin is a Yocto layer used to build resin.io operating system images","fork":false,"url":"https://api.github.com/repos/resin-os/meta-resin","forks_url":"https://api.github.com/repos/resin-os/meta-resin/forks","keys_url":"https://api.github.com/repos/resin-os/meta-resin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/resin-os/meta-resin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/resin-os/meta-resin/teams","hooks_url":"https://api.github.com/repos/resin-os/meta-resin/hooks","issue_events_url":"https://api.github.com/repos/resin-os/meta-resin/issues/events{/number}","events_url":"https://api.github.com/repos/resin-os/meta-resin/events","assignees_url":"https://api.github.com/repos/resin-os/meta-resin/assignees{/user}","branches_url":"https://api.github.com/repos/resin-os/meta-resin/branches{/branch}","tags_url":"https://api.github.com/repos/resin-os/meta-resin/tags","blobs_url":"https://api.github.com/repos/resin-os/meta-resin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/resin-os/meta-resin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/resin-os/meta-resin/git/refs{/sha}","trees_url":"https://api.github.com/repos/resin-os/meta-resin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/resin-os/meta-resin/statuses/{sha}","languages_url":"https://api.github.com/repos/resin-os/meta-resin/languages","stargazers_url":"https://api.github.com/repos/resin-os/meta-resin/stargazers","contributors_url":"https://api.github.com/repos/resin-os/meta-resin/contributors","subscribers_url":"https://api.github.com/repos/resin-os/meta-resin/subscribers","subscription_url":"https://api.github.com/repos/resin-os/meta-resin/subscription","commits_url":"https://api.github.com/repos/resin-os/meta-resin/commits{/sha}","git_commits_url":"https://api.github.com/repos/resin-os/meta-resin/git/commits{/sha}","comments_url":"https://api.github.com/repos/resin-os/meta-resin/comments{/number}","issue_comment_url":"https://api.github.com/repos/resin-os/meta-resin/issues/comments{/number}","contents_url":"https://api.github.com/repos/resin-os/meta-resin/contents/{+path}","compare_url":"https://api.github.com/repos/resin-os/meta-resin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/resin-os/meta-resin/merges","archive_url":"https://api.github.com/repos/resin-os/meta-resin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/resin-os/meta-resin/downloads","issues_url":"https://api.github.com/repos/resin-os/meta-resin/issues{/number}","pulls_url":"https://api.github.com/repos/resin-os/meta-resin/pulls{/number}","milestones_url":"https://api.github.com/repos/resin-os/meta-resin/milestones{/number}","notifications_url":"https://api.github.com/repos/resin-os/meta-resin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/resin-os/meta-resin/labels{/name}","releases_url":"https://api.github.com/repos/resin-os/meta-resin/releases{/id}","deployments_url":"https://api.github.com/repos/resin-os/meta-resin/deployments","created_at":"2015-07-04T20:19:24Z","updated_at":"2016-09-18T20:08:02Z","pushed_at":"2016-10-04T11:44:31Z","git_url":"git://github.com/resin-os/meta-resin.git","ssh_url":"git@github.com:resin-os/meta-resin.git","clone_url":"https://github.com/resin-os/meta-resin.git","svn_url":"https://github.com/resin-os/meta-resin","homepage":null,"size":5585,"stargazers_count":44,"watchers_count":44,"language":"BitBake","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":126,"forks":13,"open_issues":126,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/resin-os/meta-resin/pulls/335"},"html":{"href":"https://github.com/resin-os/meta-resin/pull/335"},"issue":{"href":"https://api.github.com/repos/resin-os/meta-resin/issues/335"},"comments":{"href":"https://api.github.com/repos/resin-os/meta-resin/issues/335/comments"},"review_comments":{"href":"https://api.github.com/repos/resin-os/meta-resin/pulls/335/comments"},"review_comment":{"href":"https://api.github.com/repos/resin-os/meta-resin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/resin-os/meta-resin/pulls/335/commits"},"statuses":{"href":"https://api.github.com/repos/resin-os/meta-resin/statuses/e599bcbd0a17fb3a6946de12a1ae585cfce33d5a"}}}}
{"actor":{"display_login":"telphan"}}