{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/pulls/comments/217225892","pull_request_review_id":154888065,"id":217225892,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzIyNTg5Mg==","diff_hunk":"@@ -176,12 +176,24 @@ export class PythonProjectCreator extends ScriptProjectCreatorBase {\n         // .gitignore is created by `func init`\n         const gitignorePath: string = path.join(this.functionAppPath, gitignoreFileName);\n         if (await fse.pathExists(gitignorePath)) {\n-            ext.outputChannel.appendLine(localize('gitAddFunc_Env', 'Adding \"{0}\" to .gitignore...', this.funcEnv));\n+            const pythonPackages: string = 'python_packages';\n+            let writeFile: boolean = false;\n             let gitignoreContents: string = (await fse.readFile(gitignorePath)).toString();\n             // the func_env and ._python_packages are recreated and should not be checked in\n-            gitignoreContents = gitignoreContents.concat(`${os.EOL}${this.funcEnv}`);\n-            gitignoreContents = gitignoreContents.concat(`${os.EOL}.python_packages`);\n-            await fse.writeFile(gitignorePath, gitignoreContents);\n+            if (!gitignoreContents.includes(this.funcEnv)) {\n+                ext.outputChannel.appendLine(localize('gitAddFunc_Env', 'Adding \"{0}\" to .gitignore...', this.funcEnv));\n+                gitignoreContents = gitignoreContents.concat(`${os.EOL}${this.funcEnv}`);\n+                writeFile = true;\n+            }\n+            if (!gitignoreContents.includes(pythonPackages)) {\n+                ext.outputChannel.appendLine(localize('gitAddFunc_Env', 'Adding \"{0}\" to .gitignore...', pythonPackages));","path":"src/commands/createNewProject/PythonProjectCreator.ts","position":60,"original_position":18,"commit_id":"05374f46d3659237bbd66d3868c2c5a78e15108a","original_commit_id":"05374f46d3659237bbd66d3868c2c5a78e15108a","user":{"login":"nturinski","id":5290572,"node_id":"MDQ6VXNlcjUyOTA1NzI=","avatar_url":"https://avatars0.githubusercontent.com/u/5290572?v=4","gravatar_id":"","url":"https://api.github.com/users/nturinski","html_url":"https://github.com/nturinski","followers_url":"https://api.github.com/users/nturinski/followers","following_url":"https://api.github.com/users/nturinski/following{/other_user}","gists_url":"https://api.github.com/users/nturinski/gists{/gist_id}","starred_url":"https://api.github.com/users/nturinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nturinski/subscriptions","organizations_url":"https://api.github.com/users/nturinski/orgs","repos_url":"https://api.github.com/users/nturinski/repos","events_url":"https://api.github.com/users/nturinski/events{/privacy}","received_events_url":"https://api.github.com/users/nturinski/received_events","type":"User","site_admin":false},"body":".... thank you for being my monitor.","created_at":"2018-09-12T23:59:52Z","updated_at":"2018-09-12T23:59:52Z","html_url":"https://github.com/Microsoft/vscode-azurefunctions/pull/582#discussion_r217225892","pull_request_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/pulls/582","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/pulls/comments/217225892"},"html":{"href":"https://github.com/Microsoft/vscode-azurefunctions/pull/582#discussion_r217225892"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/pulls/582"}},"in_reply_to_id":217225511},"pull_request":{"url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/pulls/582","id":215063443,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1MDYzNDQz","html_url":"https://github.com/Microsoft/vscode-azurefunctions/pull/582","diff_url":"https://github.com/Microsoft/vscode-azurefunctions/pull/582.diff","patch_url":"https://github.com/Microsoft/vscode-azurefunctions/pull/582.patch","issue_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/issues/582","number":582,"state":"open","locked":false,"title":"Install ptvsd and other local debug fixes","user":{"login":"nturinski","id":5290572,"node_id":"MDQ6VXNlcjUyOTA1NzI=","avatar_url":"https://avatars0.githubusercontent.com/u/5290572?v=4","gravatar_id":"","url":"https://api.github.com/users/nturinski","html_url":"https://github.com/nturinski","followers_url":"https://api.github.com/users/nturinski/followers","following_url":"https://api.github.com/users/nturinski/following{/other_user}","gists_url":"https://api.github.com/users/nturinski/gists{/gist_id}","starred_url":"https://api.github.com/users/nturinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nturinski/subscriptions","organizations_url":"https://api.github.com/users/nturinski/orgs","repos_url":"https://api.github.com/users/nturinski/repos","events_url":"https://api.github.com/users/nturinski/events{/privacy}","received_events_url":"https://api.github.com/users/nturinski/received_events","type":"User","site_admin":false},"body":"Installs ptvsd (no longer need pre)\r\nIgnores output when looking for python alias\r\nAdds \"func_env\" & .\"python_packages\" to .gitignore (as this should not be checked in)\r\n\r\nI don't think there are dev dependencies for python unless you make a different requirement.txt.  func_env is packed in with the .zip file created by `func pack` so it's probably necessary to run on the remote.","created_at":"2018-09-12T19:01:55Z","updated_at":"2018-09-12T23:59:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"939c818b33503322f8518b802813449b8b702666","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/pulls/582/commits","review_comments_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/pulls/582/comments","review_comment_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/issues/582/comments","statuses_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/statuses/05374f46d3659237bbd66d3868c2c5a78e15108a","head":{"label":"Microsoft:nat/localPythonDebugging","ref":"nat/localPythonDebugging","sha":"05374f46d3659237bbd66d3868c2c5a78e15108a","user":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":104400765,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQ0MDA3NjU=","name":"vscode-azurefunctions","full_name":"Microsoft/vscode-azurefunctions","owner":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/vscode-azurefunctions","description":"Azure Functions extension for VS Code","fork":false,"url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions","forks_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/forks","keys_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/teams","hooks_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/events","assignees_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/tags","blobs_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/languages","stargazers_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/subscription","commits_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/merges","archive_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/downloads","issues_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/deployments","created_at":"2017-09-21T21:28:44Z","updated_at":"2018-09-12T23:45:36Z","pushed_at":"2018-09-12T23:55:54Z","git_url":"git://github.com/Microsoft/vscode-azurefunctions.git","ssh_url":"git@github.com:Microsoft/vscode-azurefunctions.git","clone_url":"https://github.com/Microsoft/vscode-azurefunctions.git","svn_url":"https://github.com/Microsoft/vscode-azurefunctions","homepage":"https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions","size":17407,"stargazers_count":67,"watchers_count":67,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":64,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":17,"open_issues":64,"watchers":67,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"806bd74ff9cef98014dc8f75501095857fe9b2b2","user":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":104400765,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQ0MDA3NjU=","name":"vscode-azurefunctions","full_name":"Microsoft/vscode-azurefunctions","owner":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/vscode-azurefunctions","description":"Azure Functions extension for VS Code","fork":false,"url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions","forks_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/forks","keys_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/teams","hooks_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/events","assignees_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/tags","blobs_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/languages","stargazers_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/subscription","commits_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/merges","archive_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/downloads","issues_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/deployments","created_at":"2017-09-21T21:28:44Z","updated_at":"2018-09-12T23:45:36Z","pushed_at":"2018-09-12T23:55:54Z","git_url":"git://github.com/Microsoft/vscode-azurefunctions.git","ssh_url":"git@github.com:Microsoft/vscode-azurefunctions.git","clone_url":"https://github.com/Microsoft/vscode-azurefunctions.git","svn_url":"https://github.com/Microsoft/vscode-azurefunctions","homepage":"https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions","size":17407,"stargazers_count":67,"watchers_count":67,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":64,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":17,"open_issues":64,"watchers":67,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/pulls/582"},"html":{"href":"https://github.com/Microsoft/vscode-azurefunctions/pull/582"},"issue":{"href":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/issues/582"},"comments":{"href":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/issues/582/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/pulls/582/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/pulls/582/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/vscode-azurefunctions/statuses/05374f46d3659237bbd66d3868c2c5a78e15108a"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"nturinski"}}