{"action":"created","comment":{"url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/pulls/comments/54179127","id":54179127,"diff_hunk":"@@ -0,0 +1,5 @@\n+# Shell script to set up necessary environment variables and run a PostgreSQL command\n+export PGHOST=\"{{ pillar['env']['DB_HOST'] }}\"\n+export PGUSER=\"{{ pillar['project_name'] }}_{{ pillar['environment'] }}\"\n+export PGPASSWORD=\"{{ pillar['secrets']['DB_PASSWORD'] }}\"\n+exec \"$@\"","path":"conf/salt/project/django/run_with_db.sh","position":null,"original_position":5,"commit_id":"5bab1d8ba25bad5df6735ae04a6ad21f82eaf4e7","original_commit_id":"b8d5805c37145d894709c10ab0d1b127a23ec4c1","user":{"login":"trawick","id":1207350,"avatar_url":"https://avatars.githubusercontent.com/u/1207350?v=3","gravatar_id":"","url":"https://api.github.com/users/trawick","html_url":"https://github.com/trawick","followers_url":"https://api.github.com/users/trawick/followers","following_url":"https://api.github.com/users/trawick/following{/other_user}","gists_url":"https://api.github.com/users/trawick/gists{/gist_id}","starred_url":"https://api.github.com/users/trawick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trawick/subscriptions","organizations_url":"https://api.github.com/users/trawick/orgs","repos_url":"https://api.github.com/users/trawick/repos","events_url":"https://api.github.com/users/trawick/events{/privacy}","received_events_url":"https://api.github.com/users/trawick/received_events","type":"User","site_admin":false},"body":"Do I need to set PGDATABASE in order to get your approval?  Is the pull request okay as-is?","created_at":"2016-02-25T22:51:16Z","updated_at":"2016-02-25T22:51:16Z","html_url":"https://github.com/theirc/ServiceInfo-ircdeploy/pull/19#discussion_r54179127","pull_request_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/pulls/comments/54179127"},"html":{"href":"https://github.com/theirc/ServiceInfo-ircdeploy/pull/19#discussion_r54179127"},"pull_request":{"href":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/pulls/19","id":60701611,"html_url":"https://github.com/theirc/ServiceInfo-ircdeploy/pull/19","diff_url":"https://github.com/theirc/ServiceInfo-ircdeploy/pull/19.diff","patch_url":"https://github.com/theirc/ServiceInfo-ircdeploy/pull/19.patch","issue_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/issues/19","number":19,"state":"open","locked":false,"title":"SC-119 - create wrapper script for running PostgreSQL commands","user":{"login":"trawick","id":1207350,"avatar_url":"https://avatars.githubusercontent.com/u/1207350?v=3","gravatar_id":"","url":"https://api.github.com/users/trawick","html_url":"https://github.com/trawick","followers_url":"https://api.github.com/users/trawick/followers","following_url":"https://api.github.com/users/trawick/following{/other_user}","gists_url":"https://api.github.com/users/trawick/gists{/gist_id}","starred_url":"https://api.github.com/users/trawick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trawick/subscriptions","organizations_url":"https://api.github.com/users/trawick/orgs","repos_url":"https://api.github.com/users/trawick/repos","events_url":"https://api.github.com/users/trawick/events{/privacy}","received_events_url":"https://api.github.com/users/trawick/received_events","type":"User","site_admin":false},"body":"like manage.sh, but fewer settings and appropriate syntax\r\n\r\nThis is used by future fab commands to copy a staging or production database locally or copy a production database to staging (with media, of course).","created_at":"2016-02-25T16:02:35Z","updated_at":"2016-02-25T22:51:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"40d4ba755bdc1fb7d2aeaa3fd72c012db2f3402d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/pulls/19/commits","review_comments_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/pulls/19/comments","review_comment_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/issues/19/comments","statuses_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/statuses/5bab1d8ba25bad5df6735ae04a6ad21f82eaf4e7","head":{"label":"theirc:SC-119-create-db-wrapper-script","ref":"SC-119-create-db-wrapper-script","sha":"5bab1d8ba25bad5df6735ae04a6ad21f82eaf4e7","user":{"login":"theirc","id":1713155,"avatar_url":"https://avatars.githubusercontent.com/u/1713155?v=3","gravatar_id":"","url":"https://api.github.com/users/theirc","html_url":"https://github.com/theirc","followers_url":"https://api.github.com/users/theirc/followers","following_url":"https://api.github.com/users/theirc/following{/other_user}","gists_url":"https://api.github.com/users/theirc/gists{/gist_id}","starred_url":"https://api.github.com/users/theirc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theirc/subscriptions","organizations_url":"https://api.github.com/users/theirc/orgs","repos_url":"https://api.github.com/users/theirc/repos","events_url":"https://api.github.com/users/theirc/events{/privacy}","received_events_url":"https://api.github.com/users/theirc/received_events","type":"Organization","site_admin":false},"repo":{"id":37720267,"name":"ServiceInfo-ircdeploy","full_name":"theirc/ServiceInfo-ircdeploy","owner":{"login":"theirc","id":1713155,"avatar_url":"https://avatars.githubusercontent.com/u/1713155?v=3","gravatar_id":"","url":"https://api.github.com/users/theirc","html_url":"https://github.com/theirc","followers_url":"https://api.github.com/users/theirc/followers","following_url":"https://api.github.com/users/theirc/following{/other_user}","gists_url":"https://api.github.com/users/theirc/gists{/gist_id}","starred_url":"https://api.github.com/users/theirc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theirc/subscriptions","organizations_url":"https://api.github.com/users/theirc/orgs","repos_url":"https://api.github.com/users/theirc/repos","events_url":"https://api.github.com/users/theirc/events{/privacy}","received_events_url":"https://api.github.com/users/theirc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theirc/ServiceInfo-ircdeploy","description":"","fork":false,"url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy","forks_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/forks","keys_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/teams","hooks_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/hooks","issue_events_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/issues/events{/number}","events_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/events","assignees_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/assignees{/user}","branches_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/branches{/branch}","tags_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/tags","blobs_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/git/refs{/sha}","trees_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/statuses/{sha}","languages_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/languages","stargazers_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/stargazers","contributors_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/contributors","subscribers_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/subscribers","subscription_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/subscription","commits_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/commits{/sha}","git_commits_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/git/commits{/sha}","comments_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/comments{/number}","issue_comment_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/issues/comments{/number}","contents_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/contents/{+path}","compare_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/merges","archive_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/downloads","issues_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/issues{/number}","pulls_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/pulls{/number}","milestones_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/milestones{/number}","notifications_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/labels{/name}","releases_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/releases{/id}","deployments_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/deployments","created_at":"2015-06-19T12:22:41Z","updated_at":"2016-01-26T16:46:22Z","pushed_at":"2016-02-25T20:21:56Z","git_url":"git://github.com/theirc/ServiceInfo-ircdeploy.git","ssh_url":"git@github.com:theirc/ServiceInfo-ircdeploy.git","clone_url":"https://github.com/theirc/ServiceInfo-ircdeploy.git","svn_url":"https://github.com/theirc/ServiceInfo-ircdeploy","homepage":null,"size":3505,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":0,"default_branch":"develop"}},"base":{"label":"theirc:develop","ref":"develop","sha":"9c2bf2b51d6386e47d4551b21ae1eafd4d058198","user":{"login":"theirc","id":1713155,"avatar_url":"https://avatars.githubusercontent.com/u/1713155?v=3","gravatar_id":"","url":"https://api.github.com/users/theirc","html_url":"https://github.com/theirc","followers_url":"https://api.github.com/users/theirc/followers","following_url":"https://api.github.com/users/theirc/following{/other_user}","gists_url":"https://api.github.com/users/theirc/gists{/gist_id}","starred_url":"https://api.github.com/users/theirc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theirc/subscriptions","organizations_url":"https://api.github.com/users/theirc/orgs","repos_url":"https://api.github.com/users/theirc/repos","events_url":"https://api.github.com/users/theirc/events{/privacy}","received_events_url":"https://api.github.com/users/theirc/received_events","type":"Organization","site_admin":false},"repo":{"id":37720267,"name":"ServiceInfo-ircdeploy","full_name":"theirc/ServiceInfo-ircdeploy","owner":{"login":"theirc","id":1713155,"avatar_url":"https://avatars.githubusercontent.com/u/1713155?v=3","gravatar_id":"","url":"https://api.github.com/users/theirc","html_url":"https://github.com/theirc","followers_url":"https://api.github.com/users/theirc/followers","following_url":"https://api.github.com/users/theirc/following{/other_user}","gists_url":"https://api.github.com/users/theirc/gists{/gist_id}","starred_url":"https://api.github.com/users/theirc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theirc/subscriptions","organizations_url":"https://api.github.com/users/theirc/orgs","repos_url":"https://api.github.com/users/theirc/repos","events_url":"https://api.github.com/users/theirc/events{/privacy}","received_events_url":"https://api.github.com/users/theirc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theirc/ServiceInfo-ircdeploy","description":"","fork":false,"url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy","forks_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/forks","keys_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/teams","hooks_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/hooks","issue_events_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/issues/events{/number}","events_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/events","assignees_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/assignees{/user}","branches_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/branches{/branch}","tags_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/tags","blobs_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/git/refs{/sha}","trees_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/statuses/{sha}","languages_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/languages","stargazers_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/stargazers","contributors_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/contributors","subscribers_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/subscribers","subscription_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/subscription","commits_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/commits{/sha}","git_commits_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/git/commits{/sha}","comments_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/comments{/number}","issue_comment_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/issues/comments{/number}","contents_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/contents/{+path}","compare_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/merges","archive_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/downloads","issues_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/issues{/number}","pulls_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/pulls{/number}","milestones_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/milestones{/number}","notifications_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/labels{/name}","releases_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/releases{/id}","deployments_url":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/deployments","created_at":"2015-06-19T12:22:41Z","updated_at":"2016-01-26T16:46:22Z","pushed_at":"2016-02-25T20:21:56Z","git_url":"git://github.com/theirc/ServiceInfo-ircdeploy.git","ssh_url":"git@github.com:theirc/ServiceInfo-ircdeploy.git","clone_url":"https://github.com/theirc/ServiceInfo-ircdeploy.git","svn_url":"https://github.com/theirc/ServiceInfo-ircdeploy","homepage":null,"size":3505,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/pulls/19"},"html":{"href":"https://github.com/theirc/ServiceInfo-ircdeploy/pull/19"},"issue":{"href":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/issues/19"},"comments":{"href":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/theirc/ServiceInfo-ircdeploy/statuses/5bab1d8ba25bad5df6735ae04a6ad21f82eaf4e7"}}}}