{"action":"created","comment":{"url":"https://api.github.com/repos/final-ci/docker-final-base-image/pulls/comments/37721823","id":37721823,"diff_hunk":"@@ -0,0 +1,29 @@\n+#!/usr/bin/env ruby\n+\n+require 'bundler/setup'\n+require 'travis'\n+\n+config = YAML.load(ARGF.gets(nil)).deep_symbolize_keys!\n+#config = YAML.load(File.read('config.yml')).deep_symbolize_keys!;\n+Travis::Database.connect\n+\n+config[:users].each do |u|\n+  User.where(name: u[:name]).first_or_create(u);\n+end\n+\n+config[:repos].each do |r|\n+  new_r = r.merge(owner: User.where(name: r[:owner_name]).first)\n+  Repository.where(name: r[:name], url: r[:url]).first_or_create(new_r)","path":"base-image/assets/default_db_content.rb","position":16,"original_position":16,"commit_id":"5752d4aa37ba886a9de7249557b85a2a16744374","original_commit_id":"5752d4aa37ba886a9de7249557b85a2a16744374","user":{"login":"lksv","id":1152494,"avatar_url":"https://avatars.githubusercontent.com/u/1152494?v=3","gravatar_id":"","url":"https://api.github.com/users/lksv","html_url":"https://github.com/lksv","followers_url":"https://api.github.com/users/lksv/followers","following_url":"https://api.github.com/users/lksv/following{/other_user}","gists_url":"https://api.github.com/users/lksv/gists{/gist_id}","starred_url":"https://api.github.com/users/lksv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lksv/subscriptions","organizations_url":"https://api.github.com/users/lksv/orgs","repos_url":"https://api.github.com/users/lksv/repos","events_url":"https://api.github.com/users/lksv/events{/privacy}","received_events_url":"https://api.github.com/users/lksv/received_events","type":"User","site_admin":false},"body":"update repository if already exists","created_at":"2015-08-24T06:17:04Z","updated_at":"2015-08-24T06:17:04Z","html_url":"https://github.com/final-ci/docker-final-base-image/pull/1#discussion_r37721823","pull_request_url":"https://api.github.com/repos/final-ci/docker-final-base-image/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/final-ci/docker-final-base-image/pulls/comments/37721823"},"html":{"href":"https://github.com/final-ci/docker-final-base-image/pull/1#discussion_r37721823"},"pull_request":{"href":"https://api.github.com/repos/final-ci/docker-final-base-image/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/final-ci/docker-final-base-image/pulls/1","id":42586290,"html_url":"https://github.com/final-ci/docker-final-base-image/pull/1","diff_url":"https://github.com/final-ci/docker-final-base-image/pull/1.diff","patch_url":"https://github.com/final-ci/docker-final-base-image/pull/1.patch","issue_url":"https://api.github.com/repos/final-ci/docker-final-base-image/issues/1","number":1,"state":"open","locked":false,"title":"feature: added support for dockerizing final-ci application","user":{"login":"ireznice","id":8779206,"avatar_url":"https://avatars.githubusercontent.com/u/8779206?v=3","gravatar_id":"","url":"https://api.github.com/users/ireznice","html_url":"https://github.com/ireznice","followers_url":"https://api.github.com/users/ireznice/followers","following_url":"https://api.github.com/users/ireznice/following{/other_user}","gists_url":"https://api.github.com/users/ireznice/gists{/gist_id}","starred_url":"https://api.github.com/users/ireznice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ireznice/subscriptions","organizations_url":"https://api.github.com/users/ireznice/orgs","repos_url":"https://api.github.com/users/ireznice/repos","events_url":"https://api.github.com/users/ireznice/events{/privacy}","received_events_url":"https://api.github.com/users/ireznice/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-17T13:14:28Z","updated_at":"2015-08-24T06:17:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09439b0a9a20fdd84a19eb60a3090ad4b128394c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/final-ci/docker-final-base-image/pulls/1/commits","review_comments_url":"https://api.github.com/repos/final-ci/docker-final-base-image/pulls/1/comments","review_comment_url":"https://api.github.com/repos/final-ci/docker-final-base-image/pulls/comments{/number}","comments_url":"https://api.github.com/repos/final-ci/docker-final-base-image/issues/1/comments","statuses_url":"https://api.github.com/repos/final-ci/docker-final-base-image/statuses/5752d4aa37ba886a9de7249557b85a2a16744374","head":{"label":"ireznice:fa_docker_images","ref":"fa_docker_images","sha":"5752d4aa37ba886a9de7249557b85a2a16744374","user":{"login":"ireznice","id":8779206,"avatar_url":"https://avatars.githubusercontent.com/u/8779206?v=3","gravatar_id":"","url":"https://api.github.com/users/ireznice","html_url":"https://github.com/ireznice","followers_url":"https://api.github.com/users/ireznice/followers","following_url":"https://api.github.com/users/ireznice/following{/other_user}","gists_url":"https://api.github.com/users/ireznice/gists{/gist_id}","starred_url":"https://api.github.com/users/ireznice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ireznice/subscriptions","organizations_url":"https://api.github.com/users/ireznice/orgs","repos_url":"https://api.github.com/users/ireznice/repos","events_url":"https://api.github.com/users/ireznice/events{/privacy}","received_events_url":"https://api.github.com/users/ireznice/received_events","type":"User","site_admin":false},"repo":{"id":40895705,"name":"docker-final-base-image","full_name":"ireznice/docker-final-base-image","owner":{"login":"ireznice","id":8779206,"avatar_url":"https://avatars.githubusercontent.com/u/8779206?v=3","gravatar_id":"","url":"https://api.github.com/users/ireznice","html_url":"https://github.com/ireznice","followers_url":"https://api.github.com/users/ireznice/followers","following_url":"https://api.github.com/users/ireznice/following{/other_user}","gists_url":"https://api.github.com/users/ireznice/gists{/gist_id}","starred_url":"https://api.github.com/users/ireznice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ireznice/subscriptions","organizations_url":"https://api.github.com/users/ireznice/orgs","repos_url":"https://api.github.com/users/ireznice/repos","events_url":"https://api.github.com/users/ireznice/events{/privacy}","received_events_url":"https://api.github.com/users/ireznice/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ireznice/docker-final-base-image","description":"","fork":true,"url":"https://api.github.com/repos/ireznice/docker-final-base-image","forks_url":"https://api.github.com/repos/ireznice/docker-final-base-image/forks","keys_url":"https://api.github.com/repos/ireznice/docker-final-base-image/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ireznice/docker-final-base-image/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ireznice/docker-final-base-image/teams","hooks_url":"https://api.github.com/repos/ireznice/docker-final-base-image/hooks","issue_events_url":"https://api.github.com/repos/ireznice/docker-final-base-image/issues/events{/number}","events_url":"https://api.github.com/repos/ireznice/docker-final-base-image/events","assignees_url":"https://api.github.com/repos/ireznice/docker-final-base-image/assignees{/user}","branches_url":"https://api.github.com/repos/ireznice/docker-final-base-image/branches{/branch}","tags_url":"https://api.github.com/repos/ireznice/docker-final-base-image/tags","blobs_url":"https://api.github.com/repos/ireznice/docker-final-base-image/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ireznice/docker-final-base-image/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ireznice/docker-final-base-image/git/refs{/sha}","trees_url":"https://api.github.com/repos/ireznice/docker-final-base-image/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ireznice/docker-final-base-image/statuses/{sha}","languages_url":"https://api.github.com/repos/ireznice/docker-final-base-image/languages","stargazers_url":"https://api.github.com/repos/ireznice/docker-final-base-image/stargazers","contributors_url":"https://api.github.com/repos/ireznice/docker-final-base-image/contributors","subscribers_url":"https://api.github.com/repos/ireznice/docker-final-base-image/subscribers","subscription_url":"https://api.github.com/repos/ireznice/docker-final-base-image/subscription","commits_url":"https://api.github.com/repos/ireznice/docker-final-base-image/commits{/sha}","git_commits_url":"https://api.github.com/repos/ireznice/docker-final-base-image/git/commits{/sha}","comments_url":"https://api.github.com/repos/ireznice/docker-final-base-image/comments{/number}","issue_comment_url":"https://api.github.com/repos/ireznice/docker-final-base-image/issues/comments{/number}","contents_url":"https://api.github.com/repos/ireznice/docker-final-base-image/contents/{+path}","compare_url":"https://api.github.com/repos/ireznice/docker-final-base-image/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ireznice/docker-final-base-image/merges","archive_url":"https://api.github.com/repos/ireznice/docker-final-base-image/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ireznice/docker-final-base-image/downloads","issues_url":"https://api.github.com/repos/ireznice/docker-final-base-image/issues{/number}","pulls_url":"https://api.github.com/repos/ireznice/docker-final-base-image/pulls{/number}","milestones_url":"https://api.github.com/repos/ireznice/docker-final-base-image/milestones{/number}","notifications_url":"https://api.github.com/repos/ireznice/docker-final-base-image/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ireznice/docker-final-base-image/labels{/name}","releases_url":"https://api.github.com/repos/ireznice/docker-final-base-image/releases{/id}","created_at":"2015-08-17T13:10:33Z","updated_at":"2015-08-05T09:36:44Z","pushed_at":"2015-08-20T10:03:11Z","git_url":"git://github.com/ireznice/docker-final-base-image.git","ssh_url":"git@github.com:ireznice/docker-final-base-image.git","clone_url":"https://github.com/ireznice/docker-final-base-image.git","svn_url":"https://github.com/ireznice/docker-final-base-image","homepage":null,"size":82,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"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":"final-ci:master","ref":"master","sha":"acac3027c1ba276c43bc327df9441938ac77afda","user":{"login":"final-ci","id":12153669,"avatar_url":"https://avatars.githubusercontent.com/u/12153669?v=3","gravatar_id":"","url":"https://api.github.com/users/final-ci","html_url":"https://github.com/final-ci","followers_url":"https://api.github.com/users/final-ci/followers","following_url":"https://api.github.com/users/final-ci/following{/other_user}","gists_url":"https://api.github.com/users/final-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/final-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/final-ci/subscriptions","organizations_url":"https://api.github.com/users/final-ci/orgs","repos_url":"https://api.github.com/users/final-ci/repos","events_url":"https://api.github.com/users/final-ci/events{/privacy}","received_events_url":"https://api.github.com/users/final-ci/received_events","type":"Organization","site_admin":false},"repo":{"id":40237089,"name":"docker-final-base-image","full_name":"final-ci/docker-final-base-image","owner":{"login":"final-ci","id":12153669,"avatar_url":"https://avatars.githubusercontent.com/u/12153669?v=3","gravatar_id":"","url":"https://api.github.com/users/final-ci","html_url":"https://github.com/final-ci","followers_url":"https://api.github.com/users/final-ci/followers","following_url":"https://api.github.com/users/final-ci/following{/other_user}","gists_url":"https://api.github.com/users/final-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/final-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/final-ci/subscriptions","organizations_url":"https://api.github.com/users/final-ci/orgs","repos_url":"https://api.github.com/users/final-ci/repos","events_url":"https://api.github.com/users/final-ci/events{/privacy}","received_events_url":"https://api.github.com/users/final-ci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/final-ci/docker-final-base-image","description":"","fork":false,"url":"https://api.github.com/repos/final-ci/docker-final-base-image","forks_url":"https://api.github.com/repos/final-ci/docker-final-base-image/forks","keys_url":"https://api.github.com/repos/final-ci/docker-final-base-image/keys{/key_id}","collaborators_url":"https://api.github.com/repos/final-ci/docker-final-base-image/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/final-ci/docker-final-base-image/teams","hooks_url":"https://api.github.com/repos/final-ci/docker-final-base-image/hooks","issue_events_url":"https://api.github.com/repos/final-ci/docker-final-base-image/issues/events{/number}","events_url":"https://api.github.com/repos/final-ci/docker-final-base-image/events","assignees_url":"https://api.github.com/repos/final-ci/docker-final-base-image/assignees{/user}","branches_url":"https://api.github.com/repos/final-ci/docker-final-base-image/branches{/branch}","tags_url":"https://api.github.com/repos/final-ci/docker-final-base-image/tags","blobs_url":"https://api.github.com/repos/final-ci/docker-final-base-image/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/final-ci/docker-final-base-image/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/final-ci/docker-final-base-image/git/refs{/sha}","trees_url":"https://api.github.com/repos/final-ci/docker-final-base-image/git/trees{/sha}","statuses_url":"https://api.github.com/repos/final-ci/docker-final-base-image/statuses/{sha}","languages_url":"https://api.github.com/repos/final-ci/docker-final-base-image/languages","stargazers_url":"https://api.github.com/repos/final-ci/docker-final-base-image/stargazers","contributors_url":"https://api.github.com/repos/final-ci/docker-final-base-image/contributors","subscribers_url":"https://api.github.com/repos/final-ci/docker-final-base-image/subscribers","subscription_url":"https://api.github.com/repos/final-ci/docker-final-base-image/subscription","commits_url":"https://api.github.com/repos/final-ci/docker-final-base-image/commits{/sha}","git_commits_url":"https://api.github.com/repos/final-ci/docker-final-base-image/git/commits{/sha}","comments_url":"https://api.github.com/repos/final-ci/docker-final-base-image/comments{/number}","issue_comment_url":"https://api.github.com/repos/final-ci/docker-final-base-image/issues/comments{/number}","contents_url":"https://api.github.com/repos/final-ci/docker-final-base-image/contents/{+path}","compare_url":"https://api.github.com/repos/final-ci/docker-final-base-image/compare/{base}...{head}","merges_url":"https://api.github.com/repos/final-ci/docker-final-base-image/merges","archive_url":"https://api.github.com/repos/final-ci/docker-final-base-image/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/final-ci/docker-final-base-image/downloads","issues_url":"https://api.github.com/repos/final-ci/docker-final-base-image/issues{/number}","pulls_url":"https://api.github.com/repos/final-ci/docker-final-base-image/pulls{/number}","milestones_url":"https://api.github.com/repos/final-ci/docker-final-base-image/milestones{/number}","notifications_url":"https://api.github.com/repos/final-ci/docker-final-base-image/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/final-ci/docker-final-base-image/labels{/name}","releases_url":"https://api.github.com/repos/final-ci/docker-final-base-image/releases{/id}","created_at":"2015-08-05T09:36:44Z","updated_at":"2015-08-05T09:36:44Z","pushed_at":"2015-08-20T10:03:12Z","git_url":"git://github.com/final-ci/docker-final-base-image.git","ssh_url":"git@github.com:final-ci/docker-final-base-image.git","clone_url":"https://github.com/final-ci/docker-final-base-image.git","svn_url":"https://github.com/final-ci/docker-final-base-image","homepage":null,"size":132,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/final-ci/docker-final-base-image/pulls/1"},"html":{"href":"https://github.com/final-ci/docker-final-base-image/pull/1"},"issue":{"href":"https://api.github.com/repos/final-ci/docker-final-base-image/issues/1"},"comments":{"href":"https://api.github.com/repos/final-ci/docker-final-base-image/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/final-ci/docker-final-base-image/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/final-ci/docker-final-base-image/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/final-ci/docker-final-base-image/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/final-ci/docker-final-base-image/statuses/5752d4aa37ba886a9de7249557b85a2a16744374"}}}}