{"action":"created","comment":{"url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/pulls/comments/194863420","pull_request_review_id":128099406,"id":194863420,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDg2MzQyMA==","diff_hunk":"@@ -0,0 +1,43 @@\n+//\n+//  TasksVCCell.swift\n+//  NotesMVVM\n+//\n+//  Created by Yurii Tsymbala on 6/11/18.\n+//  Copyright © 2018 Yurii Tsymbala. All rights reserved.\n+//\n+\n+import UIKit\n+\n+class TasksVCCell: UITableViewCell {\n+\n+  var viewModel: TasksCellViewModel? {\n+    didSet {\n+      setup()\n+    }\n+  }\n+\n+  override func prepareForReuse() {\n+    super.prepareForReuse()\n+    setup()\n+  }\n+\n+  private func setup(){\n+    guard let viewModel = viewModel else { return }\n+    taskNameLabel.text = viewModel.name\n+    switch viewModel.priority {\n+    case \"high\"   :\n+      taskView.backgroundColor = UIColor.red\n+    case \"medium\" :\n+      taskView.backgroundColor = UIColor.orange\n+    case \"low\"    :\n+      taskView.backgroundColor = UIColor.green\n+    default:\n+      print(\"Priority did not set\")\n+    }\n+  }\n+  \n+  @IBOutlet weak var taskView: UIView!","path":"NotesMVVM/NotesMVVM/View/Cells/TasksVCCell.swift","position":39,"original_position":39,"commit_id":"0ec6140cc6735a3ba3b0d2ae86c0eec3a39ab66d","original_commit_id":"0ec6140cc6735a3ba3b0d2ae86c0eec3a39ab66d","user":{"login":"candr-ios","id":32770753,"node_id":"MDQ6VXNlcjMyNzcwNzUz","avatar_url":"https://avatars0.githubusercontent.com/u/32770753?v=4","gravatar_id":"","url":"https://api.github.com/users/candr-ios","html_url":"https://github.com/candr-ios","followers_url":"https://api.github.com/users/candr-ios/followers","following_url":"https://api.github.com/users/candr-ios/following{/other_user}","gists_url":"https://api.github.com/users/candr-ios/gists{/gist_id}","starred_url":"https://api.github.com/users/candr-ios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/candr-ios/subscriptions","organizations_url":"https://api.github.com/users/candr-ios/orgs","repos_url":"https://api.github.com/users/candr-ios/repos","events_url":"https://api.github.com/users/candr-ios/events{/privacy}","received_events_url":"https://api.github.com/users/candr-ios/received_events","type":"User","site_admin":false},"body":"see comment below about `private` modifier","created_at":"2018-06-12T19:37:40Z","updated_at":"2018-06-12T19:54:09Z","html_url":"https://github.com/yurii-tsymbala/NotesMVVM/pull/1#discussion_r194863420","pull_request_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/pulls/1","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/pulls/comments/194863420"},"html":{"href":"https://github.com/yurii-tsymbala/NotesMVVM/pull/1#discussion_r194863420"},"pull_request":{"href":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/pulls/1","id":194329620,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0MzI5NjIw","html_url":"https://github.com/yurii-tsymbala/NotesMVVM/pull/1","diff_url":"https://github.com/yurii-tsymbala/NotesMVVM/pull/1.diff","patch_url":"https://github.com/yurii-tsymbala/NotesMVVM/pull/1.patch","issue_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/issues/1","number":1,"state":"open","locked":false,"title":"Develop","user":{"login":"yurii-tsymbala","id":35536487,"node_id":"MDQ6VXNlcjM1NTM2NDg3","avatar_url":"https://avatars2.githubusercontent.com/u/35536487?v=4","gravatar_id":"","url":"https://api.github.com/users/yurii-tsymbala","html_url":"https://github.com/yurii-tsymbala","followers_url":"https://api.github.com/users/yurii-tsymbala/followers","following_url":"https://api.github.com/users/yurii-tsymbala/following{/other_user}","gists_url":"https://api.github.com/users/yurii-tsymbala/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-tsymbala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-tsymbala/subscriptions","organizations_url":"https://api.github.com/users/yurii-tsymbala/orgs","repos_url":"https://api.github.com/users/yurii-tsymbala/repos","events_url":"https://api.github.com/users/yurii-tsymbala/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-tsymbala/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-12T15:56:58Z","updated_at":"2018-06-12T19:54:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"436575ee9218eca4e0302d7f2bc8124f8c7fc87d","assignee":{"login":"candr-ios","id":32770753,"node_id":"MDQ6VXNlcjMyNzcwNzUz","avatar_url":"https://avatars0.githubusercontent.com/u/32770753?v=4","gravatar_id":"","url":"https://api.github.com/users/candr-ios","html_url":"https://github.com/candr-ios","followers_url":"https://api.github.com/users/candr-ios/followers","following_url":"https://api.github.com/users/candr-ios/following{/other_user}","gists_url":"https://api.github.com/users/candr-ios/gists{/gist_id}","starred_url":"https://api.github.com/users/candr-ios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/candr-ios/subscriptions","organizations_url":"https://api.github.com/users/candr-ios/orgs","repos_url":"https://api.github.com/users/candr-ios/repos","events_url":"https://api.github.com/users/candr-ios/events{/privacy}","received_events_url":"https://api.github.com/users/candr-ios/received_events","type":"User","site_admin":false},"assignees":[{"login":"candr-ios","id":32770753,"node_id":"MDQ6VXNlcjMyNzcwNzUz","avatar_url":"https://avatars0.githubusercontent.com/u/32770753?v=4","gravatar_id":"","url":"https://api.github.com/users/candr-ios","html_url":"https://github.com/candr-ios","followers_url":"https://api.github.com/users/candr-ios/followers","following_url":"https://api.github.com/users/candr-ios/following{/other_user}","gists_url":"https://api.github.com/users/candr-ios/gists{/gist_id}","starred_url":"https://api.github.com/users/candr-ios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/candr-ios/subscriptions","organizations_url":"https://api.github.com/users/candr-ios/orgs","repos_url":"https://api.github.com/users/candr-ios/repos","events_url":"https://api.github.com/users/candr-ios/events{/privacy}","received_events_url":"https://api.github.com/users/candr-ios/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/pulls/1/commits","review_comments_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/pulls/1/comments","review_comment_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/issues/1/comments","statuses_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/statuses/0ec6140cc6735a3ba3b0d2ae86c0eec3a39ab66d","head":{"label":"yurii-tsymbala:develop","ref":"develop","sha":"0ec6140cc6735a3ba3b0d2ae86c0eec3a39ab66d","user":{"login":"yurii-tsymbala","id":35536487,"node_id":"MDQ6VXNlcjM1NTM2NDg3","avatar_url":"https://avatars2.githubusercontent.com/u/35536487?v=4","gravatar_id":"","url":"https://api.github.com/users/yurii-tsymbala","html_url":"https://github.com/yurii-tsymbala","followers_url":"https://api.github.com/users/yurii-tsymbala/followers","following_url":"https://api.github.com/users/yurii-tsymbala/following{/other_user}","gists_url":"https://api.github.com/users/yurii-tsymbala/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-tsymbala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-tsymbala/subscriptions","organizations_url":"https://api.github.com/users/yurii-tsymbala/orgs","repos_url":"https://api.github.com/users/yurii-tsymbala/repos","events_url":"https://api.github.com/users/yurii-tsymbala/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-tsymbala/received_events","type":"User","site_admin":false},"repo":{"id":136915471,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY5MTU0NzE=","name":"NotesMVVM","full_name":"yurii-tsymbala/NotesMVVM","owner":{"login":"yurii-tsymbala","id":35536487,"node_id":"MDQ6VXNlcjM1NTM2NDg3","avatar_url":"https://avatars2.githubusercontent.com/u/35536487?v=4","gravatar_id":"","url":"https://api.github.com/users/yurii-tsymbala","html_url":"https://github.com/yurii-tsymbala","followers_url":"https://api.github.com/users/yurii-tsymbala/followers","following_url":"https://api.github.com/users/yurii-tsymbala/following{/other_user}","gists_url":"https://api.github.com/users/yurii-tsymbala/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-tsymbala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-tsymbala/subscriptions","organizations_url":"https://api.github.com/users/yurii-tsymbala/orgs","repos_url":"https://api.github.com/users/yurii-tsymbala/repos","events_url":"https://api.github.com/users/yurii-tsymbala/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-tsymbala/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yurii-tsymbala/NotesMVVM","description":null,"fork":false,"url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM","forks_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/forks","keys_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/teams","hooks_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/hooks","issue_events_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/issues/events{/number}","events_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/events","assignees_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/assignees{/user}","branches_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/branches{/branch}","tags_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/tags","blobs_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/git/refs{/sha}","trees_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/statuses/{sha}","languages_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/languages","stargazers_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/stargazers","contributors_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/contributors","subscribers_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/subscribers","subscription_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/subscription","commits_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/commits{/sha}","git_commits_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/git/commits{/sha}","comments_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/comments{/number}","issue_comment_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/issues/comments{/number}","contents_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/contents/{+path}","compare_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/merges","archive_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/downloads","issues_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/issues{/number}","pulls_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/pulls{/number}","milestones_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/milestones{/number}","notifications_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/labels{/name}","releases_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/releases{/id}","deployments_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/deployments","created_at":"2018-06-11T11:13:43Z","updated_at":"2018-06-11T11:13:46Z","pushed_at":"2018-06-12T15:56:59Z","git_url":"git://github.com/yurii-tsymbala/NotesMVVM.git","ssh_url":"git@github.com:yurii-tsymbala/NotesMVVM.git","clone_url":"https://github.com/yurii-tsymbala/NotesMVVM.git","svn_url":"https://github.com/yurii-tsymbala/NotesMVVM","homepage":null,"size":53,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"yurii-tsymbala:master","ref":"master","sha":"ac9e78ec3a6fe18bdf53fae2f7c7922affb712cd","user":{"login":"yurii-tsymbala","id":35536487,"node_id":"MDQ6VXNlcjM1NTM2NDg3","avatar_url":"https://avatars2.githubusercontent.com/u/35536487?v=4","gravatar_id":"","url":"https://api.github.com/users/yurii-tsymbala","html_url":"https://github.com/yurii-tsymbala","followers_url":"https://api.github.com/users/yurii-tsymbala/followers","following_url":"https://api.github.com/users/yurii-tsymbala/following{/other_user}","gists_url":"https://api.github.com/users/yurii-tsymbala/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-tsymbala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-tsymbala/subscriptions","organizations_url":"https://api.github.com/users/yurii-tsymbala/orgs","repos_url":"https://api.github.com/users/yurii-tsymbala/repos","events_url":"https://api.github.com/users/yurii-tsymbala/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-tsymbala/received_events","type":"User","site_admin":false},"repo":{"id":136915471,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY5MTU0NzE=","name":"NotesMVVM","full_name":"yurii-tsymbala/NotesMVVM","owner":{"login":"yurii-tsymbala","id":35536487,"node_id":"MDQ6VXNlcjM1NTM2NDg3","avatar_url":"https://avatars2.githubusercontent.com/u/35536487?v=4","gravatar_id":"","url":"https://api.github.com/users/yurii-tsymbala","html_url":"https://github.com/yurii-tsymbala","followers_url":"https://api.github.com/users/yurii-tsymbala/followers","following_url":"https://api.github.com/users/yurii-tsymbala/following{/other_user}","gists_url":"https://api.github.com/users/yurii-tsymbala/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-tsymbala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-tsymbala/subscriptions","organizations_url":"https://api.github.com/users/yurii-tsymbala/orgs","repos_url":"https://api.github.com/users/yurii-tsymbala/repos","events_url":"https://api.github.com/users/yurii-tsymbala/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-tsymbala/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yurii-tsymbala/NotesMVVM","description":null,"fork":false,"url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM","forks_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/forks","keys_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/teams","hooks_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/hooks","issue_events_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/issues/events{/number}","events_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/events","assignees_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/assignees{/user}","branches_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/branches{/branch}","tags_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/tags","blobs_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/git/refs{/sha}","trees_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/statuses/{sha}","languages_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/languages","stargazers_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/stargazers","contributors_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/contributors","subscribers_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/subscribers","subscription_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/subscription","commits_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/commits{/sha}","git_commits_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/git/commits{/sha}","comments_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/comments{/number}","issue_comment_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/issues/comments{/number}","contents_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/contents/{+path}","compare_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/merges","archive_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/downloads","issues_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/issues{/number}","pulls_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/pulls{/number}","milestones_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/milestones{/number}","notifications_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/labels{/name}","releases_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/releases{/id}","deployments_url":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/deployments","created_at":"2018-06-11T11:13:43Z","updated_at":"2018-06-11T11:13:46Z","pushed_at":"2018-06-12T15:56:59Z","git_url":"git://github.com/yurii-tsymbala/NotesMVVM.git","ssh_url":"git@github.com:yurii-tsymbala/NotesMVVM.git","clone_url":"https://github.com/yurii-tsymbala/NotesMVVM.git","svn_url":"https://github.com/yurii-tsymbala/NotesMVVM","homepage":null,"size":53,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/pulls/1"},"html":{"href":"https://github.com/yurii-tsymbala/NotesMVVM/pull/1"},"issue":{"href":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/issues/1"},"comments":{"href":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/yurii-tsymbala/NotesMVVM/statuses/0ec6140cc6735a3ba3b0d2ae86c0eec3a39ab66d"}},"author_association":"OWNER"}}
{"actor":{"display_login":"candr-ios"}}