{"action":"closed","number":340,"pull_request":{"url":"https://api.github.com/repos/teambition/teambition-sdk/pulls/340","id":139286032,"html_url":"https://github.com/teambition/teambition-sdk/pull/340","diff_url":"https://github.com/teambition/teambition-sdk/pull/340.diff","patch_url":"https://github.com/teambition/teambition-sdk/pull/340.patch","issue_url":"https://api.github.com/repos/teambition/teambition-sdk/issues/340","number":340,"state":"closed","locked":false,"title":" fix(SDKFetch, Http): 修复原接口不支持用户为单个请求定制配置的问题","user":{"login":"chuan6","id":963011,"avatar_url":"https://avatars1.githubusercontent.com/u/963011?v=4","gravatar_id":"","url":"https://api.github.com/users/chuan6","html_url":"https://github.com/chuan6","followers_url":"https://api.github.com/users/chuan6/followers","following_url":"https://api.github.com/users/chuan6/following{/other_user}","gists_url":"https://api.github.com/users/chuan6/gists{/gist_id}","starred_url":"https://api.github.com/users/chuan6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuan6/subscriptions","organizations_url":"https://api.github.com/users/chuan6/orgs","repos_url":"https://api.github.com/users/chuan6/repos","events_url":"https://api.github.com/users/chuan6/events{/privacy}","received_events_url":"https://api.github.com/users/chuan6/received_events","type":"User","site_admin":false},"body":"接口改变：\r\n\r\n- ~~SDKFetch 请求方法（get/post/put/delete）的最后一个 options 参数 `wrapped` 字段改名为 `_wrapped`，`includeHeaders` 改名为 `_includeHeaders`。~~\r\n\r\n- 该 options 参数添加了对字段 `apiHost`, `token`, 和 `headers` 的支持；并允许用户提供额外的字段。这些 options 将只作用于当前调用方法的请求，不影响 SDKFetch 对象所管理的状态。用户额外添加的字段会被作为真实请求被发出时（Observable.ajax 或 fetch）的 options 参数的对应字段；\r\n\r\n- 这里 `headers` 字段接收对象类型，其中有一个可选字段为 `merge`。当用户传入 `headers` 字段对应的对象中，包含 truthy 的 `merge` 值，用户提供的 `headers` 其他字段会以类似于 Object.assign 的形式「添加」到当前 SDKFetch 对象的内部 headers 上；默认情况下，如果 options 参数中 `headers` 的值为 truthy，就会用其「替换」当前 SDKFetch 对象的内部 headers 作为当前请求要使用的 request headers。 \r\n\r\n...to resolve #337 .","created_at":"2017-09-05T10:12:48Z","updated_at":"2017-09-20T02:45:23Z","closed_at":"2017-09-20T02:45:23Z","merged_at":"2017-09-20T02:45:23Z","merge_commit_sha":"de90c12598469d1b284801fe7f79973912ba6164","assignee":{"login":"chuan6","id":963011,"avatar_url":"https://avatars1.githubusercontent.com/u/963011?v=4","gravatar_id":"","url":"https://api.github.com/users/chuan6","html_url":"https://github.com/chuan6","followers_url":"https://api.github.com/users/chuan6/followers","following_url":"https://api.github.com/users/chuan6/following{/other_user}","gists_url":"https://api.github.com/users/chuan6/gists{/gist_id}","starred_url":"https://api.github.com/users/chuan6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuan6/subscriptions","organizations_url":"https://api.github.com/users/chuan6/orgs","repos_url":"https://api.github.com/users/chuan6/repos","events_url":"https://api.github.com/users/chuan6/events{/privacy}","received_events_url":"https://api.github.com/users/chuan6/received_events","type":"User","site_admin":false},"assignees":[{"login":"chuan6","id":963011,"avatar_url":"https://avatars1.githubusercontent.com/u/963011?v=4","gravatar_id":"","url":"https://api.github.com/users/chuan6","html_url":"https://github.com/chuan6","followers_url":"https://api.github.com/users/chuan6/followers","following_url":"https://api.github.com/users/chuan6/following{/other_user}","gists_url":"https://api.github.com/users/chuan6/gists{/gist_id}","starred_url":"https://api.github.com/users/chuan6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuan6/subscriptions","organizations_url":"https://api.github.com/users/chuan6/orgs","repos_url":"https://api.github.com/users/chuan6/repos","events_url":"https://api.github.com/users/chuan6/events{/privacy}","received_events_url":"https://api.github.com/users/chuan6/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"Miloas","id":11530682,"avatar_url":"https://avatars1.githubusercontent.com/u/11530682?v=4","gravatar_id":"","url":"https://api.github.com/users/Miloas","html_url":"https://github.com/Miloas","followers_url":"https://api.github.com/users/Miloas/followers","following_url":"https://api.github.com/users/Miloas/following{/other_user}","gists_url":"https://api.github.com/users/Miloas/gists{/gist_id}","starred_url":"https://api.github.com/users/Miloas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Miloas/subscriptions","organizations_url":"https://api.github.com/users/Miloas/orgs","repos_url":"https://api.github.com/users/Miloas/repos","events_url":"https://api.github.com/users/Miloas/events{/privacy}","received_events_url":"https://api.github.com/users/Miloas/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/teambition/teambition-sdk/pulls/340/commits","review_comments_url":"https://api.github.com/repos/teambition/teambition-sdk/pulls/340/comments","review_comment_url":"https://api.github.com/repos/teambition/teambition-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/teambition/teambition-sdk/issues/340/comments","statuses_url":"https://api.github.com/repos/teambition/teambition-sdk/statuses/f257bc3b3fe8232c762255d725fed3f8eb2f2174","head":{"label":"teambition:fix/sdkfetch-options","ref":"fix/sdkfetch-options","sha":"f257bc3b3fe8232c762255d725fed3f8eb2f2174","user":{"login":"teambition","id":1983116,"avatar_url":"https://avatars3.githubusercontent.com/u/1983116?v=4","gravatar_id":"","url":"https://api.github.com/users/teambition","html_url":"https://github.com/teambition","followers_url":"https://api.github.com/users/teambition/followers","following_url":"https://api.github.com/users/teambition/following{/other_user}","gists_url":"https://api.github.com/users/teambition/gists{/gist_id}","starred_url":"https://api.github.com/users/teambition/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teambition/subscriptions","organizations_url":"https://api.github.com/users/teambition/orgs","repos_url":"https://api.github.com/users/teambition/repos","events_url":"https://api.github.com/users/teambition/events{/privacy}","received_events_url":"https://api.github.com/users/teambition/received_events","type":"Organization","site_admin":false},"repo":{"id":48221935,"name":"teambition-sdk","full_name":"teambition/teambition-sdk","owner":{"login":"teambition","id":1983116,"avatar_url":"https://avatars3.githubusercontent.com/u/1983116?v=4","gravatar_id":"","url":"https://api.github.com/users/teambition","html_url":"https://github.com/teambition","followers_url":"https://api.github.com/users/teambition/followers","following_url":"https://api.github.com/users/teambition/following{/other_user}","gists_url":"https://api.github.com/users/teambition/gists{/gist_id}","starred_url":"https://api.github.com/users/teambition/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teambition/subscriptions","organizations_url":"https://api.github.com/users/teambition/orgs","repos_url":"https://api.github.com/users/teambition/repos","events_url":"https://api.github.com/users/teambition/events{/privacy}","received_events_url":"https://api.github.com/users/teambition/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teambition/teambition-sdk","description":"Isomorphic JavaScript SDK for Teambition APIs","fork":false,"url":"https://api.github.com/repos/teambition/teambition-sdk","forks_url":"https://api.github.com/repos/teambition/teambition-sdk/forks","keys_url":"https://api.github.com/repos/teambition/teambition-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teambition/teambition-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teambition/teambition-sdk/teams","hooks_url":"https://api.github.com/repos/teambition/teambition-sdk/hooks","issue_events_url":"https://api.github.com/repos/teambition/teambition-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/teambition/teambition-sdk/events","assignees_url":"https://api.github.com/repos/teambition/teambition-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/teambition/teambition-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/teambition/teambition-sdk/tags","blobs_url":"https://api.github.com/repos/teambition/teambition-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teambition/teambition-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teambition/teambition-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/teambition/teambition-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teambition/teambition-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/teambition/teambition-sdk/languages","stargazers_url":"https://api.github.com/repos/teambition/teambition-sdk/stargazers","contributors_url":"https://api.github.com/repos/teambition/teambition-sdk/contributors","subscribers_url":"https://api.github.com/repos/teambition/teambition-sdk/subscribers","subscription_url":"https://api.github.com/repos/teambition/teambition-sdk/subscription","commits_url":"https://api.github.com/repos/teambition/teambition-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/teambition/teambition-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/teambition/teambition-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/teambition/teambition-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/teambition/teambition-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/teambition/teambition-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teambition/teambition-sdk/merges","archive_url":"https://api.github.com/repos/teambition/teambition-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teambition/teambition-sdk/downloads","issues_url":"https://api.github.com/repos/teambition/teambition-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/teambition/teambition-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/teambition/teambition-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/teambition/teambition-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teambition/teambition-sdk/labels{/name}","releases_url":"https://api.github.com/repos/teambition/teambition-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/teambition/teambition-sdk/deployments","created_at":"2015-12-18T07:52:09Z","updated_at":"2017-09-18T06:42:13Z","pushed_at":"2017-09-20T02:45:22Z","git_url":"git://github.com/teambition/teambition-sdk.git","ssh_url":"git@github.com:teambition/teambition-sdk.git","clone_url":"https://github.com/teambition/teambition-sdk.git","svn_url":"https://github.com/teambition/teambition-sdk","homepage":"","size":1370,"stargazers_count":251,"watchers_count":251,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"open_issues_count":25,"forks":33,"open_issues":25,"watchers":251,"default_branch":"release"}},"base":{"label":"teambition:release","ref":"release","sha":"8199e35316b1ebe5393cb6cc091f26b9999996cc","user":{"login":"teambition","id":1983116,"avatar_url":"https://avatars3.githubusercontent.com/u/1983116?v=4","gravatar_id":"","url":"https://api.github.com/users/teambition","html_url":"https://github.com/teambition","followers_url":"https://api.github.com/users/teambition/followers","following_url":"https://api.github.com/users/teambition/following{/other_user}","gists_url":"https://api.github.com/users/teambition/gists{/gist_id}","starred_url":"https://api.github.com/users/teambition/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teambition/subscriptions","organizations_url":"https://api.github.com/users/teambition/orgs","repos_url":"https://api.github.com/users/teambition/repos","events_url":"https://api.github.com/users/teambition/events{/privacy}","received_events_url":"https://api.github.com/users/teambition/received_events","type":"Organization","site_admin":false},"repo":{"id":48221935,"name":"teambition-sdk","full_name":"teambition/teambition-sdk","owner":{"login":"teambition","id":1983116,"avatar_url":"https://avatars3.githubusercontent.com/u/1983116?v=4","gravatar_id":"","url":"https://api.github.com/users/teambition","html_url":"https://github.com/teambition","followers_url":"https://api.github.com/users/teambition/followers","following_url":"https://api.github.com/users/teambition/following{/other_user}","gists_url":"https://api.github.com/users/teambition/gists{/gist_id}","starred_url":"https://api.github.com/users/teambition/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teambition/subscriptions","organizations_url":"https://api.github.com/users/teambition/orgs","repos_url":"https://api.github.com/users/teambition/repos","events_url":"https://api.github.com/users/teambition/events{/privacy}","received_events_url":"https://api.github.com/users/teambition/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teambition/teambition-sdk","description":"Isomorphic JavaScript SDK for Teambition APIs","fork":false,"url":"https://api.github.com/repos/teambition/teambition-sdk","forks_url":"https://api.github.com/repos/teambition/teambition-sdk/forks","keys_url":"https://api.github.com/repos/teambition/teambition-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teambition/teambition-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teambition/teambition-sdk/teams","hooks_url":"https://api.github.com/repos/teambition/teambition-sdk/hooks","issue_events_url":"https://api.github.com/repos/teambition/teambition-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/teambition/teambition-sdk/events","assignees_url":"https://api.github.com/repos/teambition/teambition-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/teambition/teambition-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/teambition/teambition-sdk/tags","blobs_url":"https://api.github.com/repos/teambition/teambition-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teambition/teambition-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teambition/teambition-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/teambition/teambition-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teambition/teambition-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/teambition/teambition-sdk/languages","stargazers_url":"https://api.github.com/repos/teambition/teambition-sdk/stargazers","contributors_url":"https://api.github.com/repos/teambition/teambition-sdk/contributors","subscribers_url":"https://api.github.com/repos/teambition/teambition-sdk/subscribers","subscription_url":"https://api.github.com/repos/teambition/teambition-sdk/subscription","commits_url":"https://api.github.com/repos/teambition/teambition-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/teambition/teambition-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/teambition/teambition-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/teambition/teambition-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/teambition/teambition-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/teambition/teambition-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teambition/teambition-sdk/merges","archive_url":"https://api.github.com/repos/teambition/teambition-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teambition/teambition-sdk/downloads","issues_url":"https://api.github.com/repos/teambition/teambition-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/teambition/teambition-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/teambition/teambition-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/teambition/teambition-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teambition/teambition-sdk/labels{/name}","releases_url":"https://api.github.com/repos/teambition/teambition-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/teambition/teambition-sdk/deployments","created_at":"2015-12-18T07:52:09Z","updated_at":"2017-09-18T06:42:13Z","pushed_at":"2017-09-20T02:45:22Z","git_url":"git://github.com/teambition/teambition-sdk.git","ssh_url":"git@github.com:teambition/teambition-sdk.git","clone_url":"https://github.com/teambition/teambition-sdk.git","svn_url":"https://github.com/teambition/teambition-sdk","homepage":"","size":1370,"stargazers_count":251,"watchers_count":251,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"open_issues_count":25,"forks":33,"open_issues":25,"watchers":251,"default_branch":"release"}},"_links":{"self":{"href":"https://api.github.com/repos/teambition/teambition-sdk/pulls/340"},"html":{"href":"https://github.com/teambition/teambition-sdk/pull/340"},"issue":{"href":"https://api.github.com/repos/teambition/teambition-sdk/issues/340"},"comments":{"href":"https://api.github.com/repos/teambition/teambition-sdk/issues/340/comments"},"review_comments":{"href":"https://api.github.com/repos/teambition/teambition-sdk/pulls/340/comments"},"review_comment":{"href":"https://api.github.com/repos/teambition/teambition-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/teambition/teambition-sdk/pulls/340/commits"},"statuses":{"href":"https://api.github.com/repos/teambition/teambition-sdk/statuses/f257bc3b3fe8232c762255d725fed3f8eb2f2174"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"Saviio","id":3467408,"avatar_url":"https://avatars1.githubusercontent.com/u/3467408?v=4","gravatar_id":"","url":"https://api.github.com/users/Saviio","html_url":"https://github.com/Saviio","followers_url":"https://api.github.com/users/Saviio/followers","following_url":"https://api.github.com/users/Saviio/following{/other_user}","gists_url":"https://api.github.com/users/Saviio/gists{/gist_id}","starred_url":"https://api.github.com/users/Saviio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saviio/subscriptions","organizations_url":"https://api.github.com/users/Saviio/orgs","repos_url":"https://api.github.com/users/Saviio/repos","events_url":"https://api.github.com/users/Saviio/events{/privacy}","received_events_url":"https://api.github.com/users/Saviio/received_events","type":"User","site_admin":false},"comments":19,"review_comments":10,"maintainer_can_modify":false,"commits":3,"additions":433,"deletions":122,"changed_files":4}}
{"actor":{"display_login":"Saviio"}}