{"action":"created","comment":{"url":"https://api.github.com/repos/Chocobozzz/PeerTube/pulls/comments/224386763","pull_request_review_id":163736523,"id":224386763,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDM4Njc2Mw==","diff_hunk":"@@ -23,8 +23,13 @@ fi\n \n # Backup database\n SQL_BACKUP_PATH=\"$PEERTUBE_PATH/backup/sql-peertube_prod-$(date +\"%Y%m%d-%H%M\").bak\" \n+DB_USER=$($PEERTUBE_PATH/peertube-latest/node_modules/.bin/js-yaml $PEERTUBE_PATH/config/production.yaml | python -c 'import json,sys;obj=json.load(sys.stdin);print obj[\"'database'\"][\"'username'\"]';)","path":"scripts/upgrade.sh","position":null,"original_position":4,"commit_id":"f7e230dd806f259845e33205f2f492b5d6c3e787","original_commit_id":"77f59ab94a0218f120f30f95a8b059d83bfd367b","user":{"login":"ldidry","id":922350,"node_id":"MDQ6VXNlcjkyMjM1MA==","avatar_url":"https://avatars0.githubusercontent.com/u/922350?v=4","gravatar_id":"","url":"https://api.github.com/users/ldidry","html_url":"https://github.com/ldidry","followers_url":"https://api.github.com/users/ldidry/followers","following_url":"https://api.github.com/users/ldidry/following{/other_user}","gists_url":"https://api.github.com/users/ldidry/gists{/gist_id}","starred_url":"https://api.github.com/users/ldidry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldidry/subscriptions","organizations_url":"https://api.github.com/users/ldidry/orgs","repos_url":"https://api.github.com/users/ldidry/repos","events_url":"https://api.github.com/users/ldidry/events{/privacy}","received_events_url":"https://api.github.com/users/ldidry/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2018-10-11T09:54:51Z","updated_at":"2018-10-11T09:54:51Z","html_url":"https://github.com/Chocobozzz/PeerTube/pull/1241#discussion_r224386763","pull_request_url":"https://api.github.com/repos/Chocobozzz/PeerTube/pulls/1241","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Chocobozzz/PeerTube/pulls/comments/224386763"},"html":{"href":"https://github.com/Chocobozzz/PeerTube/pull/1241#discussion_r224386763"},"pull_request":{"href":"https://api.github.com/repos/Chocobozzz/PeerTube/pulls/1241"}},"in_reply_to_id":224368906},"pull_request":{"url":"https://api.github.com/repos/Chocobozzz/PeerTube/pulls/1241","id":222051242,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyMDUxMjQy","html_url":"https://github.com/Chocobozzz/PeerTube/pull/1241","diff_url":"https://github.com/Chocobozzz/PeerTube/pull/1241.diff","patch_url":"https://github.com/Chocobozzz/PeerTube/pull/1241.patch","issue_url":"https://api.github.com/repos/Chocobozzz/PeerTube/issues/1241","number":1241,"state":"open","locked":false,"title":"Use DB informations from config/production.yaml in upgrade script","user":{"login":"ldidry","id":922350,"node_id":"MDQ6VXNlcjkyMjM1MA==","avatar_url":"https://avatars0.githubusercontent.com/u/922350?v=4","gravatar_id":"","url":"https://api.github.com/users/ldidry","html_url":"https://github.com/ldidry","followers_url":"https://api.github.com/users/ldidry/followers","following_url":"https://api.github.com/users/ldidry/following{/other_user}","gists_url":"https://api.github.com/users/ldidry/gists{/gist_id}","starred_url":"https://api.github.com/users/ldidry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldidry/subscriptions","organizations_url":"https://api.github.com/users/ldidry/orgs","repos_url":"https://api.github.com/users/ldidry/repos","events_url":"https://api.github.com/users/ldidry/events{/privacy}","received_events_url":"https://api.github.com/users/ldidry/received_events","type":"User","site_admin":false},"body":"Avoid hardcoded values in upgrade script.\r\nAvoid asking for DB password.\r\nUses python (usually installed on your system, even with minimal installations) and some of its standard lib modules.","created_at":"2018-10-11T08:39:40Z","updated_at":"2018-10-11T09:54:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4cd6259771d243dfd911968c44d610da351bdb2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Chocobozzz/PeerTube/pulls/1241/commits","review_comments_url":"https://api.github.com/repos/Chocobozzz/PeerTube/pulls/1241/comments","review_comment_url":"https://api.github.com/repos/Chocobozzz/PeerTube/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Chocobozzz/PeerTube/issues/1241/comments","statuses_url":"https://api.github.com/repos/Chocobozzz/PeerTube/statuses/f7e230dd806f259845e33205f2f492b5d6c3e787","head":{"label":"ldidry:use-configuration-file-in-upgrade-script","ref":"use-configuration-file-in-upgrade-script","sha":"f7e230dd806f259845e33205f2f492b5d6c3e787","user":{"login":"ldidry","id":922350,"node_id":"MDQ6VXNlcjkyMjM1MA==","avatar_url":"https://avatars0.githubusercontent.com/u/922350?v=4","gravatar_id":"","url":"https://api.github.com/users/ldidry","html_url":"https://github.com/ldidry","followers_url":"https://api.github.com/users/ldidry/followers","following_url":"https://api.github.com/users/ldidry/following{/other_user}","gists_url":"https://api.github.com/users/ldidry/gists{/gist_id}","starred_url":"https://api.github.com/users/ldidry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldidry/subscriptions","organizations_url":"https://api.github.com/users/ldidry/orgs","repos_url":"https://api.github.com/users/ldidry/repos","events_url":"https://api.github.com/users/ldidry/events{/privacy}","received_events_url":"https://api.github.com/users/ldidry/received_events","type":"User","site_admin":false},"repo":{"id":138172914,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgxNzI5MTQ=","name":"PeerTube","full_name":"ldidry/PeerTube","private":false,"owner":{"login":"ldidry","id":922350,"node_id":"MDQ6VXNlcjkyMjM1MA==","avatar_url":"https://avatars0.githubusercontent.com/u/922350?v=4","gravatar_id":"","url":"https://api.github.com/users/ldidry","html_url":"https://github.com/ldidry","followers_url":"https://api.github.com/users/ldidry/followers","following_url":"https://api.github.com/users/ldidry/following{/other_user}","gists_url":"https://api.github.com/users/ldidry/gists{/gist_id}","starred_url":"https://api.github.com/users/ldidry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldidry/subscriptions","organizations_url":"https://api.github.com/users/ldidry/orgs","repos_url":"https://api.github.com/users/ldidry/repos","events_url":"https://api.github.com/users/ldidry/events{/privacy}","received_events_url":"https://api.github.com/users/ldidry/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ldidry/PeerTube","description":"Federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.","fork":true,"url":"https://api.github.com/repos/ldidry/PeerTube","forks_url":"https://api.github.com/repos/ldidry/PeerTube/forks","keys_url":"https://api.github.com/repos/ldidry/PeerTube/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ldidry/PeerTube/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ldidry/PeerTube/teams","hooks_url":"https://api.github.com/repos/ldidry/PeerTube/hooks","issue_events_url":"https://api.github.com/repos/ldidry/PeerTube/issues/events{/number}","events_url":"https://api.github.com/repos/ldidry/PeerTube/events","assignees_url":"https://api.github.com/repos/ldidry/PeerTube/assignees{/user}","branches_url":"https://api.github.com/repos/ldidry/PeerTube/branches{/branch}","tags_url":"https://api.github.com/repos/ldidry/PeerTube/tags","blobs_url":"https://api.github.com/repos/ldidry/PeerTube/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ldidry/PeerTube/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ldidry/PeerTube/git/refs{/sha}","trees_url":"https://api.github.com/repos/ldidry/PeerTube/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ldidry/PeerTube/statuses/{sha}","languages_url":"https://api.github.com/repos/ldidry/PeerTube/languages","stargazers_url":"https://api.github.com/repos/ldidry/PeerTube/stargazers","contributors_url":"https://api.github.com/repos/ldidry/PeerTube/contributors","subscribers_url":"https://api.github.com/repos/ldidry/PeerTube/subscribers","subscription_url":"https://api.github.com/repos/ldidry/PeerTube/subscription","commits_url":"https://api.github.com/repos/ldidry/PeerTube/commits{/sha}","git_commits_url":"https://api.github.com/repos/ldidry/PeerTube/git/commits{/sha}","comments_url":"https://api.github.com/repos/ldidry/PeerTube/comments{/number}","issue_comment_url":"https://api.github.com/repos/ldidry/PeerTube/issues/comments{/number}","contents_url":"https://api.github.com/repos/ldidry/PeerTube/contents/{+path}","compare_url":"https://api.github.com/repos/ldidry/PeerTube/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ldidry/PeerTube/merges","archive_url":"https://api.github.com/repos/ldidry/PeerTube/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ldidry/PeerTube/downloads","issues_url":"https://api.github.com/repos/ldidry/PeerTube/issues{/number}","pulls_url":"https://api.github.com/repos/ldidry/PeerTube/pulls{/number}","milestones_url":"https://api.github.com/repos/ldidry/PeerTube/milestones{/number}","notifications_url":"https://api.github.com/repos/ldidry/PeerTube/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ldidry/PeerTube/labels{/name}","releases_url":"https://api.github.com/repos/ldidry/PeerTube/releases{/id}","deployments_url":"https://api.github.com/repos/ldidry/PeerTube/deployments","created_at":"2018-06-21T13:19:05Z","updated_at":"2018-06-21T13:22:21Z","pushed_at":"2018-10-11T09:54:36Z","git_url":"git://github.com/ldidry/PeerTube.git","ssh_url":"git@github.com:ldidry/PeerTube.git","clone_url":"https://github.com/ldidry/PeerTube.git","svn_url":"https://github.com/ldidry/PeerTube","homepage":"","size":15235,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":1,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"Chocobozzz:develop","ref":"develop","sha":"cc1903ad2a16adf14eaa4f5429e35c455cf93bea","user":{"login":"Chocobozzz","id":5180488,"node_id":"MDQ6VXNlcjUxODA0ODg=","avatar_url":"https://avatars0.githubusercontent.com/u/5180488?v=4","gravatar_id":"","url":"https://api.github.com/users/Chocobozzz","html_url":"https://github.com/Chocobozzz","followers_url":"https://api.github.com/users/Chocobozzz/followers","following_url":"https://api.github.com/users/Chocobozzz/following{/other_user}","gists_url":"https://api.github.com/users/Chocobozzz/gists{/gist_id}","starred_url":"https://api.github.com/users/Chocobozzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chocobozzz/subscriptions","organizations_url":"https://api.github.com/users/Chocobozzz/orgs","repos_url":"https://api.github.com/users/Chocobozzz/repos","events_url":"https://api.github.com/users/Chocobozzz/events{/privacy}","received_events_url":"https://api.github.com/users/Chocobozzz/received_events","type":"User","site_admin":false},"repo":{"id":45213667,"node_id":"MDEwOlJlcG9zaXRvcnk0NTIxMzY2Nw==","name":"PeerTube","full_name":"Chocobozzz/PeerTube","private":false,"owner":{"login":"Chocobozzz","id":5180488,"node_id":"MDQ6VXNlcjUxODA0ODg=","avatar_url":"https://avatars0.githubusercontent.com/u/5180488?v=4","gravatar_id":"","url":"https://api.github.com/users/Chocobozzz","html_url":"https://github.com/Chocobozzz","followers_url":"https://api.github.com/users/Chocobozzz/followers","following_url":"https://api.github.com/users/Chocobozzz/following{/other_user}","gists_url":"https://api.github.com/users/Chocobozzz/gists{/gist_id}","starred_url":"https://api.github.com/users/Chocobozzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chocobozzz/subscriptions","organizations_url":"https://api.github.com/users/Chocobozzz/orgs","repos_url":"https://api.github.com/users/Chocobozzz/repos","events_url":"https://api.github.com/users/Chocobozzz/events{/privacy}","received_events_url":"https://api.github.com/users/Chocobozzz/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Chocobozzz/PeerTube","description":"Federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.","fork":false,"url":"https://api.github.com/repos/Chocobozzz/PeerTube","forks_url":"https://api.github.com/repos/Chocobozzz/PeerTube/forks","keys_url":"https://api.github.com/repos/Chocobozzz/PeerTube/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Chocobozzz/PeerTube/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Chocobozzz/PeerTube/teams","hooks_url":"https://api.github.com/repos/Chocobozzz/PeerTube/hooks","issue_events_url":"https://api.github.com/repos/Chocobozzz/PeerTube/issues/events{/number}","events_url":"https://api.github.com/repos/Chocobozzz/PeerTube/events","assignees_url":"https://api.github.com/repos/Chocobozzz/PeerTube/assignees{/user}","branches_url":"https://api.github.com/repos/Chocobozzz/PeerTube/branches{/branch}","tags_url":"https://api.github.com/repos/Chocobozzz/PeerTube/tags","blobs_url":"https://api.github.com/repos/Chocobozzz/PeerTube/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Chocobozzz/PeerTube/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Chocobozzz/PeerTube/git/refs{/sha}","trees_url":"https://api.github.com/repos/Chocobozzz/PeerTube/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Chocobozzz/PeerTube/statuses/{sha}","languages_url":"https://api.github.com/repos/Chocobozzz/PeerTube/languages","stargazers_url":"https://api.github.com/repos/Chocobozzz/PeerTube/stargazers","contributors_url":"https://api.github.com/repos/Chocobozzz/PeerTube/contributors","subscribers_url":"https://api.github.com/repos/Chocobozzz/PeerTube/subscribers","subscription_url":"https://api.github.com/repos/Chocobozzz/PeerTube/subscription","commits_url":"https://api.github.com/repos/Chocobozzz/PeerTube/commits{/sha}","git_commits_url":"https://api.github.com/repos/Chocobozzz/PeerTube/git/commits{/sha}","comments_url":"https://api.github.com/repos/Chocobozzz/PeerTube/comments{/number}","issue_comment_url":"https://api.github.com/repos/Chocobozzz/PeerTube/issues/comments{/number}","contents_url":"https://api.github.com/repos/Chocobozzz/PeerTube/contents/{+path}","compare_url":"https://api.github.com/repos/Chocobozzz/PeerTube/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Chocobozzz/PeerTube/merges","archive_url":"https://api.github.com/repos/Chocobozzz/PeerTube/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Chocobozzz/PeerTube/downloads","issues_url":"https://api.github.com/repos/Chocobozzz/PeerTube/issues{/number}","pulls_url":"https://api.github.com/repos/Chocobozzz/PeerTube/pulls{/number}","milestones_url":"https://api.github.com/repos/Chocobozzz/PeerTube/milestones{/number}","notifications_url":"https://api.github.com/repos/Chocobozzz/PeerTube/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Chocobozzz/PeerTube/labels{/name}","releases_url":"https://api.github.com/repos/Chocobozzz/PeerTube/releases{/id}","deployments_url":"https://api.github.com/repos/Chocobozzz/PeerTube/deployments","created_at":"2015-10-29T22:09:42Z","updated_at":"2018-10-11T06:24:11Z","pushed_at":"2018-10-11T09:54:38Z","git_url":"git://github.com/Chocobozzz/PeerTube.git","ssh_url":"git@github.com:Chocobozzz/PeerTube.git","clone_url":"https://github.com/Chocobozzz/PeerTube.git","svn_url":"https://github.com/Chocobozzz/PeerTube","homepage":"","size":15238,"stargazers_count":4147,"watchers_count":4147,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":365,"mirror_url":null,"archived":false,"open_issues_count":216,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":365,"open_issues":216,"watchers":4147,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Chocobozzz/PeerTube/pulls/1241"},"html":{"href":"https://github.com/Chocobozzz/PeerTube/pull/1241"},"issue":{"href":"https://api.github.com/repos/Chocobozzz/PeerTube/issues/1241"},"comments":{"href":"https://api.github.com/repos/Chocobozzz/PeerTube/issues/1241/comments"},"review_comments":{"href":"https://api.github.com/repos/Chocobozzz/PeerTube/pulls/1241/comments"},"review_comment":{"href":"https://api.github.com/repos/Chocobozzz/PeerTube/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Chocobozzz/PeerTube/pulls/1241/commits"},"statuses":{"href":"https://api.github.com/repos/Chocobozzz/PeerTube/statuses/f7e230dd806f259845e33205f2f492b5d6c3e787"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ldidry"}}