{"action":"closed","number":32,"pull_request":{"url":"https://api.github.com/repos/Chrismarcel/iReporter/pulls/32","id":234801808,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0ODAxODA4","html_url":"https://github.com/Chrismarcel/iReporter/pull/32","diff_url":"https://github.com/Chrismarcel/iReporter/pull/32.diff","patch_url":"https://github.com/Chrismarcel/iReporter/pull/32.patch","issue_url":"https://api.github.com/repos/Chrismarcel/iReporter/issues/32","number":32,"state":"closed","locked":false,"title":"#162321042 Feat: Set up PATCH request endpoint to update red-flag report","user":{"login":"Chrismarcel","id":8250371,"node_id":"MDQ6VXNlcjgyNTAzNzE=","avatar_url":"https://avatars1.githubusercontent.com/u/8250371?v=4","gravatar_id":"","url":"https://api.github.com/users/Chrismarcel","html_url":"https://github.com/Chrismarcel","followers_url":"https://api.github.com/users/Chrismarcel/followers","following_url":"https://api.github.com/users/Chrismarcel/following{/other_user}","gists_url":"https://api.github.com/users/Chrismarcel/gists{/gist_id}","starred_url":"https://api.github.com/users/Chrismarcel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chrismarcel/subscriptions","organizations_url":"https://api.github.com/users/Chrismarcel/orgs","repos_url":"https://api.github.com/users/Chrismarcel/repos","events_url":"https://api.github.com/users/Chrismarcel/events{/privacy}","received_events_url":"https://api.github.com/users/Chrismarcel/received_events","type":"User","site_admin":false},"body":"__What does this PR do?__\r\nThis PR sets up the PATCH /api/v1/red-flags/:id/location and PATCH /api/v1/red-flags/:id/comment  endpoints\r\n\r\n__Description of tasks__\r\n- Ensure that all the tests for the endpoints are passing\r\n- Request made with the proper details to /api/v1/red-flags/:id/location should update location\r\n- Request made with the proper details to /api/v1/red-flags/:id/comment should update comment\r\n\r\n__How can this PR be tested__\r\n- Using Postman, set the request method to PATCH\r\n- Specify the endpoint /api/v1/red-flags/:id/location to test for location update\r\n- Specify the endpoint /api/v1/red-flags/:id/comment to test for comment update\r\n\r\n__Link to relevant story__\r\n[#162321042](https://www.pivotaltracker.com/story/show/162321042)","created_at":"2018-11-29T22:03:40Z","updated_at":"2018-11-29T22:06:54Z","closed_at":"2018-11-29T22:06:54Z","merged_at":"2018-11-29T22:06:54Z","merge_commit_sha":"7aa609d818e040fba5895097da118039c7ed780b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Chrismarcel/iReporter/pulls/32/commits","review_comments_url":"https://api.github.com/repos/Chrismarcel/iReporter/pulls/32/comments","review_comment_url":"https://api.github.com/repos/Chrismarcel/iReporter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Chrismarcel/iReporter/issues/32/comments","statuses_url":"https://api.github.com/repos/Chrismarcel/iReporter/statuses/7aa609d818e040fba5895097da118039c7ed780b","head":{"label":"Chrismarcel:ft-patch-report-#162321042","ref":"ft-patch-report-#162321042","sha":"7aa609d818e040fba5895097da118039c7ed780b","user":{"login":"Chrismarcel","id":8250371,"node_id":"MDQ6VXNlcjgyNTAzNzE=","avatar_url":"https://avatars1.githubusercontent.com/u/8250371?v=4","gravatar_id":"","url":"https://api.github.com/users/Chrismarcel","html_url":"https://github.com/Chrismarcel","followers_url":"https://api.github.com/users/Chrismarcel/followers","following_url":"https://api.github.com/users/Chrismarcel/following{/other_user}","gists_url":"https://api.github.com/users/Chrismarcel/gists{/gist_id}","starred_url":"https://api.github.com/users/Chrismarcel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chrismarcel/subscriptions","organizations_url":"https://api.github.com/users/Chrismarcel/orgs","repos_url":"https://api.github.com/users/Chrismarcel/repos","events_url":"https://api.github.com/users/Chrismarcel/events{/privacy}","received_events_url":"https://api.github.com/users/Chrismarcel/received_events","type":"User","site_admin":false},"repo":{"id":158536724,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg1MzY3MjQ=","name":"iReporter","full_name":"Chrismarcel/iReporter","private":false,"owner":{"login":"Chrismarcel","id":8250371,"node_id":"MDQ6VXNlcjgyNTAzNzE=","avatar_url":"https://avatars1.githubusercontent.com/u/8250371?v=4","gravatar_id":"","url":"https://api.github.com/users/Chrismarcel","html_url":"https://github.com/Chrismarcel","followers_url":"https://api.github.com/users/Chrismarcel/followers","following_url":"https://api.github.com/users/Chrismarcel/following{/other_user}","gists_url":"https://api.github.com/users/Chrismarcel/gists{/gist_id}","starred_url":"https://api.github.com/users/Chrismarcel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chrismarcel/subscriptions","organizations_url":"https://api.github.com/users/Chrismarcel/orgs","repos_url":"https://api.github.com/users/Chrismarcel/repos","events_url":"https://api.github.com/users/Chrismarcel/events{/privacy}","received_events_url":"https://api.github.com/users/Chrismarcel/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Chrismarcel/iReporter","description":"iReporter is an web platform that enables any/every citizen to bring any form of corruption to the notice of appropriate authorities and the general public and also report on things that needs government intervention.","fork":false,"url":"https://api.github.com/repos/Chrismarcel/iReporter","forks_url":"https://api.github.com/repos/Chrismarcel/iReporter/forks","keys_url":"https://api.github.com/repos/Chrismarcel/iReporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Chrismarcel/iReporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Chrismarcel/iReporter/teams","hooks_url":"https://api.github.com/repos/Chrismarcel/iReporter/hooks","issue_events_url":"https://api.github.com/repos/Chrismarcel/iReporter/issues/events{/number}","events_url":"https://api.github.com/repos/Chrismarcel/iReporter/events","assignees_url":"https://api.github.com/repos/Chrismarcel/iReporter/assignees{/user}","branches_url":"https://api.github.com/repos/Chrismarcel/iReporter/branches{/branch}","tags_url":"https://api.github.com/repos/Chrismarcel/iReporter/tags","blobs_url":"https://api.github.com/repos/Chrismarcel/iReporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Chrismarcel/iReporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Chrismarcel/iReporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/Chrismarcel/iReporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Chrismarcel/iReporter/statuses/{sha}","languages_url":"https://api.github.com/repos/Chrismarcel/iReporter/languages","stargazers_url":"https://api.github.com/repos/Chrismarcel/iReporter/stargazers","contributors_url":"https://api.github.com/repos/Chrismarcel/iReporter/contributors","subscribers_url":"https://api.github.com/repos/Chrismarcel/iReporter/subscribers","subscription_url":"https://api.github.com/repos/Chrismarcel/iReporter/subscription","commits_url":"https://api.github.com/repos/Chrismarcel/iReporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/Chrismarcel/iReporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/Chrismarcel/iReporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/Chrismarcel/iReporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/Chrismarcel/iReporter/contents/{+path}","compare_url":"https://api.github.com/repos/Chrismarcel/iReporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Chrismarcel/iReporter/merges","archive_url":"https://api.github.com/repos/Chrismarcel/iReporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Chrismarcel/iReporter/downloads","issues_url":"https://api.github.com/repos/Chrismarcel/iReporter/issues{/number}","pulls_url":"https://api.github.com/repos/Chrismarcel/iReporter/pulls{/number}","milestones_url":"https://api.github.com/repos/Chrismarcel/iReporter/milestones{/number}","notifications_url":"https://api.github.com/repos/Chrismarcel/iReporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Chrismarcel/iReporter/labels{/name}","releases_url":"https://api.github.com/repos/Chrismarcel/iReporter/releases{/id}","deployments_url":"https://api.github.com/repos/Chrismarcel/iReporter/deployments","created_at":"2018-11-21T11:19:22Z","updated_at":"2018-11-29T19:53:38Z","pushed_at":"2018-11-29T22:06:53Z","git_url":"git://github.com/Chrismarcel/iReporter.git","ssh_url":"git@github.com:Chrismarcel/iReporter.git","clone_url":"https://github.com/Chrismarcel/iReporter.git","svn_url":"https://github.com/Chrismarcel/iReporter","homepage":null,"size":383,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":1,"default_branch":"develop"}},"base":{"label":"Chrismarcel:develop","ref":"develop","sha":"ce2ed0606d78a9a1a208cc20ad7019ebc4f0ccb4","user":{"login":"Chrismarcel","id":8250371,"node_id":"MDQ6VXNlcjgyNTAzNzE=","avatar_url":"https://avatars1.githubusercontent.com/u/8250371?v=4","gravatar_id":"","url":"https://api.github.com/users/Chrismarcel","html_url":"https://github.com/Chrismarcel","followers_url":"https://api.github.com/users/Chrismarcel/followers","following_url":"https://api.github.com/users/Chrismarcel/following{/other_user}","gists_url":"https://api.github.com/users/Chrismarcel/gists{/gist_id}","starred_url":"https://api.github.com/users/Chrismarcel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chrismarcel/subscriptions","organizations_url":"https://api.github.com/users/Chrismarcel/orgs","repos_url":"https://api.github.com/users/Chrismarcel/repos","events_url":"https://api.github.com/users/Chrismarcel/events{/privacy}","received_events_url":"https://api.github.com/users/Chrismarcel/received_events","type":"User","site_admin":false},"repo":{"id":158536724,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg1MzY3MjQ=","name":"iReporter","full_name":"Chrismarcel/iReporter","private":false,"owner":{"login":"Chrismarcel","id":8250371,"node_id":"MDQ6VXNlcjgyNTAzNzE=","avatar_url":"https://avatars1.githubusercontent.com/u/8250371?v=4","gravatar_id":"","url":"https://api.github.com/users/Chrismarcel","html_url":"https://github.com/Chrismarcel","followers_url":"https://api.github.com/users/Chrismarcel/followers","following_url":"https://api.github.com/users/Chrismarcel/following{/other_user}","gists_url":"https://api.github.com/users/Chrismarcel/gists{/gist_id}","starred_url":"https://api.github.com/users/Chrismarcel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chrismarcel/subscriptions","organizations_url":"https://api.github.com/users/Chrismarcel/orgs","repos_url":"https://api.github.com/users/Chrismarcel/repos","events_url":"https://api.github.com/users/Chrismarcel/events{/privacy}","received_events_url":"https://api.github.com/users/Chrismarcel/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Chrismarcel/iReporter","description":"iReporter is an web platform that enables any/every citizen to bring any form of corruption to the notice of appropriate authorities and the general public and also report on things that needs government intervention.","fork":false,"url":"https://api.github.com/repos/Chrismarcel/iReporter","forks_url":"https://api.github.com/repos/Chrismarcel/iReporter/forks","keys_url":"https://api.github.com/repos/Chrismarcel/iReporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Chrismarcel/iReporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Chrismarcel/iReporter/teams","hooks_url":"https://api.github.com/repos/Chrismarcel/iReporter/hooks","issue_events_url":"https://api.github.com/repos/Chrismarcel/iReporter/issues/events{/number}","events_url":"https://api.github.com/repos/Chrismarcel/iReporter/events","assignees_url":"https://api.github.com/repos/Chrismarcel/iReporter/assignees{/user}","branches_url":"https://api.github.com/repos/Chrismarcel/iReporter/branches{/branch}","tags_url":"https://api.github.com/repos/Chrismarcel/iReporter/tags","blobs_url":"https://api.github.com/repos/Chrismarcel/iReporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Chrismarcel/iReporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Chrismarcel/iReporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/Chrismarcel/iReporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Chrismarcel/iReporter/statuses/{sha}","languages_url":"https://api.github.com/repos/Chrismarcel/iReporter/languages","stargazers_url":"https://api.github.com/repos/Chrismarcel/iReporter/stargazers","contributors_url":"https://api.github.com/repos/Chrismarcel/iReporter/contributors","subscribers_url":"https://api.github.com/repos/Chrismarcel/iReporter/subscribers","subscription_url":"https://api.github.com/repos/Chrismarcel/iReporter/subscription","commits_url":"https://api.github.com/repos/Chrismarcel/iReporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/Chrismarcel/iReporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/Chrismarcel/iReporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/Chrismarcel/iReporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/Chrismarcel/iReporter/contents/{+path}","compare_url":"https://api.github.com/repos/Chrismarcel/iReporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Chrismarcel/iReporter/merges","archive_url":"https://api.github.com/repos/Chrismarcel/iReporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Chrismarcel/iReporter/downloads","issues_url":"https://api.github.com/repos/Chrismarcel/iReporter/issues{/number}","pulls_url":"https://api.github.com/repos/Chrismarcel/iReporter/pulls{/number}","milestones_url":"https://api.github.com/repos/Chrismarcel/iReporter/milestones{/number}","notifications_url":"https://api.github.com/repos/Chrismarcel/iReporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Chrismarcel/iReporter/labels{/name}","releases_url":"https://api.github.com/repos/Chrismarcel/iReporter/releases{/id}","deployments_url":"https://api.github.com/repos/Chrismarcel/iReporter/deployments","created_at":"2018-11-21T11:19:22Z","updated_at":"2018-11-29T19:53:38Z","pushed_at":"2018-11-29T22:06:53Z","git_url":"git://github.com/Chrismarcel/iReporter.git","ssh_url":"git@github.com:Chrismarcel/iReporter.git","clone_url":"https://github.com/Chrismarcel/iReporter.git","svn_url":"https://github.com/Chrismarcel/iReporter","homepage":null,"size":383,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Chrismarcel/iReporter/pulls/32"},"html":{"href":"https://github.com/Chrismarcel/iReporter/pull/32"},"issue":{"href":"https://api.github.com/repos/Chrismarcel/iReporter/issues/32"},"comments":{"href":"https://api.github.com/repos/Chrismarcel/iReporter/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/Chrismarcel/iReporter/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/Chrismarcel/iReporter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Chrismarcel/iReporter/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/Chrismarcel/iReporter/statuses/7aa609d818e040fba5895097da118039c7ed780b"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"Chrismarcel","id":8250371,"node_id":"MDQ6VXNlcjgyNTAzNzE=","avatar_url":"https://avatars1.githubusercontent.com/u/8250371?v=4","gravatar_id":"","url":"https://api.github.com/users/Chrismarcel","html_url":"https://github.com/Chrismarcel","followers_url":"https://api.github.com/users/Chrismarcel/followers","following_url":"https://api.github.com/users/Chrismarcel/following{/other_user}","gists_url":"https://api.github.com/users/Chrismarcel/gists{/gist_id}","starred_url":"https://api.github.com/users/Chrismarcel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chrismarcel/subscriptions","organizations_url":"https://api.github.com/users/Chrismarcel/orgs","repos_url":"https://api.github.com/users/Chrismarcel/repos","events_url":"https://api.github.com/users/Chrismarcel/events{/privacy}","received_events_url":"https://api.github.com/users/Chrismarcel/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":155,"deletions":20,"changed_files":4}}
{"actor":{"display_login":"Chrismarcel"}}