{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/miq_bot/pulls/comments/33110448","id":33110448,"diff_hunk":"@@ -19,3 +19,102 @@ problems.  Some of the things it does are:\n   - Ability to request tasks of the bot, such as setting of labels, assignment,\n     and milestone, which would otherwise not be possible without commit rights\n     to the repo.\n+\n+## Development\n+\n+### Prerequisites\n+\n+* Membership in the miq-test organization\n+* ruby 1.9.3 with bundler\n+* redis ~> 2.8.10\n+* postgresql\n+\n+### Steps\n+\n+1. Fork https://github.com/miq-test/sandbox\n+\n+2. Fork https://github.com/ManageIQ/miq_bot\n+\n+3. Clone the miq_bot repo and add the upstream remote:\n+    ```\n+    git clone git@github.com:<your github handle>/miq_bot.git\n+    cd miq_bot\n+    git remote add upstream git@github.com:ManageIQ/miq_bot.git\n+    git fetch —all\n+    ```\n+\n+4. Add the sandbox app to the `repos` directory so it can be monitored:\n+   ```\n+   git clone -o upstream git@github.com:miq-test/sandbox.git repos/sandbox\n+   ```\n+\n+5. Install any gem dependencies:\n+   ```\n+   bundle install\n+   ```\n+\n+6. Open up the `config/database.yml` file in your editor. Add the\n+   `username` and `password` for your Postgresql database (If you set\n+   up the ManageIQ app locally just use the same credentials).\n+\n+7. Set up the databases:\n+   ```\n+   bundle exec rake db:create:all\n+   bundle exec rake db:migrate\n+   RAILS_ENV=test bundle exec rake db:migrate\n+   RAILS_ENV=production bundle exec rake db:migrate\n+   ```\n+\n+8. Add the sandbox app to the database:\n+   ```\n+   bundle exec rails runner 'CommitMonitorRepo.create_from_github!(\"miq-test\", \"sandbox\", Rails.root.join(\"repos\", \"sandbox\"))'\n+   ```\n+\n+9. Either start redis as a daemon or have foreman start it for you by\n+   adding this to the `Procfile`:\n+   ```yaml\n+   # Procfile\n+   redis: redis-server /path/to/redis.conf  # change this to the redis.conf provided by your package manager.\n+   ```\n+\n+   You may also want to disable the issue_manager (the thing that\n+   responds to commands such as @miq_bot add_label wip) unless you're\n+   testing the issue_manager:\n+   ```yaml\n+   -issue_manager:             bundle exec ruby lib/bot/miq_bot.rb\n+   +#issue_manager:             bundle exec ruby lib/bot/miq_bot.rb\n+   ```\n+\n+10. Configure the bot settings. First copy the template:\n+    ```\n+    cp config/settings.yml config/settings.local.yml\n+    ```\n+\n+    Then set to the following values:\n+    ```yaml\n+    # config/settings.local.yml:\n+\n+    # github_credentials\n+    username: \"miq-bot\"\n+    password: # token goes here\n+\n+    # gemfile_checker\n+    pr_contacts: [“@your_username\"]","path":"README.md","position":84,"original_position":84,"commit_id":"6cbff5fd5e797164ea0143814057b50027102327","original_commit_id":"6cbff5fd5e797164ea0143814057b50027102327","user":{"login":"jrafanie","id":19339,"avatar_url":"https://avatars.githubusercontent.com/u/19339?v=3","gravatar_id":"","url":"https://api.github.com/users/jrafanie","html_url":"https://github.com/jrafanie","followers_url":"https://api.github.com/users/jrafanie/followers","following_url":"https://api.github.com/users/jrafanie/following{/other_user}","gists_url":"https://api.github.com/users/jrafanie/gists{/gist_id}","starred_url":"https://api.github.com/users/jrafanie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrafanie/subscriptions","organizations_url":"https://api.github.com/users/jrafanie/orgs","repos_url":"https://api.github.com/users/jrafanie/repos","events_url":"https://api.github.com/users/jrafanie/events{/privacy}","received_events_url":"https://api.github.com/users/jrafanie/received_events","type":"User","site_admin":false},"body":"The first set of double quotes is utf8 double quotes or something.","created_at":"2015-06-24T01:25:24Z","updated_at":"2015-06-24T01:25:24Z","html_url":"https://github.com/ManageIQ/miq_bot/pull/79#discussion_r33110448","pull_request_url":"https://api.github.com/repos/ManageIQ/miq_bot/pulls/79","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/miq_bot/pulls/comments/33110448"},"html":{"href":"https://github.com/ManageIQ/miq_bot/pull/79#discussion_r33110448"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/miq_bot/pulls/79"}}},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/miq_bot/pulls/79","id":38391926,"html_url":"https://github.com/ManageIQ/miq_bot/pull/79","diff_url":"https://github.com/ManageIQ/miq_bot/pull/79.diff","patch_url":"https://github.com/ManageIQ/miq_bot/pull/79.patch","issue_url":"https://api.github.com/repos/ManageIQ/miq_bot/issues/79","number":79,"state":"open","locked":false,"title":"Add developer setup","user":{"login":"imtayadeway","id":1710874,"avatar_url":"https://avatars.githubusercontent.com/u/1710874?v=3","gravatar_id":"","url":"https://api.github.com/users/imtayadeway","html_url":"https://github.com/imtayadeway","followers_url":"https://api.github.com/users/imtayadeway/followers","following_url":"https://api.github.com/users/imtayadeway/following{/other_user}","gists_url":"https://api.github.com/users/imtayadeway/gists{/gist_id}","starred_url":"https://api.github.com/users/imtayadeway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imtayadeway/subscriptions","organizations_url":"https://api.github.com/users/imtayadeway/orgs","repos_url":"https://api.github.com/users/imtayadeway/repos","events_url":"https://api.github.com/users/imtayadeway/events{/privacy}","received_events_url":"https://api.github.com/users/imtayadeway/received_events","type":"User","site_admin":false},"body":"This adds the steps required to get up and running in development. It also makes a few changes to get me back to a clean state with git:\r\n\r\n* Adds the repos folder but ignores its contents (so creating the repos folder was eliminated from the setup steps)\r\n* Adds the log path to the sidekiq process (its omission was causing a failure in my environment)\r\n* Adds the 'bundled with' section that bundler added to my Gemfile.lock (not sure about this one)\r\n* Sets the sidekiq log level to debug in development (as recommended by @jrafanie - this has also been removed from the setup steps )","created_at":"2015-06-23T22:53:57Z","updated_at":"2015-06-24T01:25:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9a8c48de7ebc15e30200ca7a4318d80e2e5e4b5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/miq_bot/pulls/79/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/miq_bot/pulls/79/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/miq_bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/miq_bot/issues/79/comments","statuses_url":"https://api.github.com/repos/ManageIQ/miq_bot/statuses/6cbff5fd5e797164ea0143814057b50027102327","head":{"label":"imtayadeway:tw/developer-setup","ref":"tw/developer-setup","sha":"6cbff5fd5e797164ea0143814057b50027102327","user":{"login":"imtayadeway","id":1710874,"avatar_url":"https://avatars.githubusercontent.com/u/1710874?v=3","gravatar_id":"","url":"https://api.github.com/users/imtayadeway","html_url":"https://github.com/imtayadeway","followers_url":"https://api.github.com/users/imtayadeway/followers","following_url":"https://api.github.com/users/imtayadeway/following{/other_user}","gists_url":"https://api.github.com/users/imtayadeway/gists{/gist_id}","starred_url":"https://api.github.com/users/imtayadeway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imtayadeway/subscriptions","organizations_url":"https://api.github.com/users/imtayadeway/orgs","repos_url":"https://api.github.com/users/imtayadeway/repos","events_url":"https://api.github.com/users/imtayadeway/events{/privacy}","received_events_url":"https://api.github.com/users/imtayadeway/received_events","type":"User","site_admin":false},"repo":{"id":37933231,"name":"miq_bot","full_name":"imtayadeway/miq_bot","owner":{"login":"imtayadeway","id":1710874,"avatar_url":"https://avatars.githubusercontent.com/u/1710874?v=3","gravatar_id":"","url":"https://api.github.com/users/imtayadeway","html_url":"https://github.com/imtayadeway","followers_url":"https://api.github.com/users/imtayadeway/followers","following_url":"https://api.github.com/users/imtayadeway/following{/other_user}","gists_url":"https://api.github.com/users/imtayadeway/gists{/gist_id}","starred_url":"https://api.github.com/users/imtayadeway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imtayadeway/subscriptions","organizations_url":"https://api.github.com/users/imtayadeway/orgs","repos_url":"https://api.github.com/users/imtayadeway/repos","events_url":"https://api.github.com/users/imtayadeway/events{/privacy}","received_events_url":"https://api.github.com/users/imtayadeway/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/imtayadeway/miq_bot","description":"ManageIQ Bot","fork":true,"url":"https://api.github.com/repos/imtayadeway/miq_bot","forks_url":"https://api.github.com/repos/imtayadeway/miq_bot/forks","keys_url":"https://api.github.com/repos/imtayadeway/miq_bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/imtayadeway/miq_bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/imtayadeway/miq_bot/teams","hooks_url":"https://api.github.com/repos/imtayadeway/miq_bot/hooks","issue_events_url":"https://api.github.com/repos/imtayadeway/miq_bot/issues/events{/number}","events_url":"https://api.github.com/repos/imtayadeway/miq_bot/events","assignees_url":"https://api.github.com/repos/imtayadeway/miq_bot/assignees{/user}","branches_url":"https://api.github.com/repos/imtayadeway/miq_bot/branches{/branch}","tags_url":"https://api.github.com/repos/imtayadeway/miq_bot/tags","blobs_url":"https://api.github.com/repos/imtayadeway/miq_bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/imtayadeway/miq_bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/imtayadeway/miq_bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/imtayadeway/miq_bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/imtayadeway/miq_bot/statuses/{sha}","languages_url":"https://api.github.com/repos/imtayadeway/miq_bot/languages","stargazers_url":"https://api.github.com/repos/imtayadeway/miq_bot/stargazers","contributors_url":"https://api.github.com/repos/imtayadeway/miq_bot/contributors","subscribers_url":"https://api.github.com/repos/imtayadeway/miq_bot/subscribers","subscription_url":"https://api.github.com/repos/imtayadeway/miq_bot/subscription","commits_url":"https://api.github.com/repos/imtayadeway/miq_bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/imtayadeway/miq_bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/imtayadeway/miq_bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/imtayadeway/miq_bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/imtayadeway/miq_bot/contents/{+path}","compare_url":"https://api.github.com/repos/imtayadeway/miq_bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/imtayadeway/miq_bot/merges","archive_url":"https://api.github.com/repos/imtayadeway/miq_bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/imtayadeway/miq_bot/downloads","issues_url":"https://api.github.com/repos/imtayadeway/miq_bot/issues{/number}","pulls_url":"https://api.github.com/repos/imtayadeway/miq_bot/pulls{/number}","milestones_url":"https://api.github.com/repos/imtayadeway/miq_bot/milestones{/number}","notifications_url":"https://api.github.com/repos/imtayadeway/miq_bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/imtayadeway/miq_bot/labels{/name}","releases_url":"https://api.github.com/repos/imtayadeway/miq_bot/releases{/id}","created_at":"2015-06-23T17:17:43Z","updated_at":"2015-06-23T17:17:44Z","pushed_at":"2015-06-23T22:45:13Z","git_url":"git://github.com/imtayadeway/miq_bot.git","ssh_url":"git@github.com:imtayadeway/miq_bot.git","clone_url":"https://github.com/imtayadeway/miq_bot.git","svn_url":"https://github.com/imtayadeway/miq_bot","homepage":null,"size":612,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ManageIQ:master","ref":"master","sha":"03c0b437d50198ffcafe4f4304108d0be80b5811","user":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"repo":{"id":23851775,"name":"miq_bot","full_name":"ManageIQ/miq_bot","owner":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ManageIQ/miq_bot","description":"ManageIQ Bot","fork":false,"url":"https://api.github.com/repos/ManageIQ/miq_bot","forks_url":"https://api.github.com/repos/ManageIQ/miq_bot/forks","keys_url":"https://api.github.com/repos/ManageIQ/miq_bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/miq_bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/miq_bot/teams","hooks_url":"https://api.github.com/repos/ManageIQ/miq_bot/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/miq_bot/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/miq_bot/events","assignees_url":"https://api.github.com/repos/ManageIQ/miq_bot/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/miq_bot/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/miq_bot/tags","blobs_url":"https://api.github.com/repos/ManageIQ/miq_bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/miq_bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/miq_bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/miq_bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/miq_bot/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/miq_bot/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/miq_bot/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/miq_bot/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/miq_bot/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/miq_bot/subscription","commits_url":"https://api.github.com/repos/ManageIQ/miq_bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/miq_bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/miq_bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/miq_bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/miq_bot/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/miq_bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/miq_bot/merges","archive_url":"https://api.github.com/repos/ManageIQ/miq_bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/miq_bot/downloads","issues_url":"https://api.github.com/repos/ManageIQ/miq_bot/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/miq_bot/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/miq_bot/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/miq_bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/miq_bot/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/miq_bot/releases{/id}","created_at":"2014-09-09T22:02:14Z","updated_at":"2015-06-18T03:16:02Z","pushed_at":"2015-06-23T22:53:57Z","git_url":"git://github.com/ManageIQ/miq_bot.git","ssh_url":"git@github.com:ManageIQ/miq_bot.git","clone_url":"https://github.com/ManageIQ/miq_bot.git","svn_url":"https://github.com/ManageIQ/miq_bot","homepage":null,"size":612,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":46,"forks":7,"open_issues":46,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/miq_bot/pulls/79"},"html":{"href":"https://github.com/ManageIQ/miq_bot/pull/79"},"issue":{"href":"https://api.github.com/repos/ManageIQ/miq_bot/issues/79"},"comments":{"href":"https://api.github.com/repos/ManageIQ/miq_bot/issues/79/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/miq_bot/pulls/79/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/miq_bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/miq_bot/pulls/79/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/miq_bot/statuses/6cbff5fd5e797164ea0143814057b50027102327"}}}}