{"action":"created","comment":{"url":"https://api.github.com/repos/caicloud/cyclone/pulls/comments/88157976","pull_request_review_id":8740002,"id":88157976,"diff_hunk":"@@ -24,7 +24,13 @@ function usage {\n   echo -e \"Environment variable:\"\n   echo -e \" PUSH_TO_REGISTRY     \\tPush images to caicloud registry or not, options: Y or N. Default value: ${PUSH_TO_REGISTRY}\"\n }\n-\n+function disable-selinux() {\n+  if selinuxenabled && [ \"$(getenforce)\" = \"Enforcing\" ]; then","path":"scripts/build-image.sh","position":6,"original_position":6,"commit_id":"c63f8dd4d75e27b42f601029df28c3e3ab6e8cfb","original_commit_id":"c63f8dd4d75e27b42f601029df28c3e3ab6e8cfb","user":{"login":"superxi911","id":17572231,"avatar_url":"https://avatars.githubusercontent.com/u/17572231?v=3","gravatar_id":"","url":"https://api.github.com/users/superxi911","html_url":"https://github.com/superxi911","followers_url":"https://api.github.com/users/superxi911/followers","following_url":"https://api.github.com/users/superxi911/following{/other_user}","gists_url":"https://api.github.com/users/superxi911/gists{/gist_id}","starred_url":"https://api.github.com/users/superxi911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superxi911/subscriptions","organizations_url":"https://api.github.com/users/superxi911/orgs","repos_url":"https://api.github.com/users/superxi911/repos","events_url":"https://api.github.com/users/superxi911/events{/privacy}","received_events_url":"https://api.github.com/users/superxi911/received_events","type":"User","site_admin":false},"body":"+1\r\n> OK, I think, we should bypass this function call when the script is running in OS X and other OSes which don't have SELinux features :)  ","created_at":"2016-11-16T02:26:45Z","updated_at":"2016-11-16T02:26:45Z","html_url":"https://github.com/caicloud/cyclone/pull/54#discussion_r88157976","pull_request_url":"https://api.github.com/repos/caicloud/cyclone/pulls/54","_links":{"self":{"href":"https://api.github.com/repos/caicloud/cyclone/pulls/comments/88157976"},"html":{"href":"https://github.com/caicloud/cyclone/pull/54#discussion_r88157976"},"pull_request":{"href":"https://api.github.com/repos/caicloud/cyclone/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/caicloud/cyclone/pulls/54","id":93740204,"html_url":"https://github.com/caicloud/cyclone/pull/54","diff_url":"https://github.com/caicloud/cyclone/pull/54.diff","patch_url":"https://github.com/caicloud/cyclone/pull/54.patch","issue_url":"https://api.github.com/repos/caicloud/cyclone/issues/54","number":54,"state":"open","locked":false,"title":" disable the selinux before build the image","user":{"login":"wanghaoran1988","id":13621088,"avatar_url":"https://avatars.githubusercontent.com/u/13621088?v=3","gravatar_id":"","url":"https://api.github.com/users/wanghaoran1988","html_url":"https://github.com/wanghaoran1988","followers_url":"https://api.github.com/users/wanghaoran1988/followers","following_url":"https://api.github.com/users/wanghaoran1988/following{/other_user}","gists_url":"https://api.github.com/users/wanghaoran1988/gists{/gist_id}","starred_url":"https://api.github.com/users/wanghaoran1988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wanghaoran1988/subscriptions","organizations_url":"https://api.github.com/users/wanghaoran1988/orgs","repos_url":"https://api.github.com/users/wanghaoran1988/repos","events_url":"https://api.github.com/users/wanghaoran1988/events{/privacy}","received_events_url":"https://api.github.com/users/wanghaoran1988/received_events","type":"User","site_admin":false},"body":"fix  https://github.com/caicloud/cyclone/issues/53","created_at":"2016-11-15T10:38:35Z","updated_at":"2016-11-16T02:26:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b719481f613879a8e2fc01bc52d0bc8fe938918","assignee":{"login":"superxi911","id":17572231,"avatar_url":"https://avatars.githubusercontent.com/u/17572231?v=3","gravatar_id":"","url":"https://api.github.com/users/superxi911","html_url":"https://github.com/superxi911","followers_url":"https://api.github.com/users/superxi911/followers","following_url":"https://api.github.com/users/superxi911/following{/other_user}","gists_url":"https://api.github.com/users/superxi911/gists{/gist_id}","starred_url":"https://api.github.com/users/superxi911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superxi911/subscriptions","organizations_url":"https://api.github.com/users/superxi911/orgs","repos_url":"https://api.github.com/users/superxi911/repos","events_url":"https://api.github.com/users/superxi911/events{/privacy}","received_events_url":"https://api.github.com/users/superxi911/received_events","type":"User","site_admin":false},"assignees":[{"login":"superxi911","id":17572231,"avatar_url":"https://avatars.githubusercontent.com/u/17572231?v=3","gravatar_id":"","url":"https://api.github.com/users/superxi911","html_url":"https://github.com/superxi911","followers_url":"https://api.github.com/users/superxi911/followers","following_url":"https://api.github.com/users/superxi911/following{/other_user}","gists_url":"https://api.github.com/users/superxi911/gists{/gist_id}","starred_url":"https://api.github.com/users/superxi911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superxi911/subscriptions","organizations_url":"https://api.github.com/users/superxi911/orgs","repos_url":"https://api.github.com/users/superxi911/repos","events_url":"https://api.github.com/users/superxi911/events{/privacy}","received_events_url":"https://api.github.com/users/superxi911/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/caicloud/cyclone/pulls/54/commits","review_comments_url":"https://api.github.com/repos/caicloud/cyclone/pulls/54/comments","review_comment_url":"https://api.github.com/repos/caicloud/cyclone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/caicloud/cyclone/issues/54/comments","statuses_url":"https://api.github.com/repos/caicloud/cyclone/statuses/c63f8dd4d75e27b42f601029df28c3e3ab6e8cfb","head":{"label":"wanghaoran1988:fix_issue52","ref":"fix_issue52","sha":"c63f8dd4d75e27b42f601029df28c3e3ab6e8cfb","user":{"login":"wanghaoran1988","id":13621088,"avatar_url":"https://avatars.githubusercontent.com/u/13621088?v=3","gravatar_id":"","url":"https://api.github.com/users/wanghaoran1988","html_url":"https://github.com/wanghaoran1988","followers_url":"https://api.github.com/users/wanghaoran1988/followers","following_url":"https://api.github.com/users/wanghaoran1988/following{/other_user}","gists_url":"https://api.github.com/users/wanghaoran1988/gists{/gist_id}","starred_url":"https://api.github.com/users/wanghaoran1988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wanghaoran1988/subscriptions","organizations_url":"https://api.github.com/users/wanghaoran1988/orgs","repos_url":"https://api.github.com/users/wanghaoran1988/repos","events_url":"https://api.github.com/users/wanghaoran1988/events{/privacy}","received_events_url":"https://api.github.com/users/wanghaoran1988/received_events","type":"User","site_admin":false},"repo":{"id":73802091,"name":"cyclone","full_name":"wanghaoran1988/cyclone","owner":{"login":"wanghaoran1988","id":13621088,"avatar_url":"https://avatars.githubusercontent.com/u/13621088?v=3","gravatar_id":"","url":"https://api.github.com/users/wanghaoran1988","html_url":"https://github.com/wanghaoran1988","followers_url":"https://api.github.com/users/wanghaoran1988/followers","following_url":"https://api.github.com/users/wanghaoran1988/following{/other_user}","gists_url":"https://api.github.com/users/wanghaoran1988/gists{/gist_id}","starred_url":"https://api.github.com/users/wanghaoran1988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wanghaoran1988/subscriptions","organizations_url":"https://api.github.com/users/wanghaoran1988/orgs","repos_url":"https://api.github.com/users/wanghaoran1988/repos","events_url":"https://api.github.com/users/wanghaoran1988/events{/privacy}","received_events_url":"https://api.github.com/users/wanghaoran1988/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wanghaoran1988/cyclone","description":"A cloud native CI/CD platform built for container workflow.","fork":true,"url":"https://api.github.com/repos/wanghaoran1988/cyclone","forks_url":"https://api.github.com/repos/wanghaoran1988/cyclone/forks","keys_url":"https://api.github.com/repos/wanghaoran1988/cyclone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wanghaoran1988/cyclone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wanghaoran1988/cyclone/teams","hooks_url":"https://api.github.com/repos/wanghaoran1988/cyclone/hooks","issue_events_url":"https://api.github.com/repos/wanghaoran1988/cyclone/issues/events{/number}","events_url":"https://api.github.com/repos/wanghaoran1988/cyclone/events","assignees_url":"https://api.github.com/repos/wanghaoran1988/cyclone/assignees{/user}","branches_url":"https://api.github.com/repos/wanghaoran1988/cyclone/branches{/branch}","tags_url":"https://api.github.com/repos/wanghaoran1988/cyclone/tags","blobs_url":"https://api.github.com/repos/wanghaoran1988/cyclone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wanghaoran1988/cyclone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wanghaoran1988/cyclone/git/refs{/sha}","trees_url":"https://api.github.com/repos/wanghaoran1988/cyclone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wanghaoran1988/cyclone/statuses/{sha}","languages_url":"https://api.github.com/repos/wanghaoran1988/cyclone/languages","stargazers_url":"https://api.github.com/repos/wanghaoran1988/cyclone/stargazers","contributors_url":"https://api.github.com/repos/wanghaoran1988/cyclone/contributors","subscribers_url":"https://api.github.com/repos/wanghaoran1988/cyclone/subscribers","subscription_url":"https://api.github.com/repos/wanghaoran1988/cyclone/subscription","commits_url":"https://api.github.com/repos/wanghaoran1988/cyclone/commits{/sha}","git_commits_url":"https://api.github.com/repos/wanghaoran1988/cyclone/git/commits{/sha}","comments_url":"https://api.github.com/repos/wanghaoran1988/cyclone/comments{/number}","issue_comment_url":"https://api.github.com/repos/wanghaoran1988/cyclone/issues/comments{/number}","contents_url":"https://api.github.com/repos/wanghaoran1988/cyclone/contents/{+path}","compare_url":"https://api.github.com/repos/wanghaoran1988/cyclone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wanghaoran1988/cyclone/merges","archive_url":"https://api.github.com/repos/wanghaoran1988/cyclone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wanghaoran1988/cyclone/downloads","issues_url":"https://api.github.com/repos/wanghaoran1988/cyclone/issues{/number}","pulls_url":"https://api.github.com/repos/wanghaoran1988/cyclone/pulls{/number}","milestones_url":"https://api.github.com/repos/wanghaoran1988/cyclone/milestones{/number}","notifications_url":"https://api.github.com/repos/wanghaoran1988/cyclone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wanghaoran1988/cyclone/labels{/name}","releases_url":"https://api.github.com/repos/wanghaoran1988/cyclone/releases{/id}","deployments_url":"https://api.github.com/repos/wanghaoran1988/cyclone/deployments","created_at":"2016-11-15T10:18:24Z","updated_at":"2016-11-15T10:18:26Z","pushed_at":"2016-11-15T10:37:33Z","git_url":"git://github.com/wanghaoran1988/cyclone.git","ssh_url":"git@github.com:wanghaoran1988/cyclone.git","clone_url":"https://github.com/wanghaoran1988/cyclone.git","svn_url":"https://github.com/wanghaoran1988/cyclone","homepage":"","size":15949,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"caicloud:master","ref":"master","sha":"19ca183d0732295c471e65776982acdfbc793ff9","user":{"login":"caicloud","id":12522124,"avatar_url":"https://avatars.githubusercontent.com/u/12522124?v=3","gravatar_id":"","url":"https://api.github.com/users/caicloud","html_url":"https://github.com/caicloud","followers_url":"https://api.github.com/users/caicloud/followers","following_url":"https://api.github.com/users/caicloud/following{/other_user}","gists_url":"https://api.github.com/users/caicloud/gists{/gist_id}","starred_url":"https://api.github.com/users/caicloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caicloud/subscriptions","organizations_url":"https://api.github.com/users/caicloud/orgs","repos_url":"https://api.github.com/users/caicloud/repos","events_url":"https://api.github.com/users/caicloud/events{/privacy}","received_events_url":"https://api.github.com/users/caicloud/received_events","type":"Organization","site_admin":false},"repo":{"id":71099614,"name":"cyclone","full_name":"caicloud/cyclone","owner":{"login":"caicloud","id":12522124,"avatar_url":"https://avatars.githubusercontent.com/u/12522124?v=3","gravatar_id":"","url":"https://api.github.com/users/caicloud","html_url":"https://github.com/caicloud","followers_url":"https://api.github.com/users/caicloud/followers","following_url":"https://api.github.com/users/caicloud/following{/other_user}","gists_url":"https://api.github.com/users/caicloud/gists{/gist_id}","starred_url":"https://api.github.com/users/caicloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caicloud/subscriptions","organizations_url":"https://api.github.com/users/caicloud/orgs","repos_url":"https://api.github.com/users/caicloud/repos","events_url":"https://api.github.com/users/caicloud/events{/privacy}","received_events_url":"https://api.github.com/users/caicloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/caicloud/cyclone","description":"A cloud native CI/CD platform built for container workflow.","fork":false,"url":"https://api.github.com/repos/caicloud/cyclone","forks_url":"https://api.github.com/repos/caicloud/cyclone/forks","keys_url":"https://api.github.com/repos/caicloud/cyclone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caicloud/cyclone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caicloud/cyclone/teams","hooks_url":"https://api.github.com/repos/caicloud/cyclone/hooks","issue_events_url":"https://api.github.com/repos/caicloud/cyclone/issues/events{/number}","events_url":"https://api.github.com/repos/caicloud/cyclone/events","assignees_url":"https://api.github.com/repos/caicloud/cyclone/assignees{/user}","branches_url":"https://api.github.com/repos/caicloud/cyclone/branches{/branch}","tags_url":"https://api.github.com/repos/caicloud/cyclone/tags","blobs_url":"https://api.github.com/repos/caicloud/cyclone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caicloud/cyclone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caicloud/cyclone/git/refs{/sha}","trees_url":"https://api.github.com/repos/caicloud/cyclone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caicloud/cyclone/statuses/{sha}","languages_url":"https://api.github.com/repos/caicloud/cyclone/languages","stargazers_url":"https://api.github.com/repos/caicloud/cyclone/stargazers","contributors_url":"https://api.github.com/repos/caicloud/cyclone/contributors","subscribers_url":"https://api.github.com/repos/caicloud/cyclone/subscribers","subscription_url":"https://api.github.com/repos/caicloud/cyclone/subscription","commits_url":"https://api.github.com/repos/caicloud/cyclone/commits{/sha}","git_commits_url":"https://api.github.com/repos/caicloud/cyclone/git/commits{/sha}","comments_url":"https://api.github.com/repos/caicloud/cyclone/comments{/number}","issue_comment_url":"https://api.github.com/repos/caicloud/cyclone/issues/comments{/number}","contents_url":"https://api.github.com/repos/caicloud/cyclone/contents/{+path}","compare_url":"https://api.github.com/repos/caicloud/cyclone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caicloud/cyclone/merges","archive_url":"https://api.github.com/repos/caicloud/cyclone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caicloud/cyclone/downloads","issues_url":"https://api.github.com/repos/caicloud/cyclone/issues{/number}","pulls_url":"https://api.github.com/repos/caicloud/cyclone/pulls{/number}","milestones_url":"https://api.github.com/repos/caicloud/cyclone/milestones{/number}","notifications_url":"https://api.github.com/repos/caicloud/cyclone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caicloud/cyclone/labels{/name}","releases_url":"https://api.github.com/repos/caicloud/cyclone/releases{/id}","deployments_url":"https://api.github.com/repos/caicloud/cyclone/deployments","created_at":"2016-10-17T04:19:35Z","updated_at":"2016-11-16T01:37:25Z","pushed_at":"2016-11-16T02:18:28Z","git_url":"git://github.com/caicloud/cyclone.git","ssh_url":"git@github.com:caicloud/cyclone.git","clone_url":"https://github.com/caicloud/cyclone.git","svn_url":"https://github.com/caicloud/cyclone","homepage":"","size":15958,"stargazers_count":247,"watchers_count":247,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":8,"forks":30,"open_issues":8,"watchers":247,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/caicloud/cyclone/pulls/54"},"html":{"href":"https://github.com/caicloud/cyclone/pull/54"},"issue":{"href":"https://api.github.com/repos/caicloud/cyclone/issues/54"},"comments":{"href":"https://api.github.com/repos/caicloud/cyclone/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/caicloud/cyclone/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/caicloud/cyclone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/caicloud/cyclone/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/caicloud/cyclone/statuses/c63f8dd4d75e27b42f601029df28c3e3ab6e8cfb"}}}}
{"actor":{"display_login":"superxi911"}}