{"action":"opened","number":18,"pull_request":{"url":"https://api.github.com/repos/milo/github-api/pulls/18","id":90979009,"html_url":"https://github.com/milo/github-api/pull/18","diff_url":"https://github.com/milo/github-api/pull/18.diff","patch_url":"https://github.com/milo/github-api/pull/18.patch","issue_url":"https://api.github.com/repos/milo/github-api/issues/18","number":18,"state":"open","locked":false,"title":"Allows user to provide absolute URLs for upload.","user":{"login":"NeoXtreme","id":19222468,"avatar_url":"https://avatars.githubusercontent.com/u/19222468?v=3","gravatar_id":"","url":"https://api.github.com/users/NeoXtreme","html_url":"https://github.com/NeoXtreme","followers_url":"https://api.github.com/users/NeoXtreme/followers","following_url":"https://api.github.com/users/NeoXtreme/following{/other_user}","gists_url":"https://api.github.com/users/NeoXtreme/gists{/gist_id}","starred_url":"https://api.github.com/users/NeoXtreme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeoXtreme/subscriptions","organizations_url":"https://api.github.com/users/NeoXtreme/orgs","repos_url":"https://api.github.com/users/NeoXtreme/repos","events_url":"https://api.github.com/users/NeoXtreme/events{/privacy}","received_events_url":"https://api.github.com/users/NeoXtreme/received_events","type":"User","site_admin":false},"body":"Prepend API URL only if provided URL is relative. So that \"https://uploads.github.com\" can be supplied for uploading release assets. User can upload as following:\r\n\r\n`$up_url = 'https://uploads.github.com/repos/alcanttor/'.$repo_name.'/releases/'.$release_id.'/assets?name='.$file_name;\r\n\r\n\t$upheader = ['Content-Type' => 'application/zip'];\r\n\r\n\t$response = $api->post($up_url, file_get_contents($file_path), [], $upheader);`","created_at":"2016-10-26T10:43:37Z","updated_at":"2016-10-26T10:43:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/milo/github-api/pulls/18/commits","review_comments_url":"https://api.github.com/repos/milo/github-api/pulls/18/comments","review_comment_url":"https://api.github.com/repos/milo/github-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/milo/github-api/issues/18/comments","statuses_url":"https://api.github.com/repos/milo/github-api/statuses/25a224338127f52f5a9710ca19580ac51d31d831","head":{"label":"NeoXtreme:upload_url_support","ref":"upload_url_support","sha":"25a224338127f52f5a9710ca19580ac51d31d831","user":{"login":"NeoXtreme","id":19222468,"avatar_url":"https://avatars.githubusercontent.com/u/19222468?v=3","gravatar_id":"","url":"https://api.github.com/users/NeoXtreme","html_url":"https://github.com/NeoXtreme","followers_url":"https://api.github.com/users/NeoXtreme/followers","following_url":"https://api.github.com/users/NeoXtreme/following{/other_user}","gists_url":"https://api.github.com/users/NeoXtreme/gists{/gist_id}","starred_url":"https://api.github.com/users/NeoXtreme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeoXtreme/subscriptions","organizations_url":"https://api.github.com/users/NeoXtreme/orgs","repos_url":"https://api.github.com/users/NeoXtreme/repos","events_url":"https://api.github.com/users/NeoXtreme/events{/privacy}","received_events_url":"https://api.github.com/users/NeoXtreme/received_events","type":"User","site_admin":false},"repo":{"id":71992310,"name":"github-api","full_name":"NeoXtreme/github-api","owner":{"login":"NeoXtreme","id":19222468,"avatar_url":"https://avatars.githubusercontent.com/u/19222468?v=3","gravatar_id":"","url":"https://api.github.com/users/NeoXtreme","html_url":"https://github.com/NeoXtreme","followers_url":"https://api.github.com/users/NeoXtreme/followers","following_url":"https://api.github.com/users/NeoXtreme/following{/other_user}","gists_url":"https://api.github.com/users/NeoXtreme/gists{/gist_id}","starred_url":"https://api.github.com/users/NeoXtreme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeoXtreme/subscriptions","organizations_url":"https://api.github.com/users/NeoXtreme/orgs","repos_url":"https://api.github.com/users/NeoXtreme/repos","events_url":"https://api.github.com/users/NeoXtreme/events{/privacy}","received_events_url":"https://api.github.com/users/NeoXtreme/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NeoXtreme/github-api","description":"Github API easy access","fork":true,"url":"https://api.github.com/repos/NeoXtreme/github-api","forks_url":"https://api.github.com/repos/NeoXtreme/github-api/forks","keys_url":"https://api.github.com/repos/NeoXtreme/github-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NeoXtreme/github-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NeoXtreme/github-api/teams","hooks_url":"https://api.github.com/repos/NeoXtreme/github-api/hooks","issue_events_url":"https://api.github.com/repos/NeoXtreme/github-api/issues/events{/number}","events_url":"https://api.github.com/repos/NeoXtreme/github-api/events","assignees_url":"https://api.github.com/repos/NeoXtreme/github-api/assignees{/user}","branches_url":"https://api.github.com/repos/NeoXtreme/github-api/branches{/branch}","tags_url":"https://api.github.com/repos/NeoXtreme/github-api/tags","blobs_url":"https://api.github.com/repos/NeoXtreme/github-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NeoXtreme/github-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NeoXtreme/github-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/NeoXtreme/github-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NeoXtreme/github-api/statuses/{sha}","languages_url":"https://api.github.com/repos/NeoXtreme/github-api/languages","stargazers_url":"https://api.github.com/repos/NeoXtreme/github-api/stargazers","contributors_url":"https://api.github.com/repos/NeoXtreme/github-api/contributors","subscribers_url":"https://api.github.com/repos/NeoXtreme/github-api/subscribers","subscription_url":"https://api.github.com/repos/NeoXtreme/github-api/subscription","commits_url":"https://api.github.com/repos/NeoXtreme/github-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/NeoXtreme/github-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/NeoXtreme/github-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/NeoXtreme/github-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/NeoXtreme/github-api/contents/{+path}","compare_url":"https://api.github.com/repos/NeoXtreme/github-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NeoXtreme/github-api/merges","archive_url":"https://api.github.com/repos/NeoXtreme/github-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NeoXtreme/github-api/downloads","issues_url":"https://api.github.com/repos/NeoXtreme/github-api/issues{/number}","pulls_url":"https://api.github.com/repos/NeoXtreme/github-api/pulls{/number}","milestones_url":"https://api.github.com/repos/NeoXtreme/github-api/milestones{/number}","notifications_url":"https://api.github.com/repos/NeoXtreme/github-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NeoXtreme/github-api/labels{/name}","releases_url":"https://api.github.com/repos/NeoXtreme/github-api/releases{/id}","deployments_url":"https://api.github.com/repos/NeoXtreme/github-api/deployments","created_at":"2016-10-26T10:26:15Z","updated_at":"2016-10-26T10:26:16Z","pushed_at":"2016-10-26T10:41:08Z","git_url":"git://github.com/NeoXtreme/github-api.git","ssh_url":"git@github.com:NeoXtreme/github-api.git","clone_url":"https://github.com/NeoXtreme/github-api.git","svn_url":"https://github.com/NeoXtreme/github-api","homepage":"","size":100,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"milo:master","ref":"master","sha":"9adc3b69e3845ec95461a529f65a3c7fddf8e6f2","user":{"login":"milo","id":439140,"avatar_url":"https://avatars.githubusercontent.com/u/439140?v=3","gravatar_id":"","url":"https://api.github.com/users/milo","html_url":"https://github.com/milo","followers_url":"https://api.github.com/users/milo/followers","following_url":"https://api.github.com/users/milo/following{/other_user}","gists_url":"https://api.github.com/users/milo/gists{/gist_id}","starred_url":"https://api.github.com/users/milo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milo/subscriptions","organizations_url":"https://api.github.com/users/milo/orgs","repos_url":"https://api.github.com/users/milo/repos","events_url":"https://api.github.com/users/milo/events{/privacy}","received_events_url":"https://api.github.com/users/milo/received_events","type":"User","site_admin":false},"repo":{"id":19703364,"name":"github-api","full_name":"milo/github-api","owner":{"login":"milo","id":439140,"avatar_url":"https://avatars.githubusercontent.com/u/439140?v=3","gravatar_id":"","url":"https://api.github.com/users/milo","html_url":"https://github.com/milo","followers_url":"https://api.github.com/users/milo/followers","following_url":"https://api.github.com/users/milo/following{/other_user}","gists_url":"https://api.github.com/users/milo/gists{/gist_id}","starred_url":"https://api.github.com/users/milo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milo/subscriptions","organizations_url":"https://api.github.com/users/milo/orgs","repos_url":"https://api.github.com/users/milo/repos","events_url":"https://api.github.com/users/milo/events{/privacy}","received_events_url":"https://api.github.com/users/milo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/milo/github-api","description":"Github API easy access","fork":false,"url":"https://api.github.com/repos/milo/github-api","forks_url":"https://api.github.com/repos/milo/github-api/forks","keys_url":"https://api.github.com/repos/milo/github-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/milo/github-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/milo/github-api/teams","hooks_url":"https://api.github.com/repos/milo/github-api/hooks","issue_events_url":"https://api.github.com/repos/milo/github-api/issues/events{/number}","events_url":"https://api.github.com/repos/milo/github-api/events","assignees_url":"https://api.github.com/repos/milo/github-api/assignees{/user}","branches_url":"https://api.github.com/repos/milo/github-api/branches{/branch}","tags_url":"https://api.github.com/repos/milo/github-api/tags","blobs_url":"https://api.github.com/repos/milo/github-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/milo/github-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/milo/github-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/milo/github-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/milo/github-api/statuses/{sha}","languages_url":"https://api.github.com/repos/milo/github-api/languages","stargazers_url":"https://api.github.com/repos/milo/github-api/stargazers","contributors_url":"https://api.github.com/repos/milo/github-api/contributors","subscribers_url":"https://api.github.com/repos/milo/github-api/subscribers","subscription_url":"https://api.github.com/repos/milo/github-api/subscription","commits_url":"https://api.github.com/repos/milo/github-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/milo/github-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/milo/github-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/milo/github-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/milo/github-api/contents/{+path}","compare_url":"https://api.github.com/repos/milo/github-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/milo/github-api/merges","archive_url":"https://api.github.com/repos/milo/github-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/milo/github-api/downloads","issues_url":"https://api.github.com/repos/milo/github-api/issues{/number}","pulls_url":"https://api.github.com/repos/milo/github-api/pulls{/number}","milestones_url":"https://api.github.com/repos/milo/github-api/milestones{/number}","notifications_url":"https://api.github.com/repos/milo/github-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/milo/github-api/labels{/name}","releases_url":"https://api.github.com/repos/milo/github-api/releases{/id}","deployments_url":"https://api.github.com/repos/milo/github-api/deployments","created_at":"2014-05-12T15:08:21Z","updated_at":"2016-09-21T13:47:08Z","pushed_at":"2016-02-08T20:25:33Z","git_url":"git://github.com/milo/github-api.git","ssh_url":"git@github.com:milo/github-api.git","clone_url":"https://github.com/milo/github-api.git","svn_url":"https://github.com/milo/github-api","homepage":"","size":100,"stargazers_count":50,"watchers_count":50,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":1,"forks":28,"open_issues":1,"watchers":50,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/milo/github-api/pulls/18"},"html":{"href":"https://github.com/milo/github-api/pull/18"},"issue":{"href":"https://api.github.com/repos/milo/github-api/issues/18"},"comments":{"href":"https://api.github.com/repos/milo/github-api/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/milo/github-api/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/milo/github-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/milo/github-api/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/milo/github-api/statuses/25a224338127f52f5a9710ca19580ac51d31d831"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":6,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"NeoXtreme"}}