{"action":"created","comment":{"url":"https://api.github.com/repos/travis-ci/travis-build/pulls/comments/31732163","id":31732163,"diff_hunk":"@@ -19,6 +19,9 @@ class Go < Script\n         def export\n           super\n           sh.export 'TRAVIS_GO_VERSION', go_version, echo: false\n+          sh.if '-z $GOMAXPROCS' do\n+            sh.export 'GOMAXPROCS', '2', echo: true","path":"lib/travis/build/script/go.rb","position":5,"original_position":5,"commit_id":"783a9c5d4a277cd090f72ece0e728c5d862a84b8","original_commit_id":"783a9c5d4a277cd090f72ece0e728c5d862a84b8","user":{"login":"BanzaiMan","id":25666,"avatar_url":"https://avatars.githubusercontent.com/u/25666?v=3","gravatar_id":"","url":"https://api.github.com/users/BanzaiMan","html_url":"https://github.com/BanzaiMan","followers_url":"https://api.github.com/users/BanzaiMan/followers","following_url":"https://api.github.com/users/BanzaiMan/following{/other_user}","gists_url":"https://api.github.com/users/BanzaiMan/gists{/gist_id}","starred_url":"https://api.github.com/users/BanzaiMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BanzaiMan/subscriptions","organizations_url":"https://api.github.com/users/BanzaiMan/orgs","repos_url":"https://api.github.com/users/BanzaiMan/repos","events_url":"https://api.github.com/users/BanzaiMan/events{/privacy}","received_events_url":"https://api.github.com/users/BanzaiMan/received_events","type":"User","site_admin":false},"body":"`sysctl -n hw.physicalcpu`","created_at":"2015-06-04T15:31:50Z","updated_at":"2015-06-04T15:31:50Z","html_url":"https://github.com/travis-ci/travis-build/pull/462#discussion_r31732163","pull_request_url":"https://api.github.com/repos/travis-ci/travis-build/pulls/462","_links":{"self":{"href":"https://api.github.com/repos/travis-ci/travis-build/pulls/comments/31732163"},"html":{"href":"https://github.com/travis-ci/travis-build/pull/462#discussion_r31732163"},"pull_request":{"href":"https://api.github.com/repos/travis-ci/travis-build/pulls/462"}}},"pull_request":{"url":"https://api.github.com/repos/travis-ci/travis-build/pulls/462","id":36943348,"html_url":"https://github.com/travis-ci/travis-build/pull/462","diff_url":"https://github.com/travis-ci/travis-build/pull/462.diff","patch_url":"https://github.com/travis-ci/travis-build/pull/462.patch","issue_url":"https://api.github.com/repos/travis-ci/travis-build/issues/462","number":462,"state":"open","locked":false,"title":"Set GOMAXPROCS to 2 if it's not set by config","user":{"login":"BanzaiMan","id":25666,"avatar_url":"https://avatars.githubusercontent.com/u/25666?v=3","gravatar_id":"","url":"https://api.github.com/users/BanzaiMan","html_url":"https://github.com/BanzaiMan","followers_url":"https://api.github.com/users/BanzaiMan/followers","following_url":"https://api.github.com/users/BanzaiMan/following{/other_user}","gists_url":"https://api.github.com/users/BanzaiMan/gists{/gist_id}","starred_url":"https://api.github.com/users/BanzaiMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BanzaiMan/subscriptions","organizations_url":"https://api.github.com/users/BanzaiMan/orgs","repos_url":"https://api.github.com/users/BanzaiMan/repos","events_url":"https://api.github.com/users/BanzaiMan/events{/privacy}","received_events_url":"https://api.github.com/users/BanzaiMan/received_events","type":"User","site_admin":false},"body":"This reduces the chance of Go running completely wild","created_at":"2015-06-04T15:03:20Z","updated_at":"2015-06-04T15:31:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"059a0ac403a622bb83c94530dab24116a09d9e41","assignee":{"login":"meatballhat","id":45143,"avatar_url":"https://avatars.githubusercontent.com/u/45143?v=3","gravatar_id":"","url":"https://api.github.com/users/meatballhat","html_url":"https://github.com/meatballhat","followers_url":"https://api.github.com/users/meatballhat/followers","following_url":"https://api.github.com/users/meatballhat/following{/other_user}","gists_url":"https://api.github.com/users/meatballhat/gists{/gist_id}","starred_url":"https://api.github.com/users/meatballhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meatballhat/subscriptions","organizations_url":"https://api.github.com/users/meatballhat/orgs","repos_url":"https://api.github.com/users/meatballhat/repos","events_url":"https://api.github.com/users/meatballhat/events{/privacy}","received_events_url":"https://api.github.com/users/meatballhat/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/travis-ci/travis-build/pulls/462/commits","review_comments_url":"https://api.github.com/repos/travis-ci/travis-build/pulls/462/comments","review_comment_url":"https://api.github.com/repos/travis-ci/travis-build/pulls/comments{/number}","comments_url":"https://api.github.com/repos/travis-ci/travis-build/issues/462/comments","statuses_url":"https://api.github.com/repos/travis-ci/travis-build/statuses/783a9c5d4a277cd090f72ece0e728c5d862a84b8","head":{"label":"travis-ci:ha-feature-set-gomaxprocs","ref":"ha-feature-set-gomaxprocs","sha":"783a9c5d4a277cd090f72ece0e728c5d862a84b8","user":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars.githubusercontent.com/u/639823?v=3","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"repo":{"id":2508083,"name":"travis-build","full_name":"travis-ci/travis-build","owner":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars.githubusercontent.com/u/639823?v=3","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/travis-ci/travis-build","description":".travis.yml => build.sh converter","fork":false,"url":"https://api.github.com/repos/travis-ci/travis-build","forks_url":"https://api.github.com/repos/travis-ci/travis-build/forks","keys_url":"https://api.github.com/repos/travis-ci/travis-build/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travis-ci/travis-build/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travis-ci/travis-build/teams","hooks_url":"https://api.github.com/repos/travis-ci/travis-build/hooks","issue_events_url":"https://api.github.com/repos/travis-ci/travis-build/issues/events{/number}","events_url":"https://api.github.com/repos/travis-ci/travis-build/events","assignees_url":"https://api.github.com/repos/travis-ci/travis-build/assignees{/user}","branches_url":"https://api.github.com/repos/travis-ci/travis-build/branches{/branch}","tags_url":"https://api.github.com/repos/travis-ci/travis-build/tags","blobs_url":"https://api.github.com/repos/travis-ci/travis-build/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travis-ci/travis-build/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travis-ci/travis-build/git/refs{/sha}","trees_url":"https://api.github.com/repos/travis-ci/travis-build/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travis-ci/travis-build/statuses/{sha}","languages_url":"https://api.github.com/repos/travis-ci/travis-build/languages","stargazers_url":"https://api.github.com/repos/travis-ci/travis-build/stargazers","contributors_url":"https://api.github.com/repos/travis-ci/travis-build/contributors","subscribers_url":"https://api.github.com/repos/travis-ci/travis-build/subscribers","subscription_url":"https://api.github.com/repos/travis-ci/travis-build/subscription","commits_url":"https://api.github.com/repos/travis-ci/travis-build/commits{/sha}","git_commits_url":"https://api.github.com/repos/travis-ci/travis-build/git/commits{/sha}","comments_url":"https://api.github.com/repos/travis-ci/travis-build/comments{/number}","issue_comment_url":"https://api.github.com/repos/travis-ci/travis-build/issues/comments{/number}","contents_url":"https://api.github.com/repos/travis-ci/travis-build/contents/{+path}","compare_url":"https://api.github.com/repos/travis-ci/travis-build/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travis-ci/travis-build/merges","archive_url":"https://api.github.com/repos/travis-ci/travis-build/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travis-ci/travis-build/downloads","issues_url":"https://api.github.com/repos/travis-ci/travis-build/issues{/number}","pulls_url":"https://api.github.com/repos/travis-ci/travis-build/pulls{/number}","milestones_url":"https://api.github.com/repos/travis-ci/travis-build/milestones{/number}","notifications_url":"https://api.github.com/repos/travis-ci/travis-build/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travis-ci/travis-build/labels{/name}","releases_url":"https://api.github.com/repos/travis-ci/travis-build/releases{/id}","created_at":"2011-10-03T21:46:00Z","updated_at":"2015-06-03T17:10:49Z","pushed_at":"2015-06-04T15:03:20Z","git_url":"git://github.com/travis-ci/travis-build.git","ssh_url":"git@github.com:travis-ci/travis-build.git","clone_url":"https://github.com/travis-ci/travis-build.git","svn_url":"https://github.com/travis-ci/travis-build","homepage":"","size":10458,"stargazers_count":108,"watchers_count":108,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":123,"mirror_url":null,"open_issues_count":21,"forks":123,"open_issues":21,"watchers":108,"default_branch":"master"}},"base":{"label":"travis-ci:master","ref":"master","sha":"5ad4eb66a3ba09dd0fc2addbe1f2bc3fe12514f9","user":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars.githubusercontent.com/u/639823?v=3","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"repo":{"id":2508083,"name":"travis-build","full_name":"travis-ci/travis-build","owner":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars.githubusercontent.com/u/639823?v=3","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/travis-ci/travis-build","description":".travis.yml => build.sh converter","fork":false,"url":"https://api.github.com/repos/travis-ci/travis-build","forks_url":"https://api.github.com/repos/travis-ci/travis-build/forks","keys_url":"https://api.github.com/repos/travis-ci/travis-build/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travis-ci/travis-build/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travis-ci/travis-build/teams","hooks_url":"https://api.github.com/repos/travis-ci/travis-build/hooks","issue_events_url":"https://api.github.com/repos/travis-ci/travis-build/issues/events{/number}","events_url":"https://api.github.com/repos/travis-ci/travis-build/events","assignees_url":"https://api.github.com/repos/travis-ci/travis-build/assignees{/user}","branches_url":"https://api.github.com/repos/travis-ci/travis-build/branches{/branch}","tags_url":"https://api.github.com/repos/travis-ci/travis-build/tags","blobs_url":"https://api.github.com/repos/travis-ci/travis-build/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travis-ci/travis-build/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travis-ci/travis-build/git/refs{/sha}","trees_url":"https://api.github.com/repos/travis-ci/travis-build/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travis-ci/travis-build/statuses/{sha}","languages_url":"https://api.github.com/repos/travis-ci/travis-build/languages","stargazers_url":"https://api.github.com/repos/travis-ci/travis-build/stargazers","contributors_url":"https://api.github.com/repos/travis-ci/travis-build/contributors","subscribers_url":"https://api.github.com/repos/travis-ci/travis-build/subscribers","subscription_url":"https://api.github.com/repos/travis-ci/travis-build/subscription","commits_url":"https://api.github.com/repos/travis-ci/travis-build/commits{/sha}","git_commits_url":"https://api.github.com/repos/travis-ci/travis-build/git/commits{/sha}","comments_url":"https://api.github.com/repos/travis-ci/travis-build/comments{/number}","issue_comment_url":"https://api.github.com/repos/travis-ci/travis-build/issues/comments{/number}","contents_url":"https://api.github.com/repos/travis-ci/travis-build/contents/{+path}","compare_url":"https://api.github.com/repos/travis-ci/travis-build/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travis-ci/travis-build/merges","archive_url":"https://api.github.com/repos/travis-ci/travis-build/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travis-ci/travis-build/downloads","issues_url":"https://api.github.com/repos/travis-ci/travis-build/issues{/number}","pulls_url":"https://api.github.com/repos/travis-ci/travis-build/pulls{/number}","milestones_url":"https://api.github.com/repos/travis-ci/travis-build/milestones{/number}","notifications_url":"https://api.github.com/repos/travis-ci/travis-build/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travis-ci/travis-build/labels{/name}","releases_url":"https://api.github.com/repos/travis-ci/travis-build/releases{/id}","created_at":"2011-10-03T21:46:00Z","updated_at":"2015-06-03T17:10:49Z","pushed_at":"2015-06-04T15:03:20Z","git_url":"git://github.com/travis-ci/travis-build.git","ssh_url":"git@github.com:travis-ci/travis-build.git","clone_url":"https://github.com/travis-ci/travis-build.git","svn_url":"https://github.com/travis-ci/travis-build","homepage":"","size":10458,"stargazers_count":108,"watchers_count":108,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":123,"mirror_url":null,"open_issues_count":21,"forks":123,"open_issues":21,"watchers":108,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/travis-ci/travis-build/pulls/462"},"html":{"href":"https://github.com/travis-ci/travis-build/pull/462"},"issue":{"href":"https://api.github.com/repos/travis-ci/travis-build/issues/462"},"comments":{"href":"https://api.github.com/repos/travis-ci/travis-build/issues/462/comments"},"review_comments":{"href":"https://api.github.com/repos/travis-ci/travis-build/pulls/462/comments"},"review_comment":{"href":"https://api.github.com/repos/travis-ci/travis-build/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/travis-ci/travis-build/pulls/462/commits"},"statuses":{"href":"https://api.github.com/repos/travis-ci/travis-build/statuses/783a9c5d4a277cd090f72ece0e728c5d862a84b8"}}}}