{"action":"opened","number":13,"pull_request":{"url":"https://api.github.com/repos/joefitzgerald/gofmt/pulls/13","id":64887218,"html_url":"https://github.com/joefitzgerald/gofmt/pull/13","diff_url":"https://github.com/joefitzgerald/gofmt/pull/13.diff","patch_url":"https://github.com/joefitzgerald/gofmt/pull/13.patch","issue_url":"https://api.github.com/repos/joefitzgerald/gofmt/issues/13","number":13,"state":"open","locked":false,"title":"Use endsWith for checking if using goimports","user":{"login":"leetrout","id":524648,"avatar_url":"https://avatars.githubusercontent.com/u/524648?v=3","gravatar_id":"","url":"https://api.github.com/users/leetrout","html_url":"https://github.com/leetrout","followers_url":"https://api.github.com/users/leetrout/followers","following_url":"https://api.github.com/users/leetrout/following{/other_user}","gists_url":"https://api.github.com/users/leetrout/gists{/gist_id}","starred_url":"https://api.github.com/users/leetrout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leetrout/subscriptions","organizations_url":"https://api.github.com/users/leetrout/orgs","repos_url":"https://api.github.com/users/leetrout/repos","events_url":"https://api.github.com/users/leetrout/events{/privacy}","received_events_url":"https://api.github.com/users/leetrout/received_events","type":"User","site_admin":false},"body":"`formatCmd` will be a full path such as \"/Users/yhat/gopath/bin/goimports\" and as such endsWith, not startsWith, correctly checks for the usage of this tool.\r\n\r\nThis resolves #11.","created_at":"2016-04-01T02:20:39Z","updated_at":"2016-04-01T02:20:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/joefitzgerald/gofmt/pulls/13/commits","review_comments_url":"https://api.github.com/repos/joefitzgerald/gofmt/pulls/13/comments","review_comment_url":"https://api.github.com/repos/joefitzgerald/gofmt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joefitzgerald/gofmt/issues/13/comments","statuses_url":"https://api.github.com/repos/joefitzgerald/gofmt/statuses/0609556fa362261eb85b4f99ac3529e02cba2d62","head":{"label":"leetrout:patch-1","ref":"patch-1","sha":"0609556fa362261eb85b4f99ac3529e02cba2d62","user":{"login":"leetrout","id":524648,"avatar_url":"https://avatars.githubusercontent.com/u/524648?v=3","gravatar_id":"","url":"https://api.github.com/users/leetrout","html_url":"https://github.com/leetrout","followers_url":"https://api.github.com/users/leetrout/followers","following_url":"https://api.github.com/users/leetrout/following{/other_user}","gists_url":"https://api.github.com/users/leetrout/gists{/gist_id}","starred_url":"https://api.github.com/users/leetrout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leetrout/subscriptions","organizations_url":"https://api.github.com/users/leetrout/orgs","repos_url":"https://api.github.com/users/leetrout/repos","events_url":"https://api.github.com/users/leetrout/events{/privacy}","received_events_url":"https://api.github.com/users/leetrout/received_events","type":"User","site_admin":false},"repo":{"id":55197093,"name":"gofmt","full_name":"leetrout/gofmt","owner":{"login":"leetrout","id":524648,"avatar_url":"https://avatars.githubusercontent.com/u/524648?v=3","gravatar_id":"","url":"https://api.github.com/users/leetrout","html_url":"https://github.com/leetrout","followers_url":"https://api.github.com/users/leetrout/followers","following_url":"https://api.github.com/users/leetrout/following{/other_user}","gists_url":"https://api.github.com/users/leetrout/gists{/gist_id}","starred_url":"https://api.github.com/users/leetrout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leetrout/subscriptions","organizations_url":"https://api.github.com/users/leetrout/orgs","repos_url":"https://api.github.com/users/leetrout/repos","events_url":"https://api.github.com/users/leetrout/events{/privacy}","received_events_url":"https://api.github.com/users/leetrout/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leetrout/gofmt","description":"Atom Package For Running gofmt / goimports / goreturns","fork":true,"url":"https://api.github.com/repos/leetrout/gofmt","forks_url":"https://api.github.com/repos/leetrout/gofmt/forks","keys_url":"https://api.github.com/repos/leetrout/gofmt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leetrout/gofmt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leetrout/gofmt/teams","hooks_url":"https://api.github.com/repos/leetrout/gofmt/hooks","issue_events_url":"https://api.github.com/repos/leetrout/gofmt/issues/events{/number}","events_url":"https://api.github.com/repos/leetrout/gofmt/events","assignees_url":"https://api.github.com/repos/leetrout/gofmt/assignees{/user}","branches_url":"https://api.github.com/repos/leetrout/gofmt/branches{/branch}","tags_url":"https://api.github.com/repos/leetrout/gofmt/tags","blobs_url":"https://api.github.com/repos/leetrout/gofmt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leetrout/gofmt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leetrout/gofmt/git/refs{/sha}","trees_url":"https://api.github.com/repos/leetrout/gofmt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leetrout/gofmt/statuses/{sha}","languages_url":"https://api.github.com/repos/leetrout/gofmt/languages","stargazers_url":"https://api.github.com/repos/leetrout/gofmt/stargazers","contributors_url":"https://api.github.com/repos/leetrout/gofmt/contributors","subscribers_url":"https://api.github.com/repos/leetrout/gofmt/subscribers","subscription_url":"https://api.github.com/repos/leetrout/gofmt/subscription","commits_url":"https://api.github.com/repos/leetrout/gofmt/commits{/sha}","git_commits_url":"https://api.github.com/repos/leetrout/gofmt/git/commits{/sha}","comments_url":"https://api.github.com/repos/leetrout/gofmt/comments{/number}","issue_comment_url":"https://api.github.com/repos/leetrout/gofmt/issues/comments{/number}","contents_url":"https://api.github.com/repos/leetrout/gofmt/contents/{+path}","compare_url":"https://api.github.com/repos/leetrout/gofmt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leetrout/gofmt/merges","archive_url":"https://api.github.com/repos/leetrout/gofmt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leetrout/gofmt/downloads","issues_url":"https://api.github.com/repos/leetrout/gofmt/issues{/number}","pulls_url":"https://api.github.com/repos/leetrout/gofmt/pulls{/number}","milestones_url":"https://api.github.com/repos/leetrout/gofmt/milestones{/number}","notifications_url":"https://api.github.com/repos/leetrout/gofmt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leetrout/gofmt/labels{/name}","releases_url":"https://api.github.com/repos/leetrout/gofmt/releases{/id}","deployments_url":"https://api.github.com/repos/leetrout/gofmt/deployments","created_at":"2016-04-01T02:17:06Z","updated_at":"2016-04-01T02:17:08Z","pushed_at":"2016-04-01T02:20:02Z","git_url":"git://github.com/leetrout/gofmt.git","ssh_url":"git@github.com:leetrout/gofmt.git","clone_url":"https://github.com/leetrout/gofmt.git","svn_url":"https://github.com/leetrout/gofmt","homepage":null,"size":32,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"joefitzgerald:master","ref":"master","sha":"d271dcb468e1f894cf5948987b9c570ec50c195a","user":{"login":"joefitzgerald","id":744740,"avatar_url":"https://avatars.githubusercontent.com/u/744740?v=3","gravatar_id":"","url":"https://api.github.com/users/joefitzgerald","html_url":"https://github.com/joefitzgerald","followers_url":"https://api.github.com/users/joefitzgerald/followers","following_url":"https://api.github.com/users/joefitzgerald/following{/other_user}","gists_url":"https://api.github.com/users/joefitzgerald/gists{/gist_id}","starred_url":"https://api.github.com/users/joefitzgerald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joefitzgerald/subscriptions","organizations_url":"https://api.github.com/users/joefitzgerald/orgs","repos_url":"https://api.github.com/users/joefitzgerald/repos","events_url":"https://api.github.com/users/joefitzgerald/events{/privacy}","received_events_url":"https://api.github.com/users/joefitzgerald/received_events","type":"User","site_admin":false},"repo":{"id":51360662,"name":"gofmt","full_name":"joefitzgerald/gofmt","owner":{"login":"joefitzgerald","id":744740,"avatar_url":"https://avatars.githubusercontent.com/u/744740?v=3","gravatar_id":"","url":"https://api.github.com/users/joefitzgerald","html_url":"https://github.com/joefitzgerald","followers_url":"https://api.github.com/users/joefitzgerald/followers","following_url":"https://api.github.com/users/joefitzgerald/following{/other_user}","gists_url":"https://api.github.com/users/joefitzgerald/gists{/gist_id}","starred_url":"https://api.github.com/users/joefitzgerald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joefitzgerald/subscriptions","organizations_url":"https://api.github.com/users/joefitzgerald/orgs","repos_url":"https://api.github.com/users/joefitzgerald/repos","events_url":"https://api.github.com/users/joefitzgerald/events{/privacy}","received_events_url":"https://api.github.com/users/joefitzgerald/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joefitzgerald/gofmt","description":"Atom Package For Running gofmt / goimports / goreturns","fork":false,"url":"https://api.github.com/repos/joefitzgerald/gofmt","forks_url":"https://api.github.com/repos/joefitzgerald/gofmt/forks","keys_url":"https://api.github.com/repos/joefitzgerald/gofmt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joefitzgerald/gofmt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joefitzgerald/gofmt/teams","hooks_url":"https://api.github.com/repos/joefitzgerald/gofmt/hooks","issue_events_url":"https://api.github.com/repos/joefitzgerald/gofmt/issues/events{/number}","events_url":"https://api.github.com/repos/joefitzgerald/gofmt/events","assignees_url":"https://api.github.com/repos/joefitzgerald/gofmt/assignees{/user}","branches_url":"https://api.github.com/repos/joefitzgerald/gofmt/branches{/branch}","tags_url":"https://api.github.com/repos/joefitzgerald/gofmt/tags","blobs_url":"https://api.github.com/repos/joefitzgerald/gofmt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joefitzgerald/gofmt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joefitzgerald/gofmt/git/refs{/sha}","trees_url":"https://api.github.com/repos/joefitzgerald/gofmt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joefitzgerald/gofmt/statuses/{sha}","languages_url":"https://api.github.com/repos/joefitzgerald/gofmt/languages","stargazers_url":"https://api.github.com/repos/joefitzgerald/gofmt/stargazers","contributors_url":"https://api.github.com/repos/joefitzgerald/gofmt/contributors","subscribers_url":"https://api.github.com/repos/joefitzgerald/gofmt/subscribers","subscription_url":"https://api.github.com/repos/joefitzgerald/gofmt/subscription","commits_url":"https://api.github.com/repos/joefitzgerald/gofmt/commits{/sha}","git_commits_url":"https://api.github.com/repos/joefitzgerald/gofmt/git/commits{/sha}","comments_url":"https://api.github.com/repos/joefitzgerald/gofmt/comments{/number}","issue_comment_url":"https://api.github.com/repos/joefitzgerald/gofmt/issues/comments{/number}","contents_url":"https://api.github.com/repos/joefitzgerald/gofmt/contents/{+path}","compare_url":"https://api.github.com/repos/joefitzgerald/gofmt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joefitzgerald/gofmt/merges","archive_url":"https://api.github.com/repos/joefitzgerald/gofmt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joefitzgerald/gofmt/downloads","issues_url":"https://api.github.com/repos/joefitzgerald/gofmt/issues{/number}","pulls_url":"https://api.github.com/repos/joefitzgerald/gofmt/pulls{/number}","milestones_url":"https://api.github.com/repos/joefitzgerald/gofmt/milestones{/number}","notifications_url":"https://api.github.com/repos/joefitzgerald/gofmt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joefitzgerald/gofmt/labels{/name}","releases_url":"https://api.github.com/repos/joefitzgerald/gofmt/releases{/id}","deployments_url":"https://api.github.com/repos/joefitzgerald/gofmt/deployments","created_at":"2016-02-09T10:41:25Z","updated_at":"2016-03-18T01:19:24Z","pushed_at":"2016-03-22T17:25:26Z","git_url":"git://github.com/joefitzgerald/gofmt.git","ssh_url":"git@github.com:joefitzgerald/gofmt.git","clone_url":"https://github.com/joefitzgerald/gofmt.git","svn_url":"https://github.com/joefitzgerald/gofmt","homepage":null,"size":32,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/joefitzgerald/gofmt/pulls/13"},"html":{"href":"https://github.com/joefitzgerald/gofmt/pull/13"},"issue":{"href":"https://api.github.com/repos/joefitzgerald/gofmt/issues/13"},"comments":{"href":"https://api.github.com/repos/joefitzgerald/gofmt/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/joefitzgerald/gofmt/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/joefitzgerald/gofmt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joefitzgerald/gofmt/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/joefitzgerald/gofmt/statuses/0609556fa362261eb85b4f99ac3529e02cba2d62"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}