{"action":"created","comment":{"url":"https://api.github.com/repos/neovim/neovim/pulls/comments/62938126","id":62938126,"diff_hunk":"@@ -196,36 +213,49 @@ submit_pr() {\n   check_executable hub\n \n   cd \"${NEOVIM_SOURCE_DIR}\"\n-  local checked_out_branch=\"$(git rev-parse --abbrev-ref HEAD)\"\n+  local checked_out_branch\n+  checked_out_branch=\"$(git rev-parse --abbrev-ref HEAD)\"\n   if [[ \"${checked_out_branch}\" != ${BRANCH_PREFIX}* ]]; then\n     echo \"✘ Current branch '${checked_out_branch}' doesn't seem to be a vim-patch branch.\"\n     exit 1\n   fi\n \n-  local git_remote=$(find_git_remote)\n-  local pr_body=\"$(git log --reverse --format='#### %s%n%n%b%n' ${git_remote}/master..HEAD)\"\n-  local patches=(\"$(git log --reverse --format='%s' ${git_remote}/master..HEAD)\")\n+  local git_remote\n+  git_remote=$(find_git_remote)","path":"scripts/vim-patch.sh","position":113,"original_position":113,"commit_id":"429a9f7f3aaca1435e05afad6a77add7af51e041","original_commit_id":"429a9f7f3aaca1435e05afad6a77add7af51e041","user":{"login":"ZyX-I","id":322097,"avatar_url":"https://avatars.githubusercontent.com/u/322097?v=3","gravatar_id":"","url":"https://api.github.com/users/ZyX-I","html_url":"https://github.com/ZyX-I","followers_url":"https://api.github.com/users/ZyX-I/followers","following_url":"https://api.github.com/users/ZyX-I/following{/other_user}","gists_url":"https://api.github.com/users/ZyX-I/gists{/gist_id}","starred_url":"https://api.github.com/users/ZyX-I/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZyX-I/subscriptions","organizations_url":"https://api.github.com/users/ZyX-I/orgs","repos_url":"https://api.github.com/users/ZyX-I/repos","events_url":"https://api.github.com/users/ZyX-I/events{/privacy}","received_events_url":"https://api.github.com/users/ZyX-I/received_events","type":"User","site_admin":false},"body":"quotes","created_at":"2016-05-11T22:27:58Z","updated_at":"2016-05-11T22:27:58Z","html_url":"https://github.com/neovim/neovim/pull/4742#discussion_r62938126","pull_request_url":"https://api.github.com/repos/neovim/neovim/pulls/4742","_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments/62938126"},"html":{"href":"https://github.com/neovim/neovim/pull/4742#discussion_r62938126"},"pull_request":{"href":"https://api.github.com/repos/neovim/neovim/pulls/4742"}}},"pull_request":{"url":"https://api.github.com/repos/neovim/neovim/pulls/4742","id":69751091,"html_url":"https://github.com/neovim/neovim/pull/4742","diff_url":"https://github.com/neovim/neovim/pull/4742.diff","patch_url":"https://github.com/neovim/neovim/pull/4742.patch","issue_url":"https://api.github.com/repos/neovim/neovim/issues/4742","number":4742,"state":"open","locked":false,"title":"[RFC] Run shellcheck (shell scripting linter) on shell scripts.","user":{"login":"brcolow","id":6589866,"avatar_url":"https://avatars.githubusercontent.com/u/6589866?v=3","gravatar_id":"","url":"https://api.github.com/users/brcolow","html_url":"https://github.com/brcolow","followers_url":"https://api.github.com/users/brcolow/followers","following_url":"https://api.github.com/users/brcolow/following{/other_user}","gists_url":"https://api.github.com/users/brcolow/gists{/gist_id}","starred_url":"https://api.github.com/users/brcolow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brcolow/subscriptions","organizations_url":"https://api.github.com/users/brcolow/orgs","repos_url":"https://api.github.com/users/brcolow/repos","events_url":"https://api.github.com/users/brcolow/events{/privacy}","received_events_url":"https://api.github.com/users/brcolow/received_events","type":"User","site_admin":false},"body":"There are a total of 5 shell scripts in the Neovim source tree.\r\nAll but runtime\\macros\\less.sh had warnings/errors when run through\r\nShellcheck (http://www.shellcheck.net/).\r\n\r\nThis commit fixes all warnings/errors and also changes the shebang to\r\n\"#!/bin/sh\" when possible (this was not possible for vim-patch.sh\r\nbecause it uses many bashisms).","created_at":"2016-05-11T22:12:27Z","updated_at":"2016-05-11T22:27:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9624f91dc6dfc330a6b71a4d571771f73ecc2cc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/neovim/neovim/pulls/4742/commits","review_comments_url":"https://api.github.com/repos/neovim/neovim/pulls/4742/comments","review_comment_url":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/4742/comments","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/429a9f7f3aaca1435e05afad6a77add7af51e041","head":{"label":"brcolow:shellcheck-lint","ref":"shellcheck-lint","sha":"429a9f7f3aaca1435e05afad6a77add7af51e041","user":{"login":"brcolow","id":6589866,"avatar_url":"https://avatars.githubusercontent.com/u/6589866?v=3","gravatar_id":"","url":"https://api.github.com/users/brcolow","html_url":"https://github.com/brcolow","followers_url":"https://api.github.com/users/brcolow/followers","following_url":"https://api.github.com/users/brcolow/following{/other_user}","gists_url":"https://api.github.com/users/brcolow/gists{/gist_id}","starred_url":"https://api.github.com/users/brcolow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brcolow/subscriptions","organizations_url":"https://api.github.com/users/brcolow/orgs","repos_url":"https://api.github.com/users/brcolow/repos","events_url":"https://api.github.com/users/brcolow/events{/privacy}","received_events_url":"https://api.github.com/users/brcolow/received_events","type":"User","site_admin":false},"repo":{"id":48091740,"name":"neovim","full_name":"brcolow/neovim","owner":{"login":"brcolow","id":6589866,"avatar_url":"https://avatars.githubusercontent.com/u/6589866?v=3","gravatar_id":"","url":"https://api.github.com/users/brcolow","html_url":"https://github.com/brcolow","followers_url":"https://api.github.com/users/brcolow/followers","following_url":"https://api.github.com/users/brcolow/following{/other_user}","gists_url":"https://api.github.com/users/brcolow/gists{/gist_id}","starred_url":"https://api.github.com/users/brcolow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brcolow/subscriptions","organizations_url":"https://api.github.com/users/brcolow/orgs","repos_url":"https://api.github.com/users/brcolow/repos","events_url":"https://api.github.com/users/brcolow/events{/privacy}","received_events_url":"https://api.github.com/users/brcolow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brcolow/neovim","description":"Vim-fork focused on extensibility and agility. Consider helping sustain Neovim development! ","fork":true,"url":"https://api.github.com/repos/brcolow/neovim","forks_url":"https://api.github.com/repos/brcolow/neovim/forks","keys_url":"https://api.github.com/repos/brcolow/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brcolow/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brcolow/neovim/teams","hooks_url":"https://api.github.com/repos/brcolow/neovim/hooks","issue_events_url":"https://api.github.com/repos/brcolow/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/brcolow/neovim/events","assignees_url":"https://api.github.com/repos/brcolow/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/brcolow/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/brcolow/neovim/tags","blobs_url":"https://api.github.com/repos/brcolow/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brcolow/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brcolow/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/brcolow/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brcolow/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/brcolow/neovim/languages","stargazers_url":"https://api.github.com/repos/brcolow/neovim/stargazers","contributors_url":"https://api.github.com/repos/brcolow/neovim/contributors","subscribers_url":"https://api.github.com/repos/brcolow/neovim/subscribers","subscription_url":"https://api.github.com/repos/brcolow/neovim/subscription","commits_url":"https://api.github.com/repos/brcolow/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/brcolow/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/brcolow/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/brcolow/neovim/issues/comments{/number}","contents_url":"https://api.github.com/repos/brcolow/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/brcolow/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brcolow/neovim/merges","archive_url":"https://api.github.com/repos/brcolow/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brcolow/neovim/downloads","issues_url":"https://api.github.com/repos/brcolow/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/brcolow/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/brcolow/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/brcolow/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brcolow/neovim/labels{/name}","releases_url":"https://api.github.com/repos/brcolow/neovim/releases{/id}","deployments_url":"https://api.github.com/repos/brcolow/neovim/deployments","created_at":"2015-12-16T06:21:17Z","updated_at":"2016-01-13T23:08:26Z","pushed_at":"2016-05-11T22:13:31Z","git_url":"git://github.com/brcolow/neovim.git","ssh_url":"git@github.com:brcolow/neovim.git","clone_url":"https://github.com/brcolow/neovim.git","svn_url":"https://github.com/brcolow/neovim","homepage":"https://salt.bountysource.com/teams/neovim","size":40116,"stargazers_count":0,"watchers_count":0,"language":"VimL","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":"neovim:master","ref":"master","sha":"a5a1768918286ef3ac4181b45b8b7eafb37767ac","user":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"repo":{"id":16408992,"name":"neovim","full_name":"neovim/neovim","owner":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/neovim/neovim","description":"Vim-fork focused on extensibility and agility.","fork":false,"url":"https://api.github.com/repos/neovim/neovim","forks_url":"https://api.github.com/repos/neovim/neovim/forks","keys_url":"https://api.github.com/repos/neovim/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neovim/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neovim/neovim/teams","hooks_url":"https://api.github.com/repos/neovim/neovim/hooks","issue_events_url":"https://api.github.com/repos/neovim/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/neovim/neovim/events","assignees_url":"https://api.github.com/repos/neovim/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/neovim/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/neovim/neovim/tags","blobs_url":"https://api.github.com/repos/neovim/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neovim/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neovim/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/neovim/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/neovim/neovim/languages","stargazers_url":"https://api.github.com/repos/neovim/neovim/stargazers","contributors_url":"https://api.github.com/repos/neovim/neovim/contributors","subscribers_url":"https://api.github.com/repos/neovim/neovim/subscribers","subscription_url":"https://api.github.com/repos/neovim/neovim/subscription","commits_url":"https://api.github.com/repos/neovim/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/neovim/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/neovim/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/neovim/neovim/issues/comments{/number}","contents_url":"https://api.github.com/repos/neovim/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/neovim/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neovim/neovim/merges","archive_url":"https://api.github.com/repos/neovim/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neovim/neovim/downloads","issues_url":"https://api.github.com/repos/neovim/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/neovim/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/neovim/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/neovim/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neovim/neovim/labels{/name}","releases_url":"https://api.github.com/repos/neovim/neovim/releases{/id}","deployments_url":"https://api.github.com/repos/neovim/neovim/deployments","created_at":"2014-01-31T13:39:22Z","updated_at":"2016-05-11T20:45:55Z","pushed_at":"2016-05-11T22:13:31Z","git_url":"git://github.com/neovim/neovim.git","ssh_url":"git@github.com:neovim/neovim.git","clone_url":"https://github.com/neovim/neovim.git","svn_url":"https://github.com/neovim/neovim","homepage":"https://salt.bountysource.com/teams/neovim","size":67534,"stargazers_count":18637,"watchers_count":18637,"language":"VimL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1312,"mirror_url":null,"open_issues_count":712,"forks":1312,"open_issues":712,"watchers":18637,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/4742"},"html":{"href":"https://github.com/neovim/neovim/pull/4742"},"issue":{"href":"https://api.github.com/repos/neovim/neovim/issues/4742"},"comments":{"href":"https://api.github.com/repos/neovim/neovim/issues/4742/comments"},"review_comments":{"href":"https://api.github.com/repos/neovim/neovim/pulls/4742/comments"},"review_comment":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neovim/neovim/pulls/4742/commits"},"statuses":{"href":"https://api.github.com/repos/neovim/neovim/statuses/429a9f7f3aaca1435e05afad6a77add7af51e041"}}}}