{"action":"created","comment":{"url":"https://api.github.com/repos/fastlane/fastlane/pulls/comments/65261845","id":65261845,"diff_hunk":"@@ -4,6 +4,12 @@ class InstallXcodePluginAction < Action\n       def self.run(params)\n         require 'fileutils'\n \n+        if params.fetch(:github, ask: false)\n+          github_api_url = params[:github].sub('https://github.com', 'https://api.github.com/repos')\n+          release = self.fetch_json(github_api_url + '/releases/latest')\n+          params[:url] = release['assets'][0]['browser_download_url']","path":"fastlane/lib/fastlane/actions/install_xcode_plugin.rb","position":null,"original_position":7,"commit_id":"c2ad4780452318c1826849bc8947580ceb370a41","original_commit_id":"3b34b969f136d6f78e5428852b7855b3e6575a83","user":{"login":"neonichu","id":118992,"avatar_url":"https://avatars.githubusercontent.com/u/118992?v=3","gravatar_id":"","url":"https://api.github.com/users/neonichu","html_url":"https://github.com/neonichu","followers_url":"https://api.github.com/users/neonichu/followers","following_url":"https://api.github.com/users/neonichu/following{/other_user}","gists_url":"https://api.github.com/users/neonichu/gists{/gist_id}","starred_url":"https://api.github.com/users/neonichu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neonichu/subscriptions","organizations_url":"https://api.github.com/users/neonichu/orgs","repos_url":"https://api.github.com/users/neonichu/repos","events_url":"https://api.github.com/users/neonichu/events{/privacy}","received_events_url":"https://api.github.com/users/neonichu/received_events","type":"User","site_admin":false},"body":"Showing a generic error when GH errors and a specific one for missing latest release now.","created_at":"2016-05-31T20:59:58Z","updated_at":"2016-05-31T20:59:58Z","html_url":"https://github.com/fastlane/fastlane/pull/4911#discussion_r65261845","pull_request_url":"https://api.github.com/repos/fastlane/fastlane/pulls/4911","_links":{"self":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/comments/65261845"},"html":{"href":"https://github.com/fastlane/fastlane/pull/4911#discussion_r65261845"},"pull_request":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/4911"}}},"pull_request":{"url":"https://api.github.com/repos/fastlane/fastlane/pulls/4911","id":71971377,"html_url":"https://github.com/fastlane/fastlane/pull/4911","diff_url":"https://github.com/fastlane/fastlane/pull/4911.diff","patch_url":"https://github.com/fastlane/fastlane/pull/4911.patch","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/4911","number":4911,"state":"open","locked":false,"title":"Install latest release for an Xcode plugin","user":{"login":"neonichu","id":118992,"avatar_url":"https://avatars.githubusercontent.com/u/118992?v=3","gravatar_id":"","url":"https://api.github.com/users/neonichu","html_url":"https://github.com/neonichu","followers_url":"https://api.github.com/users/neonichu/followers","following_url":"https://api.github.com/users/neonichu/following{/other_user}","gists_url":"https://api.github.com/users/neonichu/gists{/gist_id}","starred_url":"https://api.github.com/users/neonichu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neonichu/subscriptions","organizations_url":"https://api.github.com/users/neonichu/orgs","repos_url":"https://api.github.com/users/neonichu/repos","events_url":"https://api.github.com/users/neonichu/events{/privacy}","received_events_url":"https://api.github.com/users/neonichu/received_events","type":"User","site_admin":false},"body":"Using the `github` option instead of `url`, fastlane can now determine the URL for the latest version of a plugin automatically.","created_at":"2016-05-31T07:46:26Z","updated_at":"2016-05-31T20:59:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c28a3de56b18633c08a4026e8c68bff8a9f15eb","assignee":{"login":"KrauseFx","id":869950,"avatar_url":"https://avatars.githubusercontent.com/u/869950?v=3","gravatar_id":"","url":"https://api.github.com/users/KrauseFx","html_url":"https://github.com/KrauseFx","followers_url":"https://api.github.com/users/KrauseFx/followers","following_url":"https://api.github.com/users/KrauseFx/following{/other_user}","gists_url":"https://api.github.com/users/KrauseFx/gists{/gist_id}","starred_url":"https://api.github.com/users/KrauseFx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrauseFx/subscriptions","organizations_url":"https://api.github.com/users/KrauseFx/orgs","repos_url":"https://api.github.com/users/KrauseFx/repos","events_url":"https://api.github.com/users/KrauseFx/events{/privacy}","received_events_url":"https://api.github.com/users/KrauseFx/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/fastlane/fastlane/pulls/4911/commits","review_comments_url":"https://api.github.com/repos/fastlane/fastlane/pulls/4911/comments","review_comment_url":"https://api.github.com/repos/fastlane/fastlane/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/4911/comments","statuses_url":"https://api.github.com/repos/fastlane/fastlane/statuses/c2ad4780452318c1826849bc8947580ceb370a41","head":{"label":"neonichu:add-latest-release-option-to-install-xcode-plugin-action","ref":"add-latest-release-option-to-install-xcode-plugin-action","sha":"c2ad4780452318c1826849bc8947580ceb370a41","user":{"login":"neonichu","id":118992,"avatar_url":"https://avatars.githubusercontent.com/u/118992?v=3","gravatar_id":"","url":"https://api.github.com/users/neonichu","html_url":"https://github.com/neonichu","followers_url":"https://api.github.com/users/neonichu/followers","following_url":"https://api.github.com/users/neonichu/following{/other_user}","gists_url":"https://api.github.com/users/neonichu/gists{/gist_id}","starred_url":"https://api.github.com/users/neonichu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neonichu/subscriptions","organizations_url":"https://api.github.com/users/neonichu/orgs","repos_url":"https://api.github.com/users/neonichu/repos","events_url":"https://api.github.com/users/neonichu/events{/privacy}","received_events_url":"https://api.github.com/users/neonichu/received_events","type":"User","site_admin":false},"repo":{"id":29309254,"name":"fastlane","full_name":"neonichu/fastlane","owner":{"login":"neonichu","id":118992,"avatar_url":"https://avatars.githubusercontent.com/u/118992?v=3","gravatar_id":"","url":"https://api.github.com/users/neonichu","html_url":"https://github.com/neonichu","followers_url":"https://api.github.com/users/neonichu/followers","following_url":"https://api.github.com/users/neonichu/following{/other_user}","gists_url":"https://api.github.com/users/neonichu/gists{/gist_id}","starred_url":"https://api.github.com/users/neonichu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neonichu/subscriptions","organizations_url":"https://api.github.com/users/neonichu/orgs","repos_url":"https://api.github.com/users/neonichu/repos","events_url":"https://api.github.com/users/neonichu/events{/privacy}","received_events_url":"https://api.github.com/users/neonichu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/neonichu/fastlane","description":"Connect all iOS deployment tools into one streamlined workflow","fork":true,"url":"https://api.github.com/repos/neonichu/fastlane","forks_url":"https://api.github.com/repos/neonichu/fastlane/forks","keys_url":"https://api.github.com/repos/neonichu/fastlane/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neonichu/fastlane/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neonichu/fastlane/teams","hooks_url":"https://api.github.com/repos/neonichu/fastlane/hooks","issue_events_url":"https://api.github.com/repos/neonichu/fastlane/issues/events{/number}","events_url":"https://api.github.com/repos/neonichu/fastlane/events","assignees_url":"https://api.github.com/repos/neonichu/fastlane/assignees{/user}","branches_url":"https://api.github.com/repos/neonichu/fastlane/branches{/branch}","tags_url":"https://api.github.com/repos/neonichu/fastlane/tags","blobs_url":"https://api.github.com/repos/neonichu/fastlane/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neonichu/fastlane/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neonichu/fastlane/git/refs{/sha}","trees_url":"https://api.github.com/repos/neonichu/fastlane/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neonichu/fastlane/statuses/{sha}","languages_url":"https://api.github.com/repos/neonichu/fastlane/languages","stargazers_url":"https://api.github.com/repos/neonichu/fastlane/stargazers","contributors_url":"https://api.github.com/repos/neonichu/fastlane/contributors","subscribers_url":"https://api.github.com/repos/neonichu/fastlane/subscribers","subscription_url":"https://api.github.com/repos/neonichu/fastlane/subscription","commits_url":"https://api.github.com/repos/neonichu/fastlane/commits{/sha}","git_commits_url":"https://api.github.com/repos/neonichu/fastlane/git/commits{/sha}","comments_url":"https://api.github.com/repos/neonichu/fastlane/comments{/number}","issue_comment_url":"https://api.github.com/repos/neonichu/fastlane/issues/comments{/number}","contents_url":"https://api.github.com/repos/neonichu/fastlane/contents/{+path}","compare_url":"https://api.github.com/repos/neonichu/fastlane/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neonichu/fastlane/merges","archive_url":"https://api.github.com/repos/neonichu/fastlane/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neonichu/fastlane/downloads","issues_url":"https://api.github.com/repos/neonichu/fastlane/issues{/number}","pulls_url":"https://api.github.com/repos/neonichu/fastlane/pulls{/number}","milestones_url":"https://api.github.com/repos/neonichu/fastlane/milestones{/number}","notifications_url":"https://api.github.com/repos/neonichu/fastlane/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neonichu/fastlane/labels{/name}","releases_url":"https://api.github.com/repos/neonichu/fastlane/releases{/id}","deployments_url":"https://api.github.com/repos/neonichu/fastlane/deployments","created_at":"2015-01-15T17:34:10Z","updated_at":"2016-05-31T01:46:39Z","pushed_at":"2016-05-31T20:59:18Z","git_url":"git://github.com/neonichu/fastlane.git","ssh_url":"git@github.com:neonichu/fastlane.git","clone_url":"https://github.com/neonichu/fastlane.git","svn_url":"https://github.com/neonichu/fastlane","homepage":"http://fastlane.tools","size":50039,"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":"fastlane:master","ref":"master","sha":"98d43cd19fab84772898f07874c6f952b7d42037","user":{"login":"fastlane","id":11098337,"avatar_url":"https://avatars.githubusercontent.com/u/11098337?v=3","gravatar_id":"","url":"https://api.github.com/users/fastlane","html_url":"https://github.com/fastlane","followers_url":"https://api.github.com/users/fastlane/followers","following_url":"https://api.github.com/users/fastlane/following{/other_user}","gists_url":"https://api.github.com/users/fastlane/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlane/subscriptions","organizations_url":"https://api.github.com/users/fastlane/orgs","repos_url":"https://api.github.com/users/fastlane/repos","events_url":"https://api.github.com/users/fastlane/events{/privacy}","received_events_url":"https://api.github.com/users/fastlane/received_events","type":"Organization","site_admin":false},"repo":{"id":27442967,"name":"fastlane","full_name":"fastlane/fastlane","owner":{"login":"fastlane","id":11098337,"avatar_url":"https://avatars.githubusercontent.com/u/11098337?v=3","gravatar_id":"","url":"https://api.github.com/users/fastlane","html_url":"https://github.com/fastlane","followers_url":"https://api.github.com/users/fastlane/followers","following_url":"https://api.github.com/users/fastlane/following{/other_user}","gists_url":"https://api.github.com/users/fastlane/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlane/subscriptions","organizations_url":"https://api.github.com/users/fastlane/orgs","repos_url":"https://api.github.com/users/fastlane/repos","events_url":"https://api.github.com/users/fastlane/events{/privacy}","received_events_url":"https://api.github.com/users/fastlane/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fastlane/fastlane","description":"The easiest way to automate building and releasing your iOS and Android apps","fork":false,"url":"https://api.github.com/repos/fastlane/fastlane","forks_url":"https://api.github.com/repos/fastlane/fastlane/forks","keys_url":"https://api.github.com/repos/fastlane/fastlane/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fastlane/fastlane/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fastlane/fastlane/teams","hooks_url":"https://api.github.com/repos/fastlane/fastlane/hooks","issue_events_url":"https://api.github.com/repos/fastlane/fastlane/issues/events{/number}","events_url":"https://api.github.com/repos/fastlane/fastlane/events","assignees_url":"https://api.github.com/repos/fastlane/fastlane/assignees{/user}","branches_url":"https://api.github.com/repos/fastlane/fastlane/branches{/branch}","tags_url":"https://api.github.com/repos/fastlane/fastlane/tags","blobs_url":"https://api.github.com/repos/fastlane/fastlane/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fastlane/fastlane/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fastlane/fastlane/git/refs{/sha}","trees_url":"https://api.github.com/repos/fastlane/fastlane/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fastlane/fastlane/statuses/{sha}","languages_url":"https://api.github.com/repos/fastlane/fastlane/languages","stargazers_url":"https://api.github.com/repos/fastlane/fastlane/stargazers","contributors_url":"https://api.github.com/repos/fastlane/fastlane/contributors","subscribers_url":"https://api.github.com/repos/fastlane/fastlane/subscribers","subscription_url":"https://api.github.com/repos/fastlane/fastlane/subscription","commits_url":"https://api.github.com/repos/fastlane/fastlane/commits{/sha}","git_commits_url":"https://api.github.com/repos/fastlane/fastlane/git/commits{/sha}","comments_url":"https://api.github.com/repos/fastlane/fastlane/comments{/number}","issue_comment_url":"https://api.github.com/repos/fastlane/fastlane/issues/comments{/number}","contents_url":"https://api.github.com/repos/fastlane/fastlane/contents/{+path}","compare_url":"https://api.github.com/repos/fastlane/fastlane/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fastlane/fastlane/merges","archive_url":"https://api.github.com/repos/fastlane/fastlane/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fastlane/fastlane/downloads","issues_url":"https://api.github.com/repos/fastlane/fastlane/issues{/number}","pulls_url":"https://api.github.com/repos/fastlane/fastlane/pulls{/number}","milestones_url":"https://api.github.com/repos/fastlane/fastlane/milestones{/number}","notifications_url":"https://api.github.com/repos/fastlane/fastlane/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fastlane/fastlane/labels{/name}","releases_url":"https://api.github.com/repos/fastlane/fastlane/releases{/id}","deployments_url":"https://api.github.com/repos/fastlane/fastlane/deployments","created_at":"2014-12-02T17:00:38Z","updated_at":"2016-05-31T19:35:31Z","pushed_at":"2016-05-31T20:59:19Z","git_url":"git://github.com/fastlane/fastlane.git","ssh_url":"git@github.com:fastlane/fastlane.git","clone_url":"https://github.com/fastlane/fastlane.git","svn_url":"https://github.com/fastlane/fastlane","homepage":"https://fastlane.tools","size":58809,"stargazers_count":8258,"watchers_count":8258,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1115,"mirror_url":null,"open_issues_count":734,"forks":1115,"open_issues":734,"watchers":8258,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/4911"},"html":{"href":"https://github.com/fastlane/fastlane/pull/4911"},"issue":{"href":"https://api.github.com/repos/fastlane/fastlane/issues/4911"},"comments":{"href":"https://api.github.com/repos/fastlane/fastlane/issues/4911/comments"},"review_comments":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/4911/comments"},"review_comment":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/4911/commits"},"statuses":{"href":"https://api.github.com/repos/fastlane/fastlane/statuses/c2ad4780452318c1826849bc8947580ceb370a41"}}}}
{"actor":{"display_login":"neonichu"}}