{"action":"created","comment":{"url":"https://api.github.com/repos/covermymeds/puppet-sentry/pulls/comments/52912204","id":52912204,"diff_hunk":"@@ -26,8 +32,10 @@\n # Copyright 2015 CoverMyMeds\n #\n define sentry::source::export (\n-  $language = 'Other',\n-  $env      = undef,\n+  $language     = 'Other',\n+  $organization = $::sentry::organization,","path":"manifests/source/export.pp","position":20,"original_position":20,"commit_id":"fdcc2cae34ba57eacd3deaf8d4b3e3bda18684e2","original_commit_id":"fdcc2cae34ba57eacd3deaf8d4b3e3bda18684e2","user":{"login":"adamcstephens","id":2071575,"avatar_url":"https://avatars.githubusercontent.com/u/2071575?v=3","gravatar_id":"","url":"https://api.github.com/users/adamcstephens","html_url":"https://github.com/adamcstephens","followers_url":"https://api.github.com/users/adamcstephens/followers","following_url":"https://api.github.com/users/adamcstephens/following{/other_user}","gists_url":"https://api.github.com/users/adamcstephens/gists{/gist_id}","starred_url":"https://api.github.com/users/adamcstephens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamcstephens/subscriptions","organizations_url":"https://api.github.com/users/adamcstephens/orgs","repos_url":"https://api.github.com/users/adamcstephens/repos","events_url":"https://api.github.com/users/adamcstephens/events{/privacy}","received_events_url":"https://api.github.com/users/adamcstephens/received_events","type":"User","site_admin":false},"body":"If you set this to undef, your if statement in line 53 can be simpler. As is, do you even need the if statement in line 53?","created_at":"2016-02-15T15:36:31Z","updated_at":"2016-02-15T15:36:31Z","html_url":"https://github.com/covermymeds/puppet-sentry/pull/13#discussion_r52912204","pull_request_url":"https://api.github.com/repos/covermymeds/puppet-sentry/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/covermymeds/puppet-sentry/pulls/comments/52912204"},"html":{"href":"https://github.com/covermymeds/puppet-sentry/pull/13#discussion_r52912204"},"pull_request":{"href":"https://api.github.com/repos/covermymeds/puppet-sentry/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/covermymeds/puppet-sentry/pulls/13","id":59273878,"html_url":"https://github.com/covermymeds/puppet-sentry/pull/13","diff_url":"https://github.com/covermymeds/puppet-sentry/pull/13.diff","patch_url":"https://github.com/covermymeds/puppet-sentry/pull/13.patch","issue_url":"https://api.github.com/repos/covermymeds/puppet-sentry/issues/13","number":13,"state":"open","locked":false,"title":"Allow projects to be created in teams","user":{"login":"skpy","id":722830,"avatar_url":"https://avatars.githubusercontent.com/u/722830?v=3","gravatar_id":"","url":"https://api.github.com/users/skpy","html_url":"https://github.com/skpy","followers_url":"https://api.github.com/users/skpy/followers","following_url":"https://api.github.com/users/skpy/following{/other_user}","gists_url":"https://api.github.com/users/skpy/gists{/gist_id}","starred_url":"https://api.github.com/users/skpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skpy/subscriptions","organizations_url":"https://api.github.com/users/skpy/orgs","repos_url":"https://api.github.com/users/skpy/repos","events_url":"https://api.github.com/users/skpy/events{/privacy}","received_events_url":"https://api.github.com/users/skpy/received_events","type":"User","site_admin":false},"body":"The create_project.py script had previously accepted a `-t` flag to\nspecify the team to which the project should be assigned. This commit\nallows create_project.py to create that team if it does not exist.\n\nNote that the `-o` flag allows the specification of an organization, but\nthe script **does not** create new organizations at this time.\n\nThe `sentry::source::export` and `sentry::source::project` defined types\nhave been updated to pass organization and team.\n\nFor projects created outside of the default organization+team combo, the\nDSN cache file will include the organization and team in the directory\nname. These values are `uriescape()`d to ensure that spaces and other\nthings are supported.\n\nCloses #11","created_at":"2016-02-13T18:19:44Z","updated_at":"2016-02-15T15:36:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df262cb7cade0d5da50119982c5e0ed46104590e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/covermymeds/puppet-sentry/pulls/13/commits","review_comments_url":"https://api.github.com/repos/covermymeds/puppet-sentry/pulls/13/comments","review_comment_url":"https://api.github.com/repos/covermymeds/puppet-sentry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/covermymeds/puppet-sentry/issues/13/comments","statuses_url":"https://api.github.com/repos/covermymeds/puppet-sentry/statuses/fdcc2cae34ba57eacd3deaf8d4b3e3bda18684e2","head":{"label":"covermymeds:11_teams","ref":"11_teams","sha":"fdcc2cae34ba57eacd3deaf8d4b3e3bda18684e2","user":{"login":"covermymeds","id":2488375,"avatar_url":"https://avatars.githubusercontent.com/u/2488375?v=3","gravatar_id":"","url":"https://api.github.com/users/covermymeds","html_url":"https://github.com/covermymeds","followers_url":"https://api.github.com/users/covermymeds/followers","following_url":"https://api.github.com/users/covermymeds/following{/other_user}","gists_url":"https://api.github.com/users/covermymeds/gists{/gist_id}","starred_url":"https://api.github.com/users/covermymeds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/covermymeds/subscriptions","organizations_url":"https://api.github.com/users/covermymeds/orgs","repos_url":"https://api.github.com/users/covermymeds/repos","events_url":"https://api.github.com/users/covermymeds/events{/privacy}","received_events_url":"https://api.github.com/users/covermymeds/received_events","type":"Organization","site_admin":false},"repo":{"id":44687650,"name":"puppet-sentry","full_name":"covermymeds/puppet-sentry","owner":{"login":"covermymeds","id":2488375,"avatar_url":"https://avatars.githubusercontent.com/u/2488375?v=3","gravatar_id":"","url":"https://api.github.com/users/covermymeds","html_url":"https://github.com/covermymeds","followers_url":"https://api.github.com/users/covermymeds/followers","following_url":"https://api.github.com/users/covermymeds/following{/other_user}","gists_url":"https://api.github.com/users/covermymeds/gists{/gist_id}","starred_url":"https://api.github.com/users/covermymeds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/covermymeds/subscriptions","organizations_url":"https://api.github.com/users/covermymeds/orgs","repos_url":"https://api.github.com/users/covermymeds/repos","events_url":"https://api.github.com/users/covermymeds/events{/privacy}","received_events_url":"https://api.github.com/users/covermymeds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/covermymeds/puppet-sentry","description":"Install and manage Sentry with Puppet!","fork":false,"url":"https://api.github.com/repos/covermymeds/puppet-sentry","forks_url":"https://api.github.com/repos/covermymeds/puppet-sentry/forks","keys_url":"https://api.github.com/repos/covermymeds/puppet-sentry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/covermymeds/puppet-sentry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/covermymeds/puppet-sentry/teams","hooks_url":"https://api.github.com/repos/covermymeds/puppet-sentry/hooks","issue_events_url":"https://api.github.com/repos/covermymeds/puppet-sentry/issues/events{/number}","events_url":"https://api.github.com/repos/covermymeds/puppet-sentry/events","assignees_url":"https://api.github.com/repos/covermymeds/puppet-sentry/assignees{/user}","branches_url":"https://api.github.com/repos/covermymeds/puppet-sentry/branches{/branch}","tags_url":"https://api.github.com/repos/covermymeds/puppet-sentry/tags","blobs_url":"https://api.github.com/repos/covermymeds/puppet-sentry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/covermymeds/puppet-sentry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/covermymeds/puppet-sentry/git/refs{/sha}","trees_url":"https://api.github.com/repos/covermymeds/puppet-sentry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/covermymeds/puppet-sentry/statuses/{sha}","languages_url":"https://api.github.com/repos/covermymeds/puppet-sentry/languages","stargazers_url":"https://api.github.com/repos/covermymeds/puppet-sentry/stargazers","contributors_url":"https://api.github.com/repos/covermymeds/puppet-sentry/contributors","subscribers_url":"https://api.github.com/repos/covermymeds/puppet-sentry/subscribers","subscription_url":"https://api.github.com/repos/covermymeds/puppet-sentry/subscription","commits_url":"https://api.github.com/repos/covermymeds/puppet-sentry/commits{/sha}","git_commits_url":"https://api.github.com/repos/covermymeds/puppet-sentry/git/commits{/sha}","comments_url":"https://api.github.com/repos/covermymeds/puppet-sentry/comments{/number}","issue_comment_url":"https://api.github.com/repos/covermymeds/puppet-sentry/issues/comments{/number}","contents_url":"https://api.github.com/repos/covermymeds/puppet-sentry/contents/{+path}","compare_url":"https://api.github.com/repos/covermymeds/puppet-sentry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/covermymeds/puppet-sentry/merges","archive_url":"https://api.github.com/repos/covermymeds/puppet-sentry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/covermymeds/puppet-sentry/downloads","issues_url":"https://api.github.com/repos/covermymeds/puppet-sentry/issues{/number}","pulls_url":"https://api.github.com/repos/covermymeds/puppet-sentry/pulls{/number}","milestones_url":"https://api.github.com/repos/covermymeds/puppet-sentry/milestones{/number}","notifications_url":"https://api.github.com/repos/covermymeds/puppet-sentry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/covermymeds/puppet-sentry/labels{/name}","releases_url":"https://api.github.com/repos/covermymeds/puppet-sentry/releases{/id}","deployments_url":"https://api.github.com/repos/covermymeds/puppet-sentry/deployments","created_at":"2015-10-21T15:57:36Z","updated_at":"2016-01-18T10:20:15Z","pushed_at":"2016-02-15T01:57:09Z","git_url":"git://github.com/covermymeds/puppet-sentry.git","ssh_url":"git@github.com:covermymeds/puppet-sentry.git","clone_url":"https://github.com/covermymeds/puppet-sentry.git","svn_url":"https://github.com/covermymeds/puppet-sentry","homepage":null,"size":37,"stargazers_count":2,"watchers_count":2,"language":"Puppet","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"covermymeds:master","ref":"master","sha":"6afff39c28045f2e71a36434b19ad852ca34b323","user":{"login":"covermymeds","id":2488375,"avatar_url":"https://avatars.githubusercontent.com/u/2488375?v=3","gravatar_id":"","url":"https://api.github.com/users/covermymeds","html_url":"https://github.com/covermymeds","followers_url":"https://api.github.com/users/covermymeds/followers","following_url":"https://api.github.com/users/covermymeds/following{/other_user}","gists_url":"https://api.github.com/users/covermymeds/gists{/gist_id}","starred_url":"https://api.github.com/users/covermymeds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/covermymeds/subscriptions","organizations_url":"https://api.github.com/users/covermymeds/orgs","repos_url":"https://api.github.com/users/covermymeds/repos","events_url":"https://api.github.com/users/covermymeds/events{/privacy}","received_events_url":"https://api.github.com/users/covermymeds/received_events","type":"Organization","site_admin":false},"repo":{"id":44687650,"name":"puppet-sentry","full_name":"covermymeds/puppet-sentry","owner":{"login":"covermymeds","id":2488375,"avatar_url":"https://avatars.githubusercontent.com/u/2488375?v=3","gravatar_id":"","url":"https://api.github.com/users/covermymeds","html_url":"https://github.com/covermymeds","followers_url":"https://api.github.com/users/covermymeds/followers","following_url":"https://api.github.com/users/covermymeds/following{/other_user}","gists_url":"https://api.github.com/users/covermymeds/gists{/gist_id}","starred_url":"https://api.github.com/users/covermymeds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/covermymeds/subscriptions","organizations_url":"https://api.github.com/users/covermymeds/orgs","repos_url":"https://api.github.com/users/covermymeds/repos","events_url":"https://api.github.com/users/covermymeds/events{/privacy}","received_events_url":"https://api.github.com/users/covermymeds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/covermymeds/puppet-sentry","description":"Install and manage Sentry with Puppet!","fork":false,"url":"https://api.github.com/repos/covermymeds/puppet-sentry","forks_url":"https://api.github.com/repos/covermymeds/puppet-sentry/forks","keys_url":"https://api.github.com/repos/covermymeds/puppet-sentry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/covermymeds/puppet-sentry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/covermymeds/puppet-sentry/teams","hooks_url":"https://api.github.com/repos/covermymeds/puppet-sentry/hooks","issue_events_url":"https://api.github.com/repos/covermymeds/puppet-sentry/issues/events{/number}","events_url":"https://api.github.com/repos/covermymeds/puppet-sentry/events","assignees_url":"https://api.github.com/repos/covermymeds/puppet-sentry/assignees{/user}","branches_url":"https://api.github.com/repos/covermymeds/puppet-sentry/branches{/branch}","tags_url":"https://api.github.com/repos/covermymeds/puppet-sentry/tags","blobs_url":"https://api.github.com/repos/covermymeds/puppet-sentry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/covermymeds/puppet-sentry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/covermymeds/puppet-sentry/git/refs{/sha}","trees_url":"https://api.github.com/repos/covermymeds/puppet-sentry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/covermymeds/puppet-sentry/statuses/{sha}","languages_url":"https://api.github.com/repos/covermymeds/puppet-sentry/languages","stargazers_url":"https://api.github.com/repos/covermymeds/puppet-sentry/stargazers","contributors_url":"https://api.github.com/repos/covermymeds/puppet-sentry/contributors","subscribers_url":"https://api.github.com/repos/covermymeds/puppet-sentry/subscribers","subscription_url":"https://api.github.com/repos/covermymeds/puppet-sentry/subscription","commits_url":"https://api.github.com/repos/covermymeds/puppet-sentry/commits{/sha}","git_commits_url":"https://api.github.com/repos/covermymeds/puppet-sentry/git/commits{/sha}","comments_url":"https://api.github.com/repos/covermymeds/puppet-sentry/comments{/number}","issue_comment_url":"https://api.github.com/repos/covermymeds/puppet-sentry/issues/comments{/number}","contents_url":"https://api.github.com/repos/covermymeds/puppet-sentry/contents/{+path}","compare_url":"https://api.github.com/repos/covermymeds/puppet-sentry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/covermymeds/puppet-sentry/merges","archive_url":"https://api.github.com/repos/covermymeds/puppet-sentry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/covermymeds/puppet-sentry/downloads","issues_url":"https://api.github.com/repos/covermymeds/puppet-sentry/issues{/number}","pulls_url":"https://api.github.com/repos/covermymeds/puppet-sentry/pulls{/number}","milestones_url":"https://api.github.com/repos/covermymeds/puppet-sentry/milestones{/number}","notifications_url":"https://api.github.com/repos/covermymeds/puppet-sentry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/covermymeds/puppet-sentry/labels{/name}","releases_url":"https://api.github.com/repos/covermymeds/puppet-sentry/releases{/id}","deployments_url":"https://api.github.com/repos/covermymeds/puppet-sentry/deployments","created_at":"2015-10-21T15:57:36Z","updated_at":"2016-01-18T10:20:15Z","pushed_at":"2016-02-15T01:57:09Z","git_url":"git://github.com/covermymeds/puppet-sentry.git","ssh_url":"git@github.com:covermymeds/puppet-sentry.git","clone_url":"https://github.com/covermymeds/puppet-sentry.git","svn_url":"https://github.com/covermymeds/puppet-sentry","homepage":null,"size":37,"stargazers_count":2,"watchers_count":2,"language":"Puppet","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/covermymeds/puppet-sentry/pulls/13"},"html":{"href":"https://github.com/covermymeds/puppet-sentry/pull/13"},"issue":{"href":"https://api.github.com/repos/covermymeds/puppet-sentry/issues/13"},"comments":{"href":"https://api.github.com/repos/covermymeds/puppet-sentry/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/covermymeds/puppet-sentry/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/covermymeds/puppet-sentry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/covermymeds/puppet-sentry/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/covermymeds/puppet-sentry/statuses/fdcc2cae34ba57eacd3deaf8d4b3e3bda18684e2"}}}}