{"action":"created","comment":{"url":"https://api.github.com/repos/hmcts/cmc-validators/pulls/comments/185024494","pull_request_review_id":116333188,"id":185024494,"diff_hunk":"@@ -0,0 +1,58 @@\n+import { expect } from 'chai'\n+import { IsBooleanTrueConstraint, IsBooleanTrue } from '../main/isBooleanTrue'\n+import { validateSync } from 'class-validator'\n+\n+class BooleanTrueTest {\n+  @IsBooleanTrue()\n+  boolValue?: boolean\n+\n+  constructor (boolValue?: boolean) {\n+    this.boolValue = boolValue\n+  }\n+}\n+\n+describe('IsBooleanConstraint', () => {","path":"src/test/isBooleanConstraint.ts","position":14,"original_position":14,"commit_id":"23250d7357e2a15827641439096b390c27bc1437","original_commit_id":"23250d7357e2a15827641439096b390c27bc1437","user":{"login":"sabahirfan","id":12894151,"avatar_url":"https://avatars0.githubusercontent.com/u/12894151?v=4","gravatar_id":"","url":"https://api.github.com/users/sabahirfan","html_url":"https://github.com/sabahirfan","followers_url":"https://api.github.com/users/sabahirfan/followers","following_url":"https://api.github.com/users/sabahirfan/following{/other_user}","gists_url":"https://api.github.com/users/sabahirfan/gists{/gist_id}","starred_url":"https://api.github.com/users/sabahirfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabahirfan/subscriptions","organizations_url":"https://api.github.com/users/sabahirfan/orgs","repos_url":"https://api.github.com/users/sabahirfan/repos","events_url":"https://api.github.com/users/sabahirfan/events{/privacy}","received_events_url":"https://api.github.com/users/sabahirfan/received_events","type":"User","site_admin":false},"body":"Can we please rename this file `src/test/isBooleanConstraint.ts` to `src/test/isBooleanTrue.spec.ts`? and this describe to `describe('IsBooleanTrue',...`","created_at":"2018-04-30T15:40:24Z","updated_at":"2018-04-30T15:40:25Z","html_url":"https://github.com/hmcts/cmc-validators/pull/8#discussion_r185024494","pull_request_url":"https://api.github.com/repos/hmcts/cmc-validators/pulls/8","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/hmcts/cmc-validators/pulls/comments/185024494"},"html":{"href":"https://github.com/hmcts/cmc-validators/pull/8#discussion_r185024494"},"pull_request":{"href":"https://api.github.com/repos/hmcts/cmc-validators/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/hmcts/cmc-validators/pulls/8","id":184988509,"html_url":"https://github.com/hmcts/cmc-validators/pull/8","diff_url":"https://github.com/hmcts/cmc-validators/pull/8.diff","patch_url":"https://github.com/hmcts/cmc-validators/pull/8.patch","issue_url":"https://api.github.com/repos/hmcts/cmc-validators/issues/8","number":8,"state":"open","locked":false,"title":"Feature/roc 3671","user":{"login":"ellie-harrison","id":29262071,"avatar_url":"https://avatars0.githubusercontent.com/u/29262071?v=4","gravatar_id":"","url":"https://api.github.com/users/ellie-harrison","html_url":"https://github.com/ellie-harrison","followers_url":"https://api.github.com/users/ellie-harrison/followers","following_url":"https://api.github.com/users/ellie-harrison/following{/other_user}","gists_url":"https://api.github.com/users/ellie-harrison/gists{/gist_id}","starred_url":"https://api.github.com/users/ellie-harrison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ellie-harrison/subscriptions","organizations_url":"https://api.github.com/users/ellie-harrison/orgs","repos_url":"https://api.github.com/users/ellie-harrison/repos","events_url":"https://api.github.com/users/ellie-harrison/events{/privacy}","received_events_url":"https://api.github.com/users/ellie-harrison/received_events","type":"User","site_admin":false},"body":"Updated existing unit tests to use validator annotations, allowing for 100% code coverage on existing tests.\r\n\r\nAdded isBooleanTrue validator from cmc-citizen-frontend","created_at":"2018-04-30T15:32:43Z","updated_at":"2018-04-30T15:40:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e40e834cfdeebf749a9d2fb703c16c7cc4f2557c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hmcts/cmc-validators/pulls/8/commits","review_comments_url":"https://api.github.com/repos/hmcts/cmc-validators/pulls/8/comments","review_comment_url":"https://api.github.com/repos/hmcts/cmc-validators/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmcts/cmc-validators/issues/8/comments","statuses_url":"https://api.github.com/repos/hmcts/cmc-validators/statuses/23250d7357e2a15827641439096b390c27bc1437","head":{"label":"hmcts:feature/ROC-3671","ref":"feature/ROC-3671","sha":"23250d7357e2a15827641439096b390c27bc1437","user":{"login":"hmcts","id":22817111,"avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"repo":{"id":131138328,"name":"cmc-validators","full_name":"hmcts/cmc-validators","owner":{"login":"hmcts","id":22817111,"avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hmcts/cmc-validators","description":null,"fork":false,"url":"https://api.github.com/repos/hmcts/cmc-validators","forks_url":"https://api.github.com/repos/hmcts/cmc-validators/forks","keys_url":"https://api.github.com/repos/hmcts/cmc-validators/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/cmc-validators/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/cmc-validators/teams","hooks_url":"https://api.github.com/repos/hmcts/cmc-validators/hooks","issue_events_url":"https://api.github.com/repos/hmcts/cmc-validators/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/cmc-validators/events","assignees_url":"https://api.github.com/repos/hmcts/cmc-validators/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/cmc-validators/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/cmc-validators/tags","blobs_url":"https://api.github.com/repos/hmcts/cmc-validators/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/cmc-validators/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/cmc-validators/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/cmc-validators/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/cmc-validators/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/cmc-validators/languages","stargazers_url":"https://api.github.com/repos/hmcts/cmc-validators/stargazers","contributors_url":"https://api.github.com/repos/hmcts/cmc-validators/contributors","subscribers_url":"https://api.github.com/repos/hmcts/cmc-validators/subscribers","subscription_url":"https://api.github.com/repos/hmcts/cmc-validators/subscription","commits_url":"https://api.github.com/repos/hmcts/cmc-validators/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/cmc-validators/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/cmc-validators/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/cmc-validators/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/cmc-validators/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/cmc-validators/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/cmc-validators/merges","archive_url":"https://api.github.com/repos/hmcts/cmc-validators/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/cmc-validators/downloads","issues_url":"https://api.github.com/repos/hmcts/cmc-validators/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/cmc-validators/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/cmc-validators/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/cmc-validators/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/cmc-validators/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/cmc-validators/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/cmc-validators/deployments","created_at":"2018-04-26T10:17:37Z","updated_at":"2018-04-30T12:58:29Z","pushed_at":"2018-04-30T15:32:44Z","git_url":"git://github.com/hmcts/cmc-validators.git","ssh_url":"git@github.com:hmcts/cmc-validators.git","clone_url":"https://github.com/hmcts/cmc-validators.git","svn_url":"https://github.com/hmcts/cmc-validators","homepage":null,"size":54,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"hmcts:master","ref":"master","sha":"9c1f320bd0b4181911113e52225d3cc8b6af5c56","user":{"login":"hmcts","id":22817111,"avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"repo":{"id":131138328,"name":"cmc-validators","full_name":"hmcts/cmc-validators","owner":{"login":"hmcts","id":22817111,"avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hmcts/cmc-validators","description":null,"fork":false,"url":"https://api.github.com/repos/hmcts/cmc-validators","forks_url":"https://api.github.com/repos/hmcts/cmc-validators/forks","keys_url":"https://api.github.com/repos/hmcts/cmc-validators/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/cmc-validators/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/cmc-validators/teams","hooks_url":"https://api.github.com/repos/hmcts/cmc-validators/hooks","issue_events_url":"https://api.github.com/repos/hmcts/cmc-validators/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/cmc-validators/events","assignees_url":"https://api.github.com/repos/hmcts/cmc-validators/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/cmc-validators/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/cmc-validators/tags","blobs_url":"https://api.github.com/repos/hmcts/cmc-validators/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/cmc-validators/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/cmc-validators/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/cmc-validators/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/cmc-validators/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/cmc-validators/languages","stargazers_url":"https://api.github.com/repos/hmcts/cmc-validators/stargazers","contributors_url":"https://api.github.com/repos/hmcts/cmc-validators/contributors","subscribers_url":"https://api.github.com/repos/hmcts/cmc-validators/subscribers","subscription_url":"https://api.github.com/repos/hmcts/cmc-validators/subscription","commits_url":"https://api.github.com/repos/hmcts/cmc-validators/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/cmc-validators/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/cmc-validators/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/cmc-validators/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/cmc-validators/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/cmc-validators/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/cmc-validators/merges","archive_url":"https://api.github.com/repos/hmcts/cmc-validators/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/cmc-validators/downloads","issues_url":"https://api.github.com/repos/hmcts/cmc-validators/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/cmc-validators/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/cmc-validators/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/cmc-validators/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/cmc-validators/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/cmc-validators/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/cmc-validators/deployments","created_at":"2018-04-26T10:17:37Z","updated_at":"2018-04-30T12:58:29Z","pushed_at":"2018-04-30T15:32:44Z","git_url":"git://github.com/hmcts/cmc-validators.git","ssh_url":"git@github.com:hmcts/cmc-validators.git","clone_url":"https://github.com/hmcts/cmc-validators.git","svn_url":"https://github.com/hmcts/cmc-validators","homepage":null,"size":54,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmcts/cmc-validators/pulls/8"},"html":{"href":"https://github.com/hmcts/cmc-validators/pull/8"},"issue":{"href":"https://api.github.com/repos/hmcts/cmc-validators/issues/8"},"comments":{"href":"https://api.github.com/repos/hmcts/cmc-validators/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/hmcts/cmc-validators/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/hmcts/cmc-validators/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmcts/cmc-validators/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/hmcts/cmc-validators/statuses/23250d7357e2a15827641439096b390c27bc1437"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"sabahirfan"}}