{"action":"created","comment":{"url":"https://api.github.com/repos/net-tester/net-tester/pulls/comments/139326180","pull_request_review_id":63242589,"id":139326180,"diff_hunk":"@@ -0,0 +1,45 @@\n+class ProcessesController < ApplicationController\n+\n+  # GET /processes\n+  def index\n+    processes = NetTester::Process.all.values\n+    render json: processes, status: :ok\n+  end\n+\n+  # GET /processes/1\n+  def show\n+    id = params[:id].to_i\n+    result = NetTester::Process.find(id)\n+    code = :ok\n+    if result.nil? then\n+      result = {error: \"no such process: #{id}\"}\n+      code = :not_found\n+    end\n+    render json: result, status: code\n+  end\n+\n+  # POST /processes\n+  def create\n+    ProcessValidator.new(process_params).validate!\n+\n+    host_name = process_params[:host_name]\n+    if Phut::Netns.find_by(name: host_name).nil? then","path":"app/controllers/processes_controller.rb","position":null,"original_position":26,"commit_id":"c27de0f8e7cef5e71eb0b10986dc1ee73adf803d","original_commit_id":"4b8ffe4aeb9b70ccb379bd8a3aa31e2912b0d5b6","user":{"login":"qb0C80aE","id":6193413,"avatar_url":"https://avatars0.githubusercontent.com/u/6193413?v=4","gravatar_id":"","url":"https://api.github.com/users/qb0C80aE","html_url":"https://github.com/qb0C80aE","followers_url":"https://api.github.com/users/qb0C80aE/followers","following_url":"https://api.github.com/users/qb0C80aE/following{/other_user}","gists_url":"https://api.github.com/users/qb0C80aE/gists{/gist_id}","starred_url":"https://api.github.com/users/qb0C80aE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qb0C80aE/subscriptions","organizations_url":"https://api.github.com/users/qb0C80aE/orgs","repos_url":"https://api.github.com/users/qb0C80aE/repos","events_url":"https://api.github.com/users/qb0C80aE/events{/privacy}","received_events_url":"https://api.github.com/users/qb0C80aE/received_events","type":"User","site_admin":false},"body":"修正しました！","created_at":"2017-09-18T00:37:51Z","updated_at":"2017-09-18T00:37:51Z","html_url":"https://github.com/net-tester/net-tester/pull/15#discussion_r139326180","pull_request_url":"https://api.github.com/repos/net-tester/net-tester/pulls/15","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/net-tester/net-tester/pulls/comments/139326180"},"html":{"href":"https://github.com/net-tester/net-tester/pull/15#discussion_r139326180"},"pull_request":{"href":"https://api.github.com/repos/net-tester/net-tester/pulls/15"}},"in_reply_to_id":139306700},"pull_request":{"url":"https://api.github.com/repos/net-tester/net-tester/pulls/15","id":141477750,"html_url":"https://github.com/net-tester/net-tester/pull/15","diff_url":"https://github.com/net-tester/net-tester/pull/15.diff","patch_url":"https://github.com/net-tester/net-tester/pull/15.patch","issue_url":"https://api.github.com/repos/net-tester/net-tester/issues/15","number":15,"state":"open","locked":false,"title":"Feature/process api","user":{"login":"qb0C80aE","id":6193413,"avatar_url":"https://avatars0.githubusercontent.com/u/6193413?v=4","gravatar_id":"","url":"https://api.github.com/users/qb0C80aE","html_url":"https://github.com/qb0C80aE","followers_url":"https://api.github.com/users/qb0C80aE/followers","following_url":"https://api.github.com/users/qb0C80aE/following{/other_user}","gists_url":"https://api.github.com/users/qb0C80aE/gists{/gist_id}","starred_url":"https://api.github.com/users/qb0C80aE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qb0C80aE/subscriptions","organizations_url":"https://api.github.com/users/qb0C80aE/orgs","repos_url":"https://api.github.com/users/qb0C80aE/repos","events_url":"https://api.github.com/users/qb0C80aE/events{/privacy}","received_events_url":"https://api.github.com/users/qb0C80aE/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-17T08:30:47Z","updated_at":"2017-09-18T00:37:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df2291001e47d9d66e04b8cbb9f88f4b2bb544b4","assignee":null,"assignees":[],"requested_reviewers":[{"login":"tjmtrhs","id":19920267,"avatar_url":"https://avatars2.githubusercontent.com/u/19920267?v=4","gravatar_id":"","url":"https://api.github.com/users/tjmtrhs","html_url":"https://github.com/tjmtrhs","followers_url":"https://api.github.com/users/tjmtrhs/followers","following_url":"https://api.github.com/users/tjmtrhs/following{/other_user}","gists_url":"https://api.github.com/users/tjmtrhs/gists{/gist_id}","starred_url":"https://api.github.com/users/tjmtrhs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjmtrhs/subscriptions","organizations_url":"https://api.github.com/users/tjmtrhs/orgs","repos_url":"https://api.github.com/users/tjmtrhs/repos","events_url":"https://api.github.com/users/tjmtrhs/events{/privacy}","received_events_url":"https://api.github.com/users/tjmtrhs/received_events","type":"User","site_admin":false},{"login":"corestate55","id":20035048,"avatar_url":"https://avatars1.githubusercontent.com/u/20035048?v=4","gravatar_id":"","url":"https://api.github.com/users/corestate55","html_url":"https://github.com/corestate55","followers_url":"https://api.github.com/users/corestate55/followers","following_url":"https://api.github.com/users/corestate55/following{/other_user}","gists_url":"https://api.github.com/users/corestate55/gists{/gist_id}","starred_url":"https://api.github.com/users/corestate55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corestate55/subscriptions","organizations_url":"https://api.github.com/users/corestate55/orgs","repos_url":"https://api.github.com/users/corestate55/repos","events_url":"https://api.github.com/users/corestate55/events{/privacy}","received_events_url":"https://api.github.com/users/corestate55/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/net-tester/net-tester/pulls/15/commits","review_comments_url":"https://api.github.com/repos/net-tester/net-tester/pulls/15/comments","review_comment_url":"https://api.github.com/repos/net-tester/net-tester/pulls/comments{/number}","comments_url":"https://api.github.com/repos/net-tester/net-tester/issues/15/comments","statuses_url":"https://api.github.com/repos/net-tester/net-tester/statuses/c27de0f8e7cef5e71eb0b10986dc1ee73adf803d","head":{"label":"qb0C80aE:feature/process-api","ref":"feature/process-api","sha":"c27de0f8e7cef5e71eb0b10986dc1ee73adf803d","user":{"login":"qb0C80aE","id":6193413,"avatar_url":"https://avatars0.githubusercontent.com/u/6193413?v=4","gravatar_id":"","url":"https://api.github.com/users/qb0C80aE","html_url":"https://github.com/qb0C80aE","followers_url":"https://api.github.com/users/qb0C80aE/followers","following_url":"https://api.github.com/users/qb0C80aE/following{/other_user}","gists_url":"https://api.github.com/users/qb0C80aE/gists{/gist_id}","starred_url":"https://api.github.com/users/qb0C80aE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qb0C80aE/subscriptions","organizations_url":"https://api.github.com/users/qb0C80aE/orgs","repos_url":"https://api.github.com/users/qb0C80aE/repos","events_url":"https://api.github.com/users/qb0C80aE/events{/privacy}","received_events_url":"https://api.github.com/users/qb0C80aE/received_events","type":"User","site_admin":false},"repo":{"id":70205792,"name":"net-tester","full_name":"qb0C80aE/net-tester","owner":{"login":"qb0C80aE","id":6193413,"avatar_url":"https://avatars0.githubusercontent.com/u/6193413?v=4","gravatar_id":"","url":"https://api.github.com/users/qb0C80aE","html_url":"https://github.com/qb0C80aE","followers_url":"https://api.github.com/users/qb0C80aE/followers","following_url":"https://api.github.com/users/qb0C80aE/following{/other_user}","gists_url":"https://api.github.com/users/qb0C80aE/gists{/gist_id}","starred_url":"https://api.github.com/users/qb0C80aE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qb0C80aE/subscriptions","organizations_url":"https://api.github.com/users/qb0C80aE/orgs","repos_url":"https://api.github.com/users/qb0C80aE/repos","events_url":"https://api.github.com/users/qb0C80aE/events{/privacy}","received_events_url":"https://api.github.com/users/qb0C80aE/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/qb0C80aE/net-tester","description":"Acceptance test tool for physical networks","fork":true,"url":"https://api.github.com/repos/qb0C80aE/net-tester","forks_url":"https://api.github.com/repos/qb0C80aE/net-tester/forks","keys_url":"https://api.github.com/repos/qb0C80aE/net-tester/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qb0C80aE/net-tester/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qb0C80aE/net-tester/teams","hooks_url":"https://api.github.com/repos/qb0C80aE/net-tester/hooks","issue_events_url":"https://api.github.com/repos/qb0C80aE/net-tester/issues/events{/number}","events_url":"https://api.github.com/repos/qb0C80aE/net-tester/events","assignees_url":"https://api.github.com/repos/qb0C80aE/net-tester/assignees{/user}","branches_url":"https://api.github.com/repos/qb0C80aE/net-tester/branches{/branch}","tags_url":"https://api.github.com/repos/qb0C80aE/net-tester/tags","blobs_url":"https://api.github.com/repos/qb0C80aE/net-tester/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qb0C80aE/net-tester/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qb0C80aE/net-tester/git/refs{/sha}","trees_url":"https://api.github.com/repos/qb0C80aE/net-tester/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qb0C80aE/net-tester/statuses/{sha}","languages_url":"https://api.github.com/repos/qb0C80aE/net-tester/languages","stargazers_url":"https://api.github.com/repos/qb0C80aE/net-tester/stargazers","contributors_url":"https://api.github.com/repos/qb0C80aE/net-tester/contributors","subscribers_url":"https://api.github.com/repos/qb0C80aE/net-tester/subscribers","subscription_url":"https://api.github.com/repos/qb0C80aE/net-tester/subscription","commits_url":"https://api.github.com/repos/qb0C80aE/net-tester/commits{/sha}","git_commits_url":"https://api.github.com/repos/qb0C80aE/net-tester/git/commits{/sha}","comments_url":"https://api.github.com/repos/qb0C80aE/net-tester/comments{/number}","issue_comment_url":"https://api.github.com/repos/qb0C80aE/net-tester/issues/comments{/number}","contents_url":"https://api.github.com/repos/qb0C80aE/net-tester/contents/{+path}","compare_url":"https://api.github.com/repos/qb0C80aE/net-tester/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qb0C80aE/net-tester/merges","archive_url":"https://api.github.com/repos/qb0C80aE/net-tester/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qb0C80aE/net-tester/downloads","issues_url":"https://api.github.com/repos/qb0C80aE/net-tester/issues{/number}","pulls_url":"https://api.github.com/repos/qb0C80aE/net-tester/pulls{/number}","milestones_url":"https://api.github.com/repos/qb0C80aE/net-tester/milestones{/number}","notifications_url":"https://api.github.com/repos/qb0C80aE/net-tester/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qb0C80aE/net-tester/labels{/name}","releases_url":"https://api.github.com/repos/qb0C80aE/net-tester/releases{/id}","deployments_url":"https://api.github.com/repos/qb0C80aE/net-tester/deployments","created_at":"2016-10-07T01:16:16Z","updated_at":"2017-03-16T04:39:54Z","pushed_at":"2017-09-18T00:37:30Z","git_url":"git://github.com/qb0C80aE/net-tester.git","ssh_url":"git@github.com:qb0C80aE/net-tester.git","clone_url":"https://github.com/qb0C80aE/net-tester.git","svn_url":"https://github.com/qb0C80aE/net-tester","homepage":"","size":3958,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"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":"develop"}},"base":{"label":"net-tester:develop","ref":"develop","sha":"48d96fcdfbbac1e103ab62ab58f71ef56d91e555","user":{"login":"net-tester","id":22141646,"avatar_url":"https://avatars2.githubusercontent.com/u/22141646?v=4","gravatar_id":"","url":"https://api.github.com/users/net-tester","html_url":"https://github.com/net-tester","followers_url":"https://api.github.com/users/net-tester/followers","following_url":"https://api.github.com/users/net-tester/following{/other_user}","gists_url":"https://api.github.com/users/net-tester/gists{/gist_id}","starred_url":"https://api.github.com/users/net-tester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/net-tester/subscriptions","organizations_url":"https://api.github.com/users/net-tester/orgs","repos_url":"https://api.github.com/users/net-tester/repos","events_url":"https://api.github.com/users/net-tester/events{/privacy}","received_events_url":"https://api.github.com/users/net-tester/received_events","type":"Organization","site_admin":false},"repo":{"id":67978513,"name":"net-tester","full_name":"net-tester/net-tester","owner":{"login":"net-tester","id":22141646,"avatar_url":"https://avatars2.githubusercontent.com/u/22141646?v=4","gravatar_id":"","url":"https://api.github.com/users/net-tester","html_url":"https://github.com/net-tester","followers_url":"https://api.github.com/users/net-tester/followers","following_url":"https://api.github.com/users/net-tester/following{/other_user}","gists_url":"https://api.github.com/users/net-tester/gists{/gist_id}","starred_url":"https://api.github.com/users/net-tester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/net-tester/subscriptions","organizations_url":"https://api.github.com/users/net-tester/orgs","repos_url":"https://api.github.com/users/net-tester/repos","events_url":"https://api.github.com/users/net-tester/events{/privacy}","received_events_url":"https://api.github.com/users/net-tester/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/net-tester/net-tester","description":"Acceptance test tool for physical networks","fork":false,"url":"https://api.github.com/repos/net-tester/net-tester","forks_url":"https://api.github.com/repos/net-tester/net-tester/forks","keys_url":"https://api.github.com/repos/net-tester/net-tester/keys{/key_id}","collaborators_url":"https://api.github.com/repos/net-tester/net-tester/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/net-tester/net-tester/teams","hooks_url":"https://api.github.com/repos/net-tester/net-tester/hooks","issue_events_url":"https://api.github.com/repos/net-tester/net-tester/issues/events{/number}","events_url":"https://api.github.com/repos/net-tester/net-tester/events","assignees_url":"https://api.github.com/repos/net-tester/net-tester/assignees{/user}","branches_url":"https://api.github.com/repos/net-tester/net-tester/branches{/branch}","tags_url":"https://api.github.com/repos/net-tester/net-tester/tags","blobs_url":"https://api.github.com/repos/net-tester/net-tester/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/net-tester/net-tester/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/net-tester/net-tester/git/refs{/sha}","trees_url":"https://api.github.com/repos/net-tester/net-tester/git/trees{/sha}","statuses_url":"https://api.github.com/repos/net-tester/net-tester/statuses/{sha}","languages_url":"https://api.github.com/repos/net-tester/net-tester/languages","stargazers_url":"https://api.github.com/repos/net-tester/net-tester/stargazers","contributors_url":"https://api.github.com/repos/net-tester/net-tester/contributors","subscribers_url":"https://api.github.com/repos/net-tester/net-tester/subscribers","subscription_url":"https://api.github.com/repos/net-tester/net-tester/subscription","commits_url":"https://api.github.com/repos/net-tester/net-tester/commits{/sha}","git_commits_url":"https://api.github.com/repos/net-tester/net-tester/git/commits{/sha}","comments_url":"https://api.github.com/repos/net-tester/net-tester/comments{/number}","issue_comment_url":"https://api.github.com/repos/net-tester/net-tester/issues/comments{/number}","contents_url":"https://api.github.com/repos/net-tester/net-tester/contents/{+path}","compare_url":"https://api.github.com/repos/net-tester/net-tester/compare/{base}...{head}","merges_url":"https://api.github.com/repos/net-tester/net-tester/merges","archive_url":"https://api.github.com/repos/net-tester/net-tester/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/net-tester/net-tester/downloads","issues_url":"https://api.github.com/repos/net-tester/net-tester/issues{/number}","pulls_url":"https://api.github.com/repos/net-tester/net-tester/pulls{/number}","milestones_url":"https://api.github.com/repos/net-tester/net-tester/milestones{/number}","notifications_url":"https://api.github.com/repos/net-tester/net-tester/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/net-tester/net-tester/labels{/name}","releases_url":"https://api.github.com/repos/net-tester/net-tester/releases{/id}","deployments_url":"https://api.github.com/repos/net-tester/net-tester/deployments","created_at":"2016-09-12T05:28:35Z","updated_at":"2017-07-24T03:47:40Z","pushed_at":"2017-09-18T00:37:31Z","git_url":"git://github.com/net-tester/net-tester.git","ssh_url":"git@github.com:net-tester/net-tester.git","clone_url":"https://github.com/net-tester/net-tester.git","svn_url":"https://github.com/net-tester/net-tester","homepage":"","size":3957,"stargazers_count":14,"watchers_count":14,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":14,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/net-tester/net-tester/pulls/15"},"html":{"href":"https://github.com/net-tester/net-tester/pull/15"},"issue":{"href":"https://api.github.com/repos/net-tester/net-tester/issues/15"},"comments":{"href":"https://api.github.com/repos/net-tester/net-tester/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/net-tester/net-tester/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/net-tester/net-tester/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/net-tester/net-tester/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/net-tester/net-tester/statuses/c27de0f8e7cef5e71eb0b10986dc1ee73adf803d"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"qb0C80aE"}}