{"action":"created","comment":{"url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/pulls/comments/71765991","id":71765991,"diff_hunk":"@@ -439,18 +529,22 @@ export class FunctionsService {\n         }\n         return headers;\n     }\n-\n+    //to talk to TryAppservice or Portal\n     private getPassthroughHeaders(contentType?: string): Headers {\n         contentType = contentType || 'application/json';\n         var headers = new Headers();\n         headers.append('Content-Type', contentType);\n         headers.append('Accept', 'application/json,*/*');\n \n+        if (this.tryAppserviceToken) {\n+            headers.append('Authorization', `Bearer ${this.tryAppserviceToken}`);\n+        } else {\n+            headers.append('User-Agent2', 'Functions/');","path":"AzureFunctions.Client/app/services/functions.service.ts","position":225,"original_position":225,"commit_id":"e5e20439e1c5da7b68225a3d1c6a637eac473d79","original_commit_id":"e5e20439e1c5da7b68225a3d1c6a637eac473d79","user":{"login":"fashaikh","id":2650941,"avatar_url":"https://avatars.githubusercontent.com/u/2650941?v=3","gravatar_id":"","url":"https://api.github.com/users/fashaikh","html_url":"https://github.com/fashaikh","followers_url":"https://api.github.com/users/fashaikh/followers","following_url":"https://api.github.com/users/fashaikh/following{/other_user}","gists_url":"https://api.github.com/users/fashaikh/gists{/gist_id}","starred_url":"https://api.github.com/users/fashaikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fashaikh/subscriptions","organizations_url":"https://api.github.com/users/fashaikh/orgs","repos_url":"https://api.github.com/users/fashaikh/repos","events_url":"https://api.github.com/users/fashaikh/events{/privacy}","received_events_url":"https://api.github.com/users/fashaikh/received_events","type":"User","site_admin":false},"body":"For TAS to identify that these requests are comign from Functions portal ,and treat it basically like an API call","created_at":"2016-07-21T18:57:17Z","updated_at":"2016-07-21T18:57:17Z","html_url":"https://github.com/projectkudu/AzureFunctionsPortal/pull/442#discussion_r71765991","pull_request_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/pulls/442","_links":{"self":{"href":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/pulls/comments/71765991"},"html":{"href":"https://github.com/projectkudu/AzureFunctionsPortal/pull/442#discussion_r71765991"},"pull_request":{"href":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/pulls/442"}}},"pull_request":{"url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/pulls/442","id":77695479,"html_url":"https://github.com/projectkudu/AzureFunctionsPortal/pull/442","diff_url":"https://github.com/projectkudu/AzureFunctionsPortal/pull/442.diff","patch_url":"https://github.com/projectkudu/AzureFunctionsPortal/pull/442.patch","issue_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/issues/442","number":442,"state":"open","locked":false,"title":"Initial checkin for refactor feedback.  Still need to rebase with dev ","user":{"login":"fashaikh","id":2650941,"avatar_url":"https://avatars.githubusercontent.com/u/2650941?v=3","gravatar_id":"","url":"https://api.github.com/users/fashaikh","html_url":"https://github.com/fashaikh","followers_url":"https://api.github.com/users/fashaikh/followers","following_url":"https://api.github.com/users/fashaikh/following{/other_user}","gists_url":"https://api.github.com/users/fashaikh/gists{/gist_id}","starred_url":"https://api.github.com/users/fashaikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fashaikh/subscriptions","organizations_url":"https://api.github.com/users/fashaikh/orgs","repos_url":"https://api.github.com/users/fashaikh/repos","events_url":"https://api.github.com/users/fashaikh/events{/privacy}","received_events_url":"https://api.github.com/users/fashaikh/received_events","type":"User","site_admin":false},"body":"Initial checkin for refactor feedback. Centralize try mode states ?  Open function right away after auth instead of showing quickstart .","created_at":"2016-07-16T00:46:02Z","updated_at":"2016-07-21T18:57:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"972fea794a17a7e42ccc987b8e0b03494a570f10","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/pulls/442/commits","review_comments_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/pulls/442/comments","review_comment_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/issues/442/comments","statuses_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/statuses/e5e20439e1c5da7b68225a3d1c6a637eac473d79","head":{"label":"fashaikh:dev","ref":"dev","sha":"e5e20439e1c5da7b68225a3d1c6a637eac473d79","user":{"login":"fashaikh","id":2650941,"avatar_url":"https://avatars.githubusercontent.com/u/2650941?v=3","gravatar_id":"","url":"https://api.github.com/users/fashaikh","html_url":"https://github.com/fashaikh","followers_url":"https://api.github.com/users/fashaikh/followers","following_url":"https://api.github.com/users/fashaikh/following{/other_user}","gists_url":"https://api.github.com/users/fashaikh/gists{/gist_id}","starred_url":"https://api.github.com/users/fashaikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fashaikh/subscriptions","organizations_url":"https://api.github.com/users/fashaikh/orgs","repos_url":"https://api.github.com/users/fashaikh/repos","events_url":"https://api.github.com/users/fashaikh/events{/privacy}","received_events_url":"https://api.github.com/users/fashaikh/received_events","type":"User","site_admin":false},"repo":{"id":61652403,"name":"AzureFunctionsPortal","full_name":"fashaikh/AzureFunctionsPortal","owner":{"login":"fashaikh","id":2650941,"avatar_url":"https://avatars.githubusercontent.com/u/2650941?v=3","gravatar_id":"","url":"https://api.github.com/users/fashaikh","html_url":"https://github.com/fashaikh","followers_url":"https://api.github.com/users/fashaikh/followers","following_url":"https://api.github.com/users/fashaikh/following{/other_user}","gists_url":"https://api.github.com/users/fashaikh/gists{/gist_id}","starred_url":"https://api.github.com/users/fashaikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fashaikh/subscriptions","organizations_url":"https://api.github.com/users/fashaikh/orgs","repos_url":"https://api.github.com/users/fashaikh/repos","events_url":"https://api.github.com/users/fashaikh/events{/privacy}","received_events_url":"https://api.github.com/users/fashaikh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fashaikh/AzureFunctionsPortal","description":"Azure Functions UX","fork":true,"url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal","forks_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/forks","keys_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/teams","hooks_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/hooks","issue_events_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/issues/events{/number}","events_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/events","assignees_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/assignees{/user}","branches_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/branches{/branch}","tags_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/tags","blobs_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/git/refs{/sha}","trees_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/statuses/{sha}","languages_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/languages","stargazers_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/stargazers","contributors_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/contributors","subscribers_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/subscribers","subscription_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/subscription","commits_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/commits{/sha}","git_commits_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/git/commits{/sha}","comments_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/comments{/number}","issue_comment_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/issues/comments{/number}","contents_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/contents/{+path}","compare_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/merges","archive_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/downloads","issues_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/issues{/number}","pulls_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/pulls{/number}","milestones_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/milestones{/number}","notifications_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/labels{/name}","releases_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/releases{/id}","deployments_url":"https://api.github.com/repos/fashaikh/AzureFunctionsPortal/deployments","created_at":"2016-06-21T17:12:07Z","updated_at":"2016-06-21T17:12:08Z","pushed_at":"2016-07-20T01:48:53Z","git_url":"git://github.com/fashaikh/AzureFunctionsPortal.git","ssh_url":"git@github.com:fashaikh/AzureFunctionsPortal.git","clone_url":"https://github.com/fashaikh/AzureFunctionsPortal.git","svn_url":"https://github.com/fashaikh/AzureFunctionsPortal","homepage":"https://functions.azure.com","size":1544,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"dev"}},"base":{"label":"projectkudu:dev","ref":"dev","sha":"5c80990969e210e58a0a44e8194f2006c6aa998d","user":{"login":"projectkudu","id":927131,"avatar_url":"https://avatars.githubusercontent.com/u/927131?v=3","gravatar_id":"","url":"https://api.github.com/users/projectkudu","html_url":"https://github.com/projectkudu","followers_url":"https://api.github.com/users/projectkudu/followers","following_url":"https://api.github.com/users/projectkudu/following{/other_user}","gists_url":"https://api.github.com/users/projectkudu/gists{/gist_id}","starred_url":"https://api.github.com/users/projectkudu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectkudu/subscriptions","organizations_url":"https://api.github.com/users/projectkudu/orgs","repos_url":"https://api.github.com/users/projectkudu/repos","events_url":"https://api.github.com/users/projectkudu/events{/privacy}","received_events_url":"https://api.github.com/users/projectkudu/received_events","type":"Organization","site_admin":false},"repo":{"id":50877831,"name":"AzureFunctionsPortal","full_name":"projectkudu/AzureFunctionsPortal","owner":{"login":"projectkudu","id":927131,"avatar_url":"https://avatars.githubusercontent.com/u/927131?v=3","gravatar_id":"","url":"https://api.github.com/users/projectkudu","html_url":"https://github.com/projectkudu","followers_url":"https://api.github.com/users/projectkudu/followers","following_url":"https://api.github.com/users/projectkudu/following{/other_user}","gists_url":"https://api.github.com/users/projectkudu/gists{/gist_id}","starred_url":"https://api.github.com/users/projectkudu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectkudu/subscriptions","organizations_url":"https://api.github.com/users/projectkudu/orgs","repos_url":"https://api.github.com/users/projectkudu/repos","events_url":"https://api.github.com/users/projectkudu/events{/privacy}","received_events_url":"https://api.github.com/users/projectkudu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectkudu/AzureFunctionsPortal","description":"Azure Functions UX","fork":false,"url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal","forks_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/forks","keys_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/teams","hooks_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/hooks","issue_events_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/issues/events{/number}","events_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/events","assignees_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/assignees{/user}","branches_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/branches{/branch}","tags_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/tags","blobs_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/statuses/{sha}","languages_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/languages","stargazers_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/stargazers","contributors_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/contributors","subscribers_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/subscribers","subscription_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/subscription","commits_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/contents/{+path}","compare_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/merges","archive_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/downloads","issues_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/issues{/number}","pulls_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/pulls{/number}","milestones_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/milestones{/number}","notifications_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/labels{/name}","releases_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/releases{/id}","deployments_url":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/deployments","created_at":"2016-02-01T23:01:22Z","updated_at":"2016-07-16T11:15:09Z","pushed_at":"2016-07-21T18:46:08Z","git_url":"git://github.com/projectkudu/AzureFunctionsPortal.git","ssh_url":"git@github.com:projectkudu/AzureFunctionsPortal.git","clone_url":"https://github.com/projectkudu/AzureFunctionsPortal.git","svn_url":"https://github.com/projectkudu/AzureFunctionsPortal","homepage":"https://functions.azure.com","size":1632,"stargazers_count":59,"watchers_count":59,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":61,"forks":12,"open_issues":61,"watchers":59,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/pulls/442"},"html":{"href":"https://github.com/projectkudu/AzureFunctionsPortal/pull/442"},"issue":{"href":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/issues/442"},"comments":{"href":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/issues/442/comments"},"review_comments":{"href":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/pulls/442/comments"},"review_comment":{"href":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/pulls/442/commits"},"statuses":{"href":"https://api.github.com/repos/projectkudu/AzureFunctionsPortal/statuses/e5e20439e1c5da7b68225a3d1c6a637eac473d79"}}}}
{"actor":{"display_login":"fashaikh"}}