{"action":"created","comment":{"url":"https://api.github.com/repos/CedricCabessa/gm_pr/pulls/comments/36235753","id":36235753,"diff_hunk":"@@ -1,33 +1,90 @@\n-Multi project Github PullRequest integration for Slack\n-======================================================\n+# gm_pr: A multi project Github pull request viewer\n \n-Slack setup:\n-  * Add a \"Incomming webhook\" and copy the url in gm_pr.settings.SLACK_URL\n-  the channel do not matter as it will be overrided in the script\n \n-  * Add a \"Slash command\"\n-    * use the GET method\n-    * the url is where you deployed this django app followed by \"/bot\"\n-    * copy the token in gm_pr.settings.SLACK_TOKEN\n+If your project is spread over multiple git repositories, it can be hard to\n+keep track of all the open pull requests.\n \n-Script setup\n-  * Configure the slack channel / projects list mapping in gm_pr.settings.PROJECTS_CHAN\n+The gm_pr project gives you a simple web page where you can see all the open\n+pull requests with the number of reviews, label, milestone, etc\n \n-  * Configure the github login / password\n+![screenshot](screenshot.png)\n \n-  * WEB_URL is where you deployed this django app\n+As a bonus, we also have a slack bot :-)\n \n-Docker cmd:\n-  something like:\n+## Installation\n \n-    docker run --name=gm_pr -d -p 4280:8000 -v /var/www/gm_pr:/var/www/gm_pr gm_pr\n+The recommended method to run gm_pr is to use the docker image.\n \n+A Dockerfile is available in the \"deploy\" folder. Building and running the image\n+can be done in a few lines:\n \n-Manual instructions:\n-====================\n+```\n+cd deploy\n+docker build -t gm_pr .\n+docker run -v /path/to/gm_pr:/var/www/gm_pr --name gm_pr -p 8000:80 -d gm_pr\n+```\n+\n+Now, you can simply point your browser to http://localhost:8000.\n+\n+If you want to make gm_pr available on your external interface, configure a\n+reverse proxy with apache. You can use this snippet:\n+\n+```\n+<Proxy http://localhost:8000/>\n+        Order deny,allow\n+        Allow from all\n+</Proxy>\n+\n+ProxyPass /gm_pr http://localhost:8000\n+ProxyPassReverse /gm_pr http://localhost:8000\n+\n+<Location /gm_pr/bot>\n+        Require all granted\n+</Location>\n+```\n+\n+## Configuration\n+\n+2 files are used for configuration:\n+\n+ * gm_pr/settings.py: this is the standard Django configuration file\n+ * gm_pr/settings_projects.py: contains everything related to your projects\n+\n+### Django configuration\n+\n+Refer to the django project if you want to change the configuration.\n+Normally you should only need to adjust a few settings:\n+\n+**ALLOWED_HOSTS** You may want to add the name of your server if you use\n+the docker / apache configuration.\n+\n+**STATIC_URL** Add the full url to your static directory\n+\n+### Gm_pr configuration\n+\n+Open **gm_pr/settings_projects.py** and read the comment, you'll need to change\n+most of the configuration here, but the file is self documented.\n+\n+### Slack configuration\n+\n+You can see your PR from Slack.\n+\n+You need to add a \"slash command\" in the slack settings (for eg \"/pr\")\n+\n+For the URL append \"/bot/\" to your gm_pr url, and in order to make think\n+easy with the Django CSRF protection you have to choose the GET method.","path":"README.md","position":93,"original_position":93,"commit_id":"ff04a6ab140bc7c2db0311ddc07282ef72d6b2b6","original_commit_id":"ff04a6ab140bc7c2db0311ddc07282ef72d6b2b6","user":{"login":"caarmen","id":1731388,"avatar_url":"https://avatars.githubusercontent.com/u/1731388?v=3","gravatar_id":"","url":"https://api.github.com/users/caarmen","html_url":"https://github.com/caarmen","followers_url":"https://api.github.com/users/caarmen/followers","following_url":"https://api.github.com/users/caarmen/following{/other_user}","gists_url":"https://api.github.com/users/caarmen/gists{/gist_id}","starred_url":"https://api.github.com/users/caarmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caarmen/subscriptions","organizations_url":"https://api.github.com/users/caarmen/orgs","repos_url":"https://api.github.com/users/caarmen/repos","events_url":"https://api.github.com/users/caarmen/events{/privacy}","received_events_url":"https://api.github.com/users/caarmen/received_events","type":"User","site_admin":false},"body":"```\r\nFor the URL, append \"/bot/\" to your gm_pr URL.  In order to make things\r\neasy with the Django CSRF protection, you have to choose the GET method.\r\n```\r\n","created_at":"2015-08-04T20:15:59Z","updated_at":"2015-08-04T20:15:59Z","html_url":"https://github.com/CedricCabessa/gm_pr/pull/39#discussion_r36235753","pull_request_url":"https://api.github.com/repos/CedricCabessa/gm_pr/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/CedricCabessa/gm_pr/pulls/comments/36235753"},"html":{"href":"https://github.com/CedricCabessa/gm_pr/pull/39#discussion_r36235753"},"pull_request":{"href":"https://api.github.com/repos/CedricCabessa/gm_pr/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/CedricCabessa/gm_pr/pulls/39","id":41559590,"html_url":"https://github.com/CedricCabessa/gm_pr/pull/39","diff_url":"https://github.com/CedricCabessa/gm_pr/pull/39.diff","patch_url":"https://github.com/CedricCabessa/gm_pr/pull/39.patch","issue_url":"https://api.github.com/repos/CedricCabessa/gm_pr/issues/39","number":39,"state":"open","locked":false,"title":"Move to geny organisation","user":{"login":"CedricCabessa","id":365097,"avatar_url":"https://avatars.githubusercontent.com/u/365097?v=3","gravatar_id":"","url":"https://api.github.com/users/CedricCabessa","html_url":"https://github.com/CedricCabessa","followers_url":"https://api.github.com/users/CedricCabessa/followers","following_url":"https://api.github.com/users/CedricCabessa/following{/other_user}","gists_url":"https://api.github.com/users/CedricCabessa/gists{/gist_id}","starred_url":"https://api.github.com/users/CedricCabessa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CedricCabessa/subscriptions","organizations_url":"https://api.github.com/users/CedricCabessa/orgs","repos_url":"https://api.github.com/users/CedricCabessa/repos","events_url":"https://api.github.com/users/CedricCabessa/events{/privacy}","received_events_url":"https://api.github.com/users/CedricCabessa/received_events","type":"User","site_admin":false},"body":"This PR will hopefully fixes #30 ","created_at":"2015-08-04T11:28:32Z","updated_at":"2015-08-04T20:15:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4bc9a906e2a6ee077cf6c8c423d660d548385ee2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CedricCabessa/gm_pr/pulls/39/commits","review_comments_url":"https://api.github.com/repos/CedricCabessa/gm_pr/pulls/39/comments","review_comment_url":"https://api.github.com/repos/CedricCabessa/gm_pr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CedricCabessa/gm_pr/issues/39/comments","statuses_url":"https://api.github.com/repos/CedricCabessa/gm_pr/statuses/ff04a6ab140bc7c2db0311ddc07282ef72d6b2b6","head":{"label":"CedricCabessa:geny","ref":"geny","sha":"ff04a6ab140bc7c2db0311ddc07282ef72d6b2b6","user":{"login":"CedricCabessa","id":365097,"avatar_url":"https://avatars.githubusercontent.com/u/365097?v=3","gravatar_id":"","url":"https://api.github.com/users/CedricCabessa","html_url":"https://github.com/CedricCabessa","followers_url":"https://api.github.com/users/CedricCabessa/followers","following_url":"https://api.github.com/users/CedricCabessa/following{/other_user}","gists_url":"https://api.github.com/users/CedricCabessa/gists{/gist_id}","starred_url":"https://api.github.com/users/CedricCabessa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CedricCabessa/subscriptions","organizations_url":"https://api.github.com/users/CedricCabessa/orgs","repos_url":"https://api.github.com/users/CedricCabessa/repos","events_url":"https://api.github.com/users/CedricCabessa/events{/privacy}","received_events_url":"https://api.github.com/users/CedricCabessa/received_events","type":"User","site_admin":false},"repo":{"id":27078528,"name":"gm_pr","full_name":"CedricCabessa/gm_pr","owner":{"login":"CedricCabessa","id":365097,"avatar_url":"https://avatars.githubusercontent.com/u/365097?v=3","gravatar_id":"","url":"https://api.github.com/users/CedricCabessa","html_url":"https://github.com/CedricCabessa","followers_url":"https://api.github.com/users/CedricCabessa/followers","following_url":"https://api.github.com/users/CedricCabessa/following{/other_user}","gists_url":"https://api.github.com/users/CedricCabessa/gists{/gist_id}","starred_url":"https://api.github.com/users/CedricCabessa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CedricCabessa/subscriptions","organizations_url":"https://api.github.com/users/CedricCabessa/orgs","repos_url":"https://api.github.com/users/CedricCabessa/repos","events_url":"https://api.github.com/users/CedricCabessa/events{/privacy}","received_events_url":"https://api.github.com/users/CedricCabessa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CedricCabessa/gm_pr","description":"Multi project Github PullRequest integration for Slack","fork":false,"url":"https://api.github.com/repos/CedricCabessa/gm_pr","forks_url":"https://api.github.com/repos/CedricCabessa/gm_pr/forks","keys_url":"https://api.github.com/repos/CedricCabessa/gm_pr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CedricCabessa/gm_pr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CedricCabessa/gm_pr/teams","hooks_url":"https://api.github.com/repos/CedricCabessa/gm_pr/hooks","issue_events_url":"https://api.github.com/repos/CedricCabessa/gm_pr/issues/events{/number}","events_url":"https://api.github.com/repos/CedricCabessa/gm_pr/events","assignees_url":"https://api.github.com/repos/CedricCabessa/gm_pr/assignees{/user}","branches_url":"https://api.github.com/repos/CedricCabessa/gm_pr/branches{/branch}","tags_url":"https://api.github.com/repos/CedricCabessa/gm_pr/tags","blobs_url":"https://api.github.com/repos/CedricCabessa/gm_pr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CedricCabessa/gm_pr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CedricCabessa/gm_pr/git/refs{/sha}","trees_url":"https://api.github.com/repos/CedricCabessa/gm_pr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CedricCabessa/gm_pr/statuses/{sha}","languages_url":"https://api.github.com/repos/CedricCabessa/gm_pr/languages","stargazers_url":"https://api.github.com/repos/CedricCabessa/gm_pr/stargazers","contributors_url":"https://api.github.com/repos/CedricCabessa/gm_pr/contributors","subscribers_url":"https://api.github.com/repos/CedricCabessa/gm_pr/subscribers","subscription_url":"https://api.github.com/repos/CedricCabessa/gm_pr/subscription","commits_url":"https://api.github.com/repos/CedricCabessa/gm_pr/commits{/sha}","git_commits_url":"https://api.github.com/repos/CedricCabessa/gm_pr/git/commits{/sha}","comments_url":"https://api.github.com/repos/CedricCabessa/gm_pr/comments{/number}","issue_comment_url":"https://api.github.com/repos/CedricCabessa/gm_pr/issues/comments{/number}","contents_url":"https://api.github.com/repos/CedricCabessa/gm_pr/contents/{+path}","compare_url":"https://api.github.com/repos/CedricCabessa/gm_pr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CedricCabessa/gm_pr/merges","archive_url":"https://api.github.com/repos/CedricCabessa/gm_pr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CedricCabessa/gm_pr/downloads","issues_url":"https://api.github.com/repos/CedricCabessa/gm_pr/issues{/number}","pulls_url":"https://api.github.com/repos/CedricCabessa/gm_pr/pulls{/number}","milestones_url":"https://api.github.com/repos/CedricCabessa/gm_pr/milestones{/number}","notifications_url":"https://api.github.com/repos/CedricCabessa/gm_pr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CedricCabessa/gm_pr/labels{/name}","releases_url":"https://api.github.com/repos/CedricCabessa/gm_pr/releases{/id}","created_at":"2014-11-24T14:14:01Z","updated_at":"2015-02-20T16:22:05Z","pushed_at":"2015-08-04T11:28:32Z","git_url":"git://github.com/CedricCabessa/gm_pr.git","ssh_url":"git@github.com:CedricCabessa/gm_pr.git","clone_url":"https://github.com/CedricCabessa/gm_pr.git","svn_url":"https://github.com/CedricCabessa/gm_pr","homepage":"","size":494,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":10,"forks":4,"open_issues":10,"watchers":2,"default_branch":"master"}},"base":{"label":"CedricCabessa:master","ref":"master","sha":"22f3c595b9f20e0b960e3e0e6ef5ece121d28af4","user":{"login":"CedricCabessa","id":365097,"avatar_url":"https://avatars.githubusercontent.com/u/365097?v=3","gravatar_id":"","url":"https://api.github.com/users/CedricCabessa","html_url":"https://github.com/CedricCabessa","followers_url":"https://api.github.com/users/CedricCabessa/followers","following_url":"https://api.github.com/users/CedricCabessa/following{/other_user}","gists_url":"https://api.github.com/users/CedricCabessa/gists{/gist_id}","starred_url":"https://api.github.com/users/CedricCabessa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CedricCabessa/subscriptions","organizations_url":"https://api.github.com/users/CedricCabessa/orgs","repos_url":"https://api.github.com/users/CedricCabessa/repos","events_url":"https://api.github.com/users/CedricCabessa/events{/privacy}","received_events_url":"https://api.github.com/users/CedricCabessa/received_events","type":"User","site_admin":false},"repo":{"id":27078528,"name":"gm_pr","full_name":"CedricCabessa/gm_pr","owner":{"login":"CedricCabessa","id":365097,"avatar_url":"https://avatars.githubusercontent.com/u/365097?v=3","gravatar_id":"","url":"https://api.github.com/users/CedricCabessa","html_url":"https://github.com/CedricCabessa","followers_url":"https://api.github.com/users/CedricCabessa/followers","following_url":"https://api.github.com/users/CedricCabessa/following{/other_user}","gists_url":"https://api.github.com/users/CedricCabessa/gists{/gist_id}","starred_url":"https://api.github.com/users/CedricCabessa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CedricCabessa/subscriptions","organizations_url":"https://api.github.com/users/CedricCabessa/orgs","repos_url":"https://api.github.com/users/CedricCabessa/repos","events_url":"https://api.github.com/users/CedricCabessa/events{/privacy}","received_events_url":"https://api.github.com/users/CedricCabessa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CedricCabessa/gm_pr","description":"Multi project Github PullRequest integration for Slack","fork":false,"url":"https://api.github.com/repos/CedricCabessa/gm_pr","forks_url":"https://api.github.com/repos/CedricCabessa/gm_pr/forks","keys_url":"https://api.github.com/repos/CedricCabessa/gm_pr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CedricCabessa/gm_pr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CedricCabessa/gm_pr/teams","hooks_url":"https://api.github.com/repos/CedricCabessa/gm_pr/hooks","issue_events_url":"https://api.github.com/repos/CedricCabessa/gm_pr/issues/events{/number}","events_url":"https://api.github.com/repos/CedricCabessa/gm_pr/events","assignees_url":"https://api.github.com/repos/CedricCabessa/gm_pr/assignees{/user}","branches_url":"https://api.github.com/repos/CedricCabessa/gm_pr/branches{/branch}","tags_url":"https://api.github.com/repos/CedricCabessa/gm_pr/tags","blobs_url":"https://api.github.com/repos/CedricCabessa/gm_pr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CedricCabessa/gm_pr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CedricCabessa/gm_pr/git/refs{/sha}","trees_url":"https://api.github.com/repos/CedricCabessa/gm_pr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CedricCabessa/gm_pr/statuses/{sha}","languages_url":"https://api.github.com/repos/CedricCabessa/gm_pr/languages","stargazers_url":"https://api.github.com/repos/CedricCabessa/gm_pr/stargazers","contributors_url":"https://api.github.com/repos/CedricCabessa/gm_pr/contributors","subscribers_url":"https://api.github.com/repos/CedricCabessa/gm_pr/subscribers","subscription_url":"https://api.github.com/repos/CedricCabessa/gm_pr/subscription","commits_url":"https://api.github.com/repos/CedricCabessa/gm_pr/commits{/sha}","git_commits_url":"https://api.github.com/repos/CedricCabessa/gm_pr/git/commits{/sha}","comments_url":"https://api.github.com/repos/CedricCabessa/gm_pr/comments{/number}","issue_comment_url":"https://api.github.com/repos/CedricCabessa/gm_pr/issues/comments{/number}","contents_url":"https://api.github.com/repos/CedricCabessa/gm_pr/contents/{+path}","compare_url":"https://api.github.com/repos/CedricCabessa/gm_pr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CedricCabessa/gm_pr/merges","archive_url":"https://api.github.com/repos/CedricCabessa/gm_pr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CedricCabessa/gm_pr/downloads","issues_url":"https://api.github.com/repos/CedricCabessa/gm_pr/issues{/number}","pulls_url":"https://api.github.com/repos/CedricCabessa/gm_pr/pulls{/number}","milestones_url":"https://api.github.com/repos/CedricCabessa/gm_pr/milestones{/number}","notifications_url":"https://api.github.com/repos/CedricCabessa/gm_pr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CedricCabessa/gm_pr/labels{/name}","releases_url":"https://api.github.com/repos/CedricCabessa/gm_pr/releases{/id}","created_at":"2014-11-24T14:14:01Z","updated_at":"2015-02-20T16:22:05Z","pushed_at":"2015-08-04T11:28:32Z","git_url":"git://github.com/CedricCabessa/gm_pr.git","ssh_url":"git@github.com:CedricCabessa/gm_pr.git","clone_url":"https://github.com/CedricCabessa/gm_pr.git","svn_url":"https://github.com/CedricCabessa/gm_pr","homepage":"","size":494,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":10,"forks":4,"open_issues":10,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CedricCabessa/gm_pr/pulls/39"},"html":{"href":"https://github.com/CedricCabessa/gm_pr/pull/39"},"issue":{"href":"https://api.github.com/repos/CedricCabessa/gm_pr/issues/39"},"comments":{"href":"https://api.github.com/repos/CedricCabessa/gm_pr/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/CedricCabessa/gm_pr/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/CedricCabessa/gm_pr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CedricCabessa/gm_pr/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/CedricCabessa/gm_pr/statuses/ff04a6ab140bc7c2db0311ddc07282ef72d6b2b6"}}}}