{"action":"created","comment":{"url":"https://api.github.com/repos/h3poteto/fascia/pulls/comments/67364877","id":67364877,"diff_hunk":"@@ -0,0 +1,33 @@\n+package validators\n+\n+type projectCreate struct {\n+\tTitle           string `valid:\"min=1,max=255\"`\n+\tDescription     string `valid:\"min=0,max=255\"`\n+\tRepositoryID    int64  `valid:\"\"`\n+\tRepositoryOwner string `valid:\"\"`\n+\tRepositoryName  string `valid:\"\"`\n+}\n+\n+type projectUpdate struct {\n+\tTitle       string `valid:\"min=1,max255\"`\n+\tDescription string `valid:\"min=0,max=255\"`\n+}\n+\n+func ProjectCreateValidation(title string, description string, repositoryID int64, repositoryOwner string, repositoryName string) error {\n+\tform := &projectCreate{\n+\t\tTitle:           title,\n+\t\tDescription:     description,\n+\t\tRepositoryID:    repositoryID,\n+\t\tRepositoryOwner: repositoryOwner,\n+\t\tRepositoryName:  repositoryName,\n+\t}\n+\treturn validate.Struct(form)\n+}\n+\n+func ProjectUpdateValidation(title string, description string) error {","path":"validators/project_validator.go","position":27,"original_position":27,"commit_id":"18ee2aef7362ebd61e122b58b659470cef2a8779","original_commit_id":"18ee2aef7362ebd61e122b58b659470cef2a8779","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"exported function ProjectUpdateValidation should have comment or be unexported","created_at":"2016-06-16T15:19:23Z","updated_at":"2016-06-16T15:19:23Z","html_url":"https://github.com/h3poteto/fascia/pull/164#discussion_r67364877","pull_request_url":"https://api.github.com/repos/h3poteto/fascia/pulls/164","_links":{"self":{"href":"https://api.github.com/repos/h3poteto/fascia/pulls/comments/67364877"},"html":{"href":"https://github.com/h3poteto/fascia/pull/164#discussion_r67364877"},"pull_request":{"href":"https://api.github.com/repos/h3poteto/fascia/pulls/164"}}},"pull_request":{"url":"https://api.github.com/repos/h3poteto/fascia/pulls/164","id":73772218,"html_url":"https://github.com/h3poteto/fascia/pull/164","diff_url":"https://github.com/h3poteto/fascia/pull/164.diff","patch_url":"https://github.com/h3poteto/fascia/pull/164.patch","issue_url":"https://api.github.com/repos/h3poteto/fascia/issues/164","number":164,"state":"open","locked":false,"title":"closes #158 formからのvalidationを作成","user":{"login":"h3poteto","id":4631959,"avatar_url":"https://avatars.githubusercontent.com/u/4631959?v=3","gravatar_id":"","url":"https://api.github.com/users/h3poteto","html_url":"https://github.com/h3poteto","followers_url":"https://api.github.com/users/h3poteto/followers","following_url":"https://api.github.com/users/h3poteto/following{/other_user}","gists_url":"https://api.github.com/users/h3poteto/gists{/gist_id}","starred_url":"https://api.github.com/users/h3poteto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h3poteto/subscriptions","organizations_url":"https://api.github.com/users/h3poteto/orgs","repos_url":"https://api.github.com/users/h3poteto/repos","events_url":"https://api.github.com/users/h3poteto/events{/privacy}","received_events_url":"https://api.github.com/users/h3poteto/received_events","type":"User","site_admin":false},"body":"unique等，モデル層でやるべきことは別途対応","created_at":"2016-06-14T16:31:16Z","updated_at":"2016-06-16T15:19:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b0f2636b966bd5593b0a071870239033b35f4d6d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/h3poteto/fascia/pulls/164/commits","review_comments_url":"https://api.github.com/repos/h3poteto/fascia/pulls/164/comments","review_comment_url":"https://api.github.com/repos/h3poteto/fascia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/h3poteto/fascia/issues/164/comments","statuses_url":"https://api.github.com/repos/h3poteto/fascia/statuses/18ee2aef7362ebd61e122b58b659470cef2a8779","head":{"label":"h3poteto:iss-158","ref":"iss-158","sha":"18ee2aef7362ebd61e122b58b659470cef2a8779","user":{"login":"h3poteto","id":4631959,"avatar_url":"https://avatars.githubusercontent.com/u/4631959?v=3","gravatar_id":"","url":"https://api.github.com/users/h3poteto","html_url":"https://github.com/h3poteto","followers_url":"https://api.github.com/users/h3poteto/followers","following_url":"https://api.github.com/users/h3poteto/following{/other_user}","gists_url":"https://api.github.com/users/h3poteto/gists{/gist_id}","starred_url":"https://api.github.com/users/h3poteto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h3poteto/subscriptions","organizations_url":"https://api.github.com/users/h3poteto/orgs","repos_url":"https://api.github.com/users/h3poteto/repos","events_url":"https://api.github.com/users/h3poteto/events{/privacy}","received_events_url":"https://api.github.com/users/h3poteto/received_events","type":"User","site_admin":false},"repo":{"id":50192141,"name":"fascia","full_name":"h3poteto/fascia","owner":{"login":"h3poteto","id":4631959,"avatar_url":"https://avatars.githubusercontent.com/u/4631959?v=3","gravatar_id":"","url":"https://api.github.com/users/h3poteto","html_url":"https://github.com/h3poteto","followers_url":"https://api.github.com/users/h3poteto/followers","following_url":"https://api.github.com/users/h3poteto/following{/other_user}","gists_url":"https://api.github.com/users/h3poteto/gists{/gist_id}","starred_url":"https://api.github.com/users/h3poteto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h3poteto/subscriptions","organizations_url":"https://api.github.com/users/h3poteto/orgs","repos_url":"https://api.github.com/users/h3poteto/repos","events_url":"https://api.github.com/users/h3poteto/events{/privacy}","received_events_url":"https://api.github.com/users/h3poteto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/h3poteto/fascia","description":"","fork":false,"url":"https://api.github.com/repos/h3poteto/fascia","forks_url":"https://api.github.com/repos/h3poteto/fascia/forks","keys_url":"https://api.github.com/repos/h3poteto/fascia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/h3poteto/fascia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/h3poteto/fascia/teams","hooks_url":"https://api.github.com/repos/h3poteto/fascia/hooks","issue_events_url":"https://api.github.com/repos/h3poteto/fascia/issues/events{/number}","events_url":"https://api.github.com/repos/h3poteto/fascia/events","assignees_url":"https://api.github.com/repos/h3poteto/fascia/assignees{/user}","branches_url":"https://api.github.com/repos/h3poteto/fascia/branches{/branch}","tags_url":"https://api.github.com/repos/h3poteto/fascia/tags","blobs_url":"https://api.github.com/repos/h3poteto/fascia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/h3poteto/fascia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/h3poteto/fascia/git/refs{/sha}","trees_url":"https://api.github.com/repos/h3poteto/fascia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/h3poteto/fascia/statuses/{sha}","languages_url":"https://api.github.com/repos/h3poteto/fascia/languages","stargazers_url":"https://api.github.com/repos/h3poteto/fascia/stargazers","contributors_url":"https://api.github.com/repos/h3poteto/fascia/contributors","subscribers_url":"https://api.github.com/repos/h3poteto/fascia/subscribers","subscription_url":"https://api.github.com/repos/h3poteto/fascia/subscription","commits_url":"https://api.github.com/repos/h3poteto/fascia/commits{/sha}","git_commits_url":"https://api.github.com/repos/h3poteto/fascia/git/commits{/sha}","comments_url":"https://api.github.com/repos/h3poteto/fascia/comments{/number}","issue_comment_url":"https://api.github.com/repos/h3poteto/fascia/issues/comments{/number}","contents_url":"https://api.github.com/repos/h3poteto/fascia/contents/{+path}","compare_url":"https://api.github.com/repos/h3poteto/fascia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/h3poteto/fascia/merges","archive_url":"https://api.github.com/repos/h3poteto/fascia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/h3poteto/fascia/downloads","issues_url":"https://api.github.com/repos/h3poteto/fascia/issues{/number}","pulls_url":"https://api.github.com/repos/h3poteto/fascia/pulls{/number}","milestones_url":"https://api.github.com/repos/h3poteto/fascia/milestones{/number}","notifications_url":"https://api.github.com/repos/h3poteto/fascia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/h3poteto/fascia/labels{/name}","releases_url":"https://api.github.com/repos/h3poteto/fascia/releases{/id}","deployments_url":"https://api.github.com/repos/h3poteto/fascia/deployments","created_at":"2016-01-22T16:13:34Z","updated_at":"2016-06-01T08:29:20Z","pushed_at":"2016-06-16T15:19:15Z","git_url":"git://github.com/h3poteto/fascia.git","ssh_url":"git@github.com:h3poteto/fascia.git","clone_url":"https://github.com/h3poteto/fascia.git","svn_url":"https://github.com/h3poteto/fascia","homepage":"http://fascia.io/","size":2427,"stargazers_count":6,"watchers_count":6,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":16,"forks":0,"open_issues":16,"watchers":6,"default_branch":"master"}},"base":{"label":"h3poteto:master","ref":"master","sha":"ea2d30591b4cb3ed2adee1529202186691b24ad8","user":{"login":"h3poteto","id":4631959,"avatar_url":"https://avatars.githubusercontent.com/u/4631959?v=3","gravatar_id":"","url":"https://api.github.com/users/h3poteto","html_url":"https://github.com/h3poteto","followers_url":"https://api.github.com/users/h3poteto/followers","following_url":"https://api.github.com/users/h3poteto/following{/other_user}","gists_url":"https://api.github.com/users/h3poteto/gists{/gist_id}","starred_url":"https://api.github.com/users/h3poteto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h3poteto/subscriptions","organizations_url":"https://api.github.com/users/h3poteto/orgs","repos_url":"https://api.github.com/users/h3poteto/repos","events_url":"https://api.github.com/users/h3poteto/events{/privacy}","received_events_url":"https://api.github.com/users/h3poteto/received_events","type":"User","site_admin":false},"repo":{"id":50192141,"name":"fascia","full_name":"h3poteto/fascia","owner":{"login":"h3poteto","id":4631959,"avatar_url":"https://avatars.githubusercontent.com/u/4631959?v=3","gravatar_id":"","url":"https://api.github.com/users/h3poteto","html_url":"https://github.com/h3poteto","followers_url":"https://api.github.com/users/h3poteto/followers","following_url":"https://api.github.com/users/h3poteto/following{/other_user}","gists_url":"https://api.github.com/users/h3poteto/gists{/gist_id}","starred_url":"https://api.github.com/users/h3poteto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h3poteto/subscriptions","organizations_url":"https://api.github.com/users/h3poteto/orgs","repos_url":"https://api.github.com/users/h3poteto/repos","events_url":"https://api.github.com/users/h3poteto/events{/privacy}","received_events_url":"https://api.github.com/users/h3poteto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/h3poteto/fascia","description":"","fork":false,"url":"https://api.github.com/repos/h3poteto/fascia","forks_url":"https://api.github.com/repos/h3poteto/fascia/forks","keys_url":"https://api.github.com/repos/h3poteto/fascia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/h3poteto/fascia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/h3poteto/fascia/teams","hooks_url":"https://api.github.com/repos/h3poteto/fascia/hooks","issue_events_url":"https://api.github.com/repos/h3poteto/fascia/issues/events{/number}","events_url":"https://api.github.com/repos/h3poteto/fascia/events","assignees_url":"https://api.github.com/repos/h3poteto/fascia/assignees{/user}","branches_url":"https://api.github.com/repos/h3poteto/fascia/branches{/branch}","tags_url":"https://api.github.com/repos/h3poteto/fascia/tags","blobs_url":"https://api.github.com/repos/h3poteto/fascia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/h3poteto/fascia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/h3poteto/fascia/git/refs{/sha}","trees_url":"https://api.github.com/repos/h3poteto/fascia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/h3poteto/fascia/statuses/{sha}","languages_url":"https://api.github.com/repos/h3poteto/fascia/languages","stargazers_url":"https://api.github.com/repos/h3poteto/fascia/stargazers","contributors_url":"https://api.github.com/repos/h3poteto/fascia/contributors","subscribers_url":"https://api.github.com/repos/h3poteto/fascia/subscribers","subscription_url":"https://api.github.com/repos/h3poteto/fascia/subscription","commits_url":"https://api.github.com/repos/h3poteto/fascia/commits{/sha}","git_commits_url":"https://api.github.com/repos/h3poteto/fascia/git/commits{/sha}","comments_url":"https://api.github.com/repos/h3poteto/fascia/comments{/number}","issue_comment_url":"https://api.github.com/repos/h3poteto/fascia/issues/comments{/number}","contents_url":"https://api.github.com/repos/h3poteto/fascia/contents/{+path}","compare_url":"https://api.github.com/repos/h3poteto/fascia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/h3poteto/fascia/merges","archive_url":"https://api.github.com/repos/h3poteto/fascia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/h3poteto/fascia/downloads","issues_url":"https://api.github.com/repos/h3poteto/fascia/issues{/number}","pulls_url":"https://api.github.com/repos/h3poteto/fascia/pulls{/number}","milestones_url":"https://api.github.com/repos/h3poteto/fascia/milestones{/number}","notifications_url":"https://api.github.com/repos/h3poteto/fascia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/h3poteto/fascia/labels{/name}","releases_url":"https://api.github.com/repos/h3poteto/fascia/releases{/id}","deployments_url":"https://api.github.com/repos/h3poteto/fascia/deployments","created_at":"2016-01-22T16:13:34Z","updated_at":"2016-06-01T08:29:20Z","pushed_at":"2016-06-16T15:19:15Z","git_url":"git://github.com/h3poteto/fascia.git","ssh_url":"git@github.com:h3poteto/fascia.git","clone_url":"https://github.com/h3poteto/fascia.git","svn_url":"https://github.com/h3poteto/fascia","homepage":"http://fascia.io/","size":2427,"stargazers_count":6,"watchers_count":6,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":16,"forks":0,"open_issues":16,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/h3poteto/fascia/pulls/164"},"html":{"href":"https://github.com/h3poteto/fascia/pull/164"},"issue":{"href":"https://api.github.com/repos/h3poteto/fascia/issues/164"},"comments":{"href":"https://api.github.com/repos/h3poteto/fascia/issues/164/comments"},"review_comments":{"href":"https://api.github.com/repos/h3poteto/fascia/pulls/164/comments"},"review_comment":{"href":"https://api.github.com/repos/h3poteto/fascia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/h3poteto/fascia/pulls/164/commits"},"statuses":{"href":"https://api.github.com/repos/h3poteto/fascia/statuses/18ee2aef7362ebd61e122b58b659470cef2a8779"}}}}
{"actor":{"display_login":"houndci-bot"}}