{"action":"created","comment":{"url":"https://api.github.com/repos/reenhanced/gitreflow/pulls/comments/60458222","id":60458222,"diff_hunk":"@@ -0,0 +1,25 @@\n+desc 'refresh will merge your current branch based on the base branch'\n+long_desc <<LONGTIME\n+  Performs the following:\\n\n+  \\t$ git checkout <base_branch>\\n\n+  \\t$ git pull <remote_location> <base_branch>\\n\n+  \\t$ git checkout <current_branch>\\n\n+  \\t$ git pull origin <current_branch>\\n\n+  \\t$ git push origin <current_branch>\\n\n+  \\t$ git merge <base_branch>\\n\n+LONGTIME\n+arg_name '[remote_location] - remote repository name to fetch updates from (origin by default), [base_branch] - branch that you want to merge with (master by default)'\n+command :refresh do |c|\n+  c.flag [:r,:remote], default_value: 'origin'\n+  c.flag [:b,:branch], default_value: 'master'\n+  c.action do |global_options, options, args|\n+    # usage: git reflow refresh [remote_location - defaults to origin] [base_branch_name - defaults to master]\n+    # defaults remote_location to origin\n+    refresh_options = {\n+      'remote' => global_options.key?[:remote] ? global_options[:remote] : 'origin',","path":"lib/git_reflow/commands/refresh.rb","position":19,"original_position":19,"commit_id":"4e5911d1669e391a8244a7f2209074e40dd69cc8","original_commit_id":"4e5911d1669e391a8244a7f2209074e40dd69cc8","user":{"login":"simonzhu24","id":18274144,"avatar_url":"https://avatars.githubusercontent.com/u/18274144?v=3","gravatar_id":"","url":"https://api.github.com/users/simonzhu24","html_url":"https://github.com/simonzhu24","followers_url":"https://api.github.com/users/simonzhu24/followers","following_url":"https://api.github.com/users/simonzhu24/following{/other_user}","gists_url":"https://api.github.com/users/simonzhu24/gists{/gist_id}","starred_url":"https://api.github.com/users/simonzhu24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonzhu24/subscriptions","organizations_url":"https://api.github.com/users/simonzhu24/orgs","repos_url":"https://api.github.com/users/simonzhu24/repos","events_url":"https://api.github.com/users/simonzhu24/events{/privacy}","received_events_url":"https://api.github.com/users/simonzhu24/received_events","type":"User","site_admin":false},"body":"This is a better way of doing it!","created_at":"2016-04-20T18:04:15Z","updated_at":"2016-04-20T18:04:16Z","html_url":"https://github.com/reenhanced/gitreflow/pull/164#discussion_r60458222","pull_request_url":"https://api.github.com/repos/reenhanced/gitreflow/pulls/164","_links":{"self":{"href":"https://api.github.com/repos/reenhanced/gitreflow/pulls/comments/60458222"},"html":{"href":"https://github.com/reenhanced/gitreflow/pull/164#discussion_r60458222"},"pull_request":{"href":"https://api.github.com/repos/reenhanced/gitreflow/pulls/164"}}},"pull_request":{"url":"https://api.github.com/repos/reenhanced/gitreflow/pulls/164","id":66698127,"html_url":"https://github.com/reenhanced/gitreflow/pull/164","diff_url":"https://github.com/reenhanced/gitreflow/pull/164.diff","patch_url":"https://github.com/reenhanced/gitreflow/pull/164.patch","issue_url":"https://api.github.com/repos/reenhanced/gitreflow/issues/164","number":164,"state":"open","locked":false,"title":"[Issue #66 + #74] Implementing \"Git Reflow Refresh\"","user":{"login":"simonzhu24","id":18274144,"avatar_url":"https://avatars.githubusercontent.com/u/18274144?v=3","gravatar_id":"","url":"https://api.github.com/users/simonzhu24","html_url":"https://github.com/simonzhu24","followers_url":"https://api.github.com/users/simonzhu24/followers","following_url":"https://api.github.com/users/simonzhu24/following{/other_user}","gists_url":"https://api.github.com/users/simonzhu24/gists{/gist_id}","starred_url":"https://api.github.com/users/simonzhu24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonzhu24/subscriptions","organizations_url":"https://api.github.com/users/simonzhu24/orgs","repos_url":"https://api.github.com/users/simonzhu24/repos","events_url":"https://api.github.com/users/simonzhu24/events{/privacy}","received_events_url":"https://api.github.com/users/simonzhu24/received_events","type":"User","site_admin":false},"body":"Creating a new command \"Git Reflow Refresh\" to provide a solution to issues 73 + 66.","created_at":"2016-04-15T20:12:17Z","updated_at":"2016-04-20T18:04:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc1c36d1631bdbbf123d926d88eec8203cd80503","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/reenhanced/gitreflow/pulls/164/commits","review_comments_url":"https://api.github.com/repos/reenhanced/gitreflow/pulls/164/comments","review_comment_url":"https://api.github.com/repos/reenhanced/gitreflow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reenhanced/gitreflow/issues/164/comments","statuses_url":"https://api.github.com/repos/reenhanced/gitreflow/statuses/4e5911d1669e391a8244a7f2209074e40dd69cc8","head":{"label":"simonzhu24:sz-issue/73+66-configurable-base-branch-refresh-option","ref":"sz-issue/73+66-configurable-base-branch-refresh-option","sha":"4e5911d1669e391a8244a7f2209074e40dd69cc8","user":{"login":"simonzhu24","id":18274144,"avatar_url":"https://avatars.githubusercontent.com/u/18274144?v=3","gravatar_id":"","url":"https://api.github.com/users/simonzhu24","html_url":"https://github.com/simonzhu24","followers_url":"https://api.github.com/users/simonzhu24/followers","following_url":"https://api.github.com/users/simonzhu24/following{/other_user}","gists_url":"https://api.github.com/users/simonzhu24/gists{/gist_id}","starred_url":"https://api.github.com/users/simonzhu24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonzhu24/subscriptions","organizations_url":"https://api.github.com/users/simonzhu24/orgs","repos_url":"https://api.github.com/users/simonzhu24/repos","events_url":"https://api.github.com/users/simonzhu24/events{/privacy}","received_events_url":"https://api.github.com/users/simonzhu24/received_events","type":"User","site_admin":false},"repo":{"id":55555787,"name":"gitreflow","full_name":"simonzhu24/gitreflow","owner":{"login":"simonzhu24","id":18274144,"avatar_url":"https://avatars.githubusercontent.com/u/18274144?v=3","gravatar_id":"","url":"https://api.github.com/users/simonzhu24","html_url":"https://github.com/simonzhu24","followers_url":"https://api.github.com/users/simonzhu24/followers","following_url":"https://api.github.com/users/simonzhu24/following{/other_user}","gists_url":"https://api.github.com/users/simonzhu24/gists{/gist_id}","starred_url":"https://api.github.com/users/simonzhu24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonzhu24/subscriptions","organizations_url":"https://api.github.com/users/simonzhu24/orgs","repos_url":"https://api.github.com/users/simonzhu24/repos","events_url":"https://api.github.com/users/simonzhu24/events{/privacy}","received_events_url":"https://api.github.com/users/simonzhu24/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/simonzhu24/gitreflow","description":"Reflow automatically creates pull requests, ensures the code review is approved, and squash merges finished branches to master with a great commit message template.","fork":true,"url":"https://api.github.com/repos/simonzhu24/gitreflow","forks_url":"https://api.github.com/repos/simonzhu24/gitreflow/forks","keys_url":"https://api.github.com/repos/simonzhu24/gitreflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simonzhu24/gitreflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simonzhu24/gitreflow/teams","hooks_url":"https://api.github.com/repos/simonzhu24/gitreflow/hooks","issue_events_url":"https://api.github.com/repos/simonzhu24/gitreflow/issues/events{/number}","events_url":"https://api.github.com/repos/simonzhu24/gitreflow/events","assignees_url":"https://api.github.com/repos/simonzhu24/gitreflow/assignees{/user}","branches_url":"https://api.github.com/repos/simonzhu24/gitreflow/branches{/branch}","tags_url":"https://api.github.com/repos/simonzhu24/gitreflow/tags","blobs_url":"https://api.github.com/repos/simonzhu24/gitreflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simonzhu24/gitreflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simonzhu24/gitreflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/simonzhu24/gitreflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simonzhu24/gitreflow/statuses/{sha}","languages_url":"https://api.github.com/repos/simonzhu24/gitreflow/languages","stargazers_url":"https://api.github.com/repos/simonzhu24/gitreflow/stargazers","contributors_url":"https://api.github.com/repos/simonzhu24/gitreflow/contributors","subscribers_url":"https://api.github.com/repos/simonzhu24/gitreflow/subscribers","subscription_url":"https://api.github.com/repos/simonzhu24/gitreflow/subscription","commits_url":"https://api.github.com/repos/simonzhu24/gitreflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/simonzhu24/gitreflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/simonzhu24/gitreflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/simonzhu24/gitreflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/simonzhu24/gitreflow/contents/{+path}","compare_url":"https://api.github.com/repos/simonzhu24/gitreflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simonzhu24/gitreflow/merges","archive_url":"https://api.github.com/repos/simonzhu24/gitreflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simonzhu24/gitreflow/downloads","issues_url":"https://api.github.com/repos/simonzhu24/gitreflow/issues{/number}","pulls_url":"https://api.github.com/repos/simonzhu24/gitreflow/pulls{/number}","milestones_url":"https://api.github.com/repos/simonzhu24/gitreflow/milestones{/number}","notifications_url":"https://api.github.com/repos/simonzhu24/gitreflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simonzhu24/gitreflow/labels{/name}","releases_url":"https://api.github.com/repos/simonzhu24/gitreflow/releases{/id}","deployments_url":"https://api.github.com/repos/simonzhu24/gitreflow/deployments","created_at":"2016-04-05T21:46:45Z","updated_at":"2016-04-05T21:46:46Z","pushed_at":"2016-04-19T19:00:48Z","git_url":"git://github.com/simonzhu24/gitreflow.git","ssh_url":"git@github.com:simonzhu24/gitreflow.git","clone_url":"https://github.com/simonzhu24/gitreflow.git","svn_url":"https://github.com/simonzhu24/gitreflow","homepage":"","size":334,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"reenhanced:master","ref":"master","sha":"7d181cf81306ac7134f4b90b6a4d1d3bdb143392","user":{"login":"reenhanced","id":30651,"avatar_url":"https://avatars.githubusercontent.com/u/30651?v=3","gravatar_id":"","url":"https://api.github.com/users/reenhanced","html_url":"https://github.com/reenhanced","followers_url":"https://api.github.com/users/reenhanced/followers","following_url":"https://api.github.com/users/reenhanced/following{/other_user}","gists_url":"https://api.github.com/users/reenhanced/gists{/gist_id}","starred_url":"https://api.github.com/users/reenhanced/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reenhanced/subscriptions","organizations_url":"https://api.github.com/users/reenhanced/orgs","repos_url":"https://api.github.com/users/reenhanced/repos","events_url":"https://api.github.com/users/reenhanced/events{/privacy}","received_events_url":"https://api.github.com/users/reenhanced/received_events","type":"Organization","site_admin":false},"repo":{"id":3148715,"name":"gitreflow","full_name":"reenhanced/gitreflow","owner":{"login":"reenhanced","id":30651,"avatar_url":"https://avatars.githubusercontent.com/u/30651?v=3","gravatar_id":"","url":"https://api.github.com/users/reenhanced","html_url":"https://github.com/reenhanced","followers_url":"https://api.github.com/users/reenhanced/followers","following_url":"https://api.github.com/users/reenhanced/following{/other_user}","gists_url":"https://api.github.com/users/reenhanced/gists{/gist_id}","starred_url":"https://api.github.com/users/reenhanced/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reenhanced/subscriptions","organizations_url":"https://api.github.com/users/reenhanced/orgs","repos_url":"https://api.github.com/users/reenhanced/repos","events_url":"https://api.github.com/users/reenhanced/events{/privacy}","received_events_url":"https://api.github.com/users/reenhanced/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/reenhanced/gitreflow","description":"Reflow automatically creates pull requests, ensures the code review is approved, and squash merges finished branches to master with a great commit message template.","fork":false,"url":"https://api.github.com/repos/reenhanced/gitreflow","forks_url":"https://api.github.com/repos/reenhanced/gitreflow/forks","keys_url":"https://api.github.com/repos/reenhanced/gitreflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reenhanced/gitreflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reenhanced/gitreflow/teams","hooks_url":"https://api.github.com/repos/reenhanced/gitreflow/hooks","issue_events_url":"https://api.github.com/repos/reenhanced/gitreflow/issues/events{/number}","events_url":"https://api.github.com/repos/reenhanced/gitreflow/events","assignees_url":"https://api.github.com/repos/reenhanced/gitreflow/assignees{/user}","branches_url":"https://api.github.com/repos/reenhanced/gitreflow/branches{/branch}","tags_url":"https://api.github.com/repos/reenhanced/gitreflow/tags","blobs_url":"https://api.github.com/repos/reenhanced/gitreflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reenhanced/gitreflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reenhanced/gitreflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/reenhanced/gitreflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reenhanced/gitreflow/statuses/{sha}","languages_url":"https://api.github.com/repos/reenhanced/gitreflow/languages","stargazers_url":"https://api.github.com/repos/reenhanced/gitreflow/stargazers","contributors_url":"https://api.github.com/repos/reenhanced/gitreflow/contributors","subscribers_url":"https://api.github.com/repos/reenhanced/gitreflow/subscribers","subscription_url":"https://api.github.com/repos/reenhanced/gitreflow/subscription","commits_url":"https://api.github.com/repos/reenhanced/gitreflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/reenhanced/gitreflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/reenhanced/gitreflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/reenhanced/gitreflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/reenhanced/gitreflow/contents/{+path}","compare_url":"https://api.github.com/repos/reenhanced/gitreflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reenhanced/gitreflow/merges","archive_url":"https://api.github.com/repos/reenhanced/gitreflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reenhanced/gitreflow/downloads","issues_url":"https://api.github.com/repos/reenhanced/gitreflow/issues{/number}","pulls_url":"https://api.github.com/repos/reenhanced/gitreflow/pulls{/number}","milestones_url":"https://api.github.com/repos/reenhanced/gitreflow/milestones{/number}","notifications_url":"https://api.github.com/repos/reenhanced/gitreflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reenhanced/gitreflow/labels{/name}","releases_url":"https://api.github.com/repos/reenhanced/gitreflow/releases{/id}","deployments_url":"https://api.github.com/repos/reenhanced/gitreflow/deployments","created_at":"2012-01-10T21:15:52Z","updated_at":"2016-04-19T21:14:37Z","pushed_at":"2016-04-19T19:00:49Z","git_url":"git://github.com/reenhanced/gitreflow.git","ssh_url":"git@github.com:reenhanced/gitreflow.git","clone_url":"https://github.com/reenhanced/gitreflow.git","svn_url":"https://github.com/reenhanced/gitreflow","homepage":"","size":594,"stargazers_count":312,"watchers_count":312,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":22,"forks":36,"open_issues":22,"watchers":312,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reenhanced/gitreflow/pulls/164"},"html":{"href":"https://github.com/reenhanced/gitreflow/pull/164"},"issue":{"href":"https://api.github.com/repos/reenhanced/gitreflow/issues/164"},"comments":{"href":"https://api.github.com/repos/reenhanced/gitreflow/issues/164/comments"},"review_comments":{"href":"https://api.github.com/repos/reenhanced/gitreflow/pulls/164/comments"},"review_comment":{"href":"https://api.github.com/repos/reenhanced/gitreflow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reenhanced/gitreflow/pulls/164/commits"},"statuses":{"href":"https://api.github.com/repos/reenhanced/gitreflow/statuses/4e5911d1669e391a8244a7f2209074e40dd69cc8"}}}}