{"action":"created","comment":{"url":"https://api.github.com/repos/rspec/rspec.github.io/pulls/comments/23726117","id":23726117,"diff_hunk":"@@ -84,6 +84,13 @@\n   deploy.method = :git\n   deploy.build_before = true\n   deploy.branch = 'master'\n+\n+  case ENV['TARGET'].to_s.downcase\n+  when 'production'\n+    deploy.remote = 'origin'\n+  else\n+    deploy.remote = 'git@github.com:RSpec-Staging/rspec-staging.github.io.git'","path":"config.rb","position":9,"original_position":9,"commit_id":"b0a67e7263a65d59afa26aa3ab50877437417f54","original_commit_id":"b0a67e7263a65d59afa26aa3ab50877437417f54","user":{"login":"JonRowe","id":162976,"avatar_url":"https://avatars.githubusercontent.com/u/162976?v=3","gravatar_id":"","url":"https://api.github.com/users/JonRowe","html_url":"https://github.com/JonRowe","followers_url":"https://api.github.com/users/JonRowe/followers","following_url":"https://api.github.com/users/JonRowe/following{/other_user}","gists_url":"https://api.github.com/users/JonRowe/gists{/gist_id}","starred_url":"https://api.github.com/users/JonRowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonRowe/subscriptions","organizations_url":"https://api.github.com/users/JonRowe/orgs","repos_url":"https://api.github.com/users/JonRowe/repos","events_url":"https://api.github.com/users/JonRowe/events{/privacy}","received_events_url":"https://api.github.com/users/JonRowe/received_events","type":"User","site_admin":false},"body":"Note this seems to be necessary because it didn't like me specifying the remote name, but this has the added advantage of not needing to know about the remote.","created_at":"2015-01-28T21:39:03Z","updated_at":"2015-01-28T21:39:03Z","html_url":"https://github.com/rspec/rspec.github.io/pull/38#discussion_r23726117","pull_request_url":"https://api.github.com/repos/rspec/rspec.github.io/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/rspec/rspec.github.io/pulls/comments/23726117"},"html":{"href":"https://github.com/rspec/rspec.github.io/pull/38#discussion_r23726117"},"pull_request":{"href":"https://api.github.com/repos/rspec/rspec.github.io/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/rspec/rspec.github.io/pulls/38","id":28231888,"html_url":"https://github.com/rspec/rspec.github.io/pull/38","diff_url":"https://github.com/rspec/rspec.github.io/pull/38.diff","patch_url":"https://github.com/rspec/rspec.github.io/pull/38.patch","issue_url":"https://api.github.com/repos/rspec/rspec.github.io/issues/38","number":38,"state":"open","locked":false,"title":"by default deploy to staging","user":{"login":"JonRowe","id":162976,"avatar_url":"https://avatars.githubusercontent.com/u/162976?v=3","gravatar_id":"","url":"https://api.github.com/users/JonRowe","html_url":"https://github.com/JonRowe","followers_url":"https://api.github.com/users/JonRowe/followers","following_url":"https://api.github.com/users/JonRowe/following{/other_user}","gists_url":"https://api.github.com/users/JonRowe/gists{/gist_id}","starred_url":"https://api.github.com/users/JonRowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonRowe/subscriptions","organizations_url":"https://api.github.com/users/JonRowe/orgs","repos_url":"https://api.github.com/users/JonRowe/repos","events_url":"https://api.github.com/users/JonRowe/events{/privacy}","received_events_url":"https://api.github.com/users/JonRowe/received_events","type":"User","site_admin":false},"body":"Ping @myronmarston this tweaks the config to deploy to staging by default","created_at":"2015-01-28T21:37:57Z","updated_at":"2015-01-28T21:39:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bbeabf4eb7db6d5fa176e49cedea692ed24645e1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rspec/rspec.github.io/pulls/38/commits","review_comments_url":"https://api.github.com/repos/rspec/rspec.github.io/pulls/38/comments","review_comment_url":"https://api.github.com/repos/rspec/rspec.github.io/pulls/comments/{number}","comments_url":"https://api.github.com/repos/rspec/rspec.github.io/issues/38/comments","statuses_url":"https://api.github.com/repos/rspec/rspec.github.io/statuses/b0a67e7263a65d59afa26aa3ab50877437417f54","head":{"label":"rspec:staging_setup","ref":"staging_setup","sha":"b0a67e7263a65d59afa26aa3ab50877437417f54","user":{"login":"rspec","id":22388,"avatar_url":"https://avatars.githubusercontent.com/u/22388?v=3","gravatar_id":"","url":"https://api.github.com/users/rspec","html_url":"https://github.com/rspec","followers_url":"https://api.github.com/users/rspec/followers","following_url":"https://api.github.com/users/rspec/following{/other_user}","gists_url":"https://api.github.com/users/rspec/gists{/gist_id}","starred_url":"https://api.github.com/users/rspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspec/subscriptions","organizations_url":"https://api.github.com/users/rspec/orgs","repos_url":"https://api.github.com/users/rspec/repos","events_url":"https://api.github.com/users/rspec/events{/privacy}","received_events_url":"https://api.github.com/users/rspec/received_events","type":"Organization","site_admin":false},"repo":{"id":2544146,"name":"rspec.github.io","full_name":"rspec/rspec.github.io","owner":{"login":"rspec","id":22388,"avatar_url":"https://avatars.githubusercontent.com/u/22388?v=3","gravatar_id":"","url":"https://api.github.com/users/rspec","html_url":"https://github.com/rspec","followers_url":"https://api.github.com/users/rspec/followers","following_url":"https://api.github.com/users/rspec/following{/other_user}","gists_url":"https://api.github.com/users/rspec/gists{/gist_id}","starred_url":"https://api.github.com/users/rspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspec/subscriptions","organizations_url":"https://api.github.com/users/rspec/orgs","repos_url":"https://api.github.com/users/rspec/repos","events_url":"https://api.github.com/users/rspec/events{/privacy}","received_events_url":"https://api.github.com/users/rspec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rspec/rspec.github.io","description":"source for rspec.info","fork":false,"url":"https://api.github.com/repos/rspec/rspec.github.io","forks_url":"https://api.github.com/repos/rspec/rspec.github.io/forks","keys_url":"https://api.github.com/repos/rspec/rspec.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rspec/rspec.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rspec/rspec.github.io/teams","hooks_url":"https://api.github.com/repos/rspec/rspec.github.io/hooks","issue_events_url":"https://api.github.com/repos/rspec/rspec.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/rspec/rspec.github.io/events","assignees_url":"https://api.github.com/repos/rspec/rspec.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/rspec/rspec.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/rspec/rspec.github.io/tags","blobs_url":"https://api.github.com/repos/rspec/rspec.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rspec/rspec.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rspec/rspec.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/rspec/rspec.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rspec/rspec.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/rspec/rspec.github.io/languages","stargazers_url":"https://api.github.com/repos/rspec/rspec.github.io/stargazers","contributors_url":"https://api.github.com/repos/rspec/rspec.github.io/contributors","subscribers_url":"https://api.github.com/repos/rspec/rspec.github.io/subscribers","subscription_url":"https://api.github.com/repos/rspec/rspec.github.io/subscription","commits_url":"https://api.github.com/repos/rspec/rspec.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/rspec/rspec.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/rspec/rspec.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/rspec/rspec.github.io/issues/comments/{number}","contents_url":"https://api.github.com/repos/rspec/rspec.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/rspec/rspec.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rspec/rspec.github.io/merges","archive_url":"https://api.github.com/repos/rspec/rspec.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rspec/rspec.github.io/downloads","issues_url":"https://api.github.com/repos/rspec/rspec.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/rspec/rspec.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/rspec/rspec.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/rspec/rspec.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rspec/rspec.github.io/labels{/name}","releases_url":"https://api.github.com/repos/rspec/rspec.github.io/releases{/id}","created_at":"2011-10-09T19:44:45Z","updated_at":"2015-01-28T05:30:11Z","pushed_at":"2015-01-28T21:35:47Z","git_url":"git://github.com/rspec/rspec.github.io.git","ssh_url":"git@github.com:rspec/rspec.github.io.git","clone_url":"https://github.com/rspec/rspec.github.io.git","svn_url":"https://github.com/rspec/rspec.github.io","homepage":"","size":5280,"stargazers_count":6,"watchers_count":6,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":4,"forks":8,"open_issues":4,"watchers":6,"default_branch":"source"}},"base":{"label":"rspec:source","ref":"source","sha":"757d882382eb557281a39ec3e8b84e9f4eb5e2e9","user":{"login":"rspec","id":22388,"avatar_url":"https://avatars.githubusercontent.com/u/22388?v=3","gravatar_id":"","url":"https://api.github.com/users/rspec","html_url":"https://github.com/rspec","followers_url":"https://api.github.com/users/rspec/followers","following_url":"https://api.github.com/users/rspec/following{/other_user}","gists_url":"https://api.github.com/users/rspec/gists{/gist_id}","starred_url":"https://api.github.com/users/rspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspec/subscriptions","organizations_url":"https://api.github.com/users/rspec/orgs","repos_url":"https://api.github.com/users/rspec/repos","events_url":"https://api.github.com/users/rspec/events{/privacy}","received_events_url":"https://api.github.com/users/rspec/received_events","type":"Organization","site_admin":false},"repo":{"id":2544146,"name":"rspec.github.io","full_name":"rspec/rspec.github.io","owner":{"login":"rspec","id":22388,"avatar_url":"https://avatars.githubusercontent.com/u/22388?v=3","gravatar_id":"","url":"https://api.github.com/users/rspec","html_url":"https://github.com/rspec","followers_url":"https://api.github.com/users/rspec/followers","following_url":"https://api.github.com/users/rspec/following{/other_user}","gists_url":"https://api.github.com/users/rspec/gists{/gist_id}","starred_url":"https://api.github.com/users/rspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspec/subscriptions","organizations_url":"https://api.github.com/users/rspec/orgs","repos_url":"https://api.github.com/users/rspec/repos","events_url":"https://api.github.com/users/rspec/events{/privacy}","received_events_url":"https://api.github.com/users/rspec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rspec/rspec.github.io","description":"source for rspec.info","fork":false,"url":"https://api.github.com/repos/rspec/rspec.github.io","forks_url":"https://api.github.com/repos/rspec/rspec.github.io/forks","keys_url":"https://api.github.com/repos/rspec/rspec.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rspec/rspec.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rspec/rspec.github.io/teams","hooks_url":"https://api.github.com/repos/rspec/rspec.github.io/hooks","issue_events_url":"https://api.github.com/repos/rspec/rspec.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/rspec/rspec.github.io/events","assignees_url":"https://api.github.com/repos/rspec/rspec.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/rspec/rspec.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/rspec/rspec.github.io/tags","blobs_url":"https://api.github.com/repos/rspec/rspec.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rspec/rspec.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rspec/rspec.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/rspec/rspec.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rspec/rspec.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/rspec/rspec.github.io/languages","stargazers_url":"https://api.github.com/repos/rspec/rspec.github.io/stargazers","contributors_url":"https://api.github.com/repos/rspec/rspec.github.io/contributors","subscribers_url":"https://api.github.com/repos/rspec/rspec.github.io/subscribers","subscription_url":"https://api.github.com/repos/rspec/rspec.github.io/subscription","commits_url":"https://api.github.com/repos/rspec/rspec.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/rspec/rspec.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/rspec/rspec.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/rspec/rspec.github.io/issues/comments/{number}","contents_url":"https://api.github.com/repos/rspec/rspec.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/rspec/rspec.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rspec/rspec.github.io/merges","archive_url":"https://api.github.com/repos/rspec/rspec.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rspec/rspec.github.io/downloads","issues_url":"https://api.github.com/repos/rspec/rspec.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/rspec/rspec.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/rspec/rspec.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/rspec/rspec.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rspec/rspec.github.io/labels{/name}","releases_url":"https://api.github.com/repos/rspec/rspec.github.io/releases{/id}","created_at":"2011-10-09T19:44:45Z","updated_at":"2015-01-28T05:30:11Z","pushed_at":"2015-01-28T21:35:47Z","git_url":"git://github.com/rspec/rspec.github.io.git","ssh_url":"git@github.com:rspec/rspec.github.io.git","clone_url":"https://github.com/rspec/rspec.github.io.git","svn_url":"https://github.com/rspec/rspec.github.io","homepage":"","size":5280,"stargazers_count":6,"watchers_count":6,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":4,"forks":8,"open_issues":4,"watchers":6,"default_branch":"source"}},"_links":{"self":{"href":"https://api.github.com/repos/rspec/rspec.github.io/pulls/38"},"html":{"href":"https://github.com/rspec/rspec.github.io/pull/38"},"issue":{"href":"https://api.github.com/repos/rspec/rspec.github.io/issues/38"},"comments":{"href":"https://api.github.com/repos/rspec/rspec.github.io/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/rspec/rspec.github.io/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/rspec/rspec.github.io/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/rspec/rspec.github.io/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/rspec/rspec.github.io/statuses/b0a67e7263a65d59afa26aa3ab50877437417f54"}}}}