{"action":"opened","number":36,"pull_request":{"url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/pulls/36","id":91905092,"html_url":"https://github.com/sngguojie/CZ3003-CMS/pull/36","diff_url":"https://github.com/sngguojie/CZ3003-CMS/pull/36.diff","patch_url":"https://github.com/sngguojie/CZ3003-CMS/pull/36.patch","issue_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/issues/36","number":36,"state":"open","locked":false,"title":"Add release process to migrate on deployment","user":{"login":"chinjieh","id":9390343,"avatar_url":"https://avatars.githubusercontent.com/u/9390343?v=3","gravatar_id":"","url":"https://api.github.com/users/chinjieh","html_url":"https://github.com/chinjieh","followers_url":"https://api.github.com/users/chinjieh/followers","following_url":"https://api.github.com/users/chinjieh/following{/other_user}","gists_url":"https://api.github.com/users/chinjieh/gists{/gist_id}","starred_url":"https://api.github.com/users/chinjieh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chinjieh/subscriptions","organizations_url":"https://api.github.com/users/chinjieh/orgs","repos_url":"https://api.github.com/users/chinjieh/repos","events_url":"https://api.github.com/users/chinjieh/events{/privacy}","received_events_url":"https://api.github.com/users/chinjieh/received_events","type":"User","site_admin":false},"body":"<!-- Why was this change necessary? -->\r\n**Why**\r\nPreviously, automatic deployment on a new push to master branch did not include a following migration of the database. Solves Issue #25.\r\n\r\n<!-- How does it address the problem? -->\r\n**How**\r\nEdited the `Procfile` to include a `release` process, this runs `python manage.py migrate` after the app is built but before it's deployed.\r\n\r\n<!-- Are there any side effects? -->\r\n**Side Effects**\r\nMigrations must now succeed before deployment is successful.\r\n","created_at":"2016-11-02T03:49:34Z","updated_at":"2016-11-02T03:49:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/pulls/36/commits","review_comments_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/pulls/36/comments","review_comment_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/issues/36/comments","statuses_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/statuses/c97d5fd3ddabcc01f5600618a65ea0088edf9782","head":{"label":"sngguojie:auto-migrate","ref":"auto-migrate","sha":"c97d5fd3ddabcc01f5600618a65ea0088edf9782","user":{"login":"sngguojie","id":9383217,"avatar_url":"https://avatars.githubusercontent.com/u/9383217?v=3","gravatar_id":"","url":"https://api.github.com/users/sngguojie","html_url":"https://github.com/sngguojie","followers_url":"https://api.github.com/users/sngguojie/followers","following_url":"https://api.github.com/users/sngguojie/following{/other_user}","gists_url":"https://api.github.com/users/sngguojie/gists{/gist_id}","starred_url":"https://api.github.com/users/sngguojie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sngguojie/subscriptions","organizations_url":"https://api.github.com/users/sngguojie/orgs","repos_url":"https://api.github.com/users/sngguojie/repos","events_url":"https://api.github.com/users/sngguojie/events{/privacy}","received_events_url":"https://api.github.com/users/sngguojie/received_events","type":"User","site_admin":false},"repo":{"id":68910535,"name":"CZ3003-CMS","full_name":"sngguojie/CZ3003-CMS","owner":{"login":"sngguojie","id":9383217,"avatar_url":"https://avatars.githubusercontent.com/u/9383217?v=3","gravatar_id":"","url":"https://api.github.com/users/sngguojie","html_url":"https://github.com/sngguojie","followers_url":"https://api.github.com/users/sngguojie/followers","following_url":"https://api.github.com/users/sngguojie/following{/other_user}","gists_url":"https://api.github.com/users/sngguojie/gists{/gist_id}","starred_url":"https://api.github.com/users/sngguojie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sngguojie/subscriptions","organizations_url":"https://api.github.com/users/sngguojie/orgs","repos_url":"https://api.github.com/users/sngguojie/repos","events_url":"https://api.github.com/users/sngguojie/events{/privacy}","received_events_url":"https://api.github.com/users/sngguojie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sngguojie/CZ3003-CMS","description":null,"fork":false,"url":"https://api.github.com/repos/sngguojie/CZ3003-CMS","forks_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/forks","keys_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/teams","hooks_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/hooks","issue_events_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/issues/events{/number}","events_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/events","assignees_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/assignees{/user}","branches_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/branches{/branch}","tags_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/tags","blobs_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/git/refs{/sha}","trees_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/statuses/{sha}","languages_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/languages","stargazers_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/stargazers","contributors_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/contributors","subscribers_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/subscribers","subscription_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/subscription","commits_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/commits{/sha}","git_commits_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/git/commits{/sha}","comments_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/comments{/number}","issue_comment_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/issues/comments{/number}","contents_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/contents/{+path}","compare_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/merges","archive_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/downloads","issues_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/issues{/number}","pulls_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/pulls{/number}","milestones_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/milestones{/number}","notifications_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/labels{/name}","releases_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/releases{/id}","deployments_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/deployments","created_at":"2016-09-22T10:26:25Z","updated_at":"2016-11-01T15:46:28Z","pushed_at":"2016-11-02T03:49:35Z","git_url":"git://github.com/sngguojie/CZ3003-CMS.git","ssh_url":"git@github.com:sngguojie/CZ3003-CMS.git","clone_url":"https://github.com/sngguojie/CZ3003-CMS.git","svn_url":"https://github.com/sngguojie/CZ3003-CMS","homepage":null,"size":916,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"sngguojie:master","ref":"master","sha":"8a9c2533e58023fe1f78900d4acc2f1d41566876","user":{"login":"sngguojie","id":9383217,"avatar_url":"https://avatars.githubusercontent.com/u/9383217?v=3","gravatar_id":"","url":"https://api.github.com/users/sngguojie","html_url":"https://github.com/sngguojie","followers_url":"https://api.github.com/users/sngguojie/followers","following_url":"https://api.github.com/users/sngguojie/following{/other_user}","gists_url":"https://api.github.com/users/sngguojie/gists{/gist_id}","starred_url":"https://api.github.com/users/sngguojie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sngguojie/subscriptions","organizations_url":"https://api.github.com/users/sngguojie/orgs","repos_url":"https://api.github.com/users/sngguojie/repos","events_url":"https://api.github.com/users/sngguojie/events{/privacy}","received_events_url":"https://api.github.com/users/sngguojie/received_events","type":"User","site_admin":false},"repo":{"id":68910535,"name":"CZ3003-CMS","full_name":"sngguojie/CZ3003-CMS","owner":{"login":"sngguojie","id":9383217,"avatar_url":"https://avatars.githubusercontent.com/u/9383217?v=3","gravatar_id":"","url":"https://api.github.com/users/sngguojie","html_url":"https://github.com/sngguojie","followers_url":"https://api.github.com/users/sngguojie/followers","following_url":"https://api.github.com/users/sngguojie/following{/other_user}","gists_url":"https://api.github.com/users/sngguojie/gists{/gist_id}","starred_url":"https://api.github.com/users/sngguojie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sngguojie/subscriptions","organizations_url":"https://api.github.com/users/sngguojie/orgs","repos_url":"https://api.github.com/users/sngguojie/repos","events_url":"https://api.github.com/users/sngguojie/events{/privacy}","received_events_url":"https://api.github.com/users/sngguojie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sngguojie/CZ3003-CMS","description":null,"fork":false,"url":"https://api.github.com/repos/sngguojie/CZ3003-CMS","forks_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/forks","keys_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/teams","hooks_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/hooks","issue_events_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/issues/events{/number}","events_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/events","assignees_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/assignees{/user}","branches_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/branches{/branch}","tags_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/tags","blobs_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/git/refs{/sha}","trees_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/statuses/{sha}","languages_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/languages","stargazers_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/stargazers","contributors_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/contributors","subscribers_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/subscribers","subscription_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/subscription","commits_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/commits{/sha}","git_commits_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/git/commits{/sha}","comments_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/comments{/number}","issue_comment_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/issues/comments{/number}","contents_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/contents/{+path}","compare_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/merges","archive_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/downloads","issues_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/issues{/number}","pulls_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/pulls{/number}","milestones_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/milestones{/number}","notifications_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/labels{/name}","releases_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/releases{/id}","deployments_url":"https://api.github.com/repos/sngguojie/CZ3003-CMS/deployments","created_at":"2016-09-22T10:26:25Z","updated_at":"2016-11-01T15:46:28Z","pushed_at":"2016-11-02T03:49:35Z","git_url":"git://github.com/sngguojie/CZ3003-CMS.git","ssh_url":"git@github.com:sngguojie/CZ3003-CMS.git","clone_url":"https://github.com/sngguojie/CZ3003-CMS.git","svn_url":"https://github.com/sngguojie/CZ3003-CMS","homepage":null,"size":916,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sngguojie/CZ3003-CMS/pulls/36"},"html":{"href":"https://github.com/sngguojie/CZ3003-CMS/pull/36"},"issue":{"href":"https://api.github.com/repos/sngguojie/CZ3003-CMS/issues/36"},"comments":{"href":"https://api.github.com/repos/sngguojie/CZ3003-CMS/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/sngguojie/CZ3003-CMS/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/sngguojie/CZ3003-CMS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sngguojie/CZ3003-CMS/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/sngguojie/CZ3003-CMS/statuses/c97d5fd3ddabcc01f5600618a65ea0088edf9782"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"chinjieh"}}