{"action":"created","comment":{"url":"https://api.github.com/repos/ndrmc/cats-web/pulls/comments/119080782","pull_request_review_id":40927363,"id":119080782,"diff_hunk":"@@ -69,6 +69,14 @@\n                 <% if can_delete_project %>\n                 <%= link_to 'Delete', project, method: :delete, data: { confirm: 'Are you sure?' } %>\n                 <%end%>\n+\n+                  <% if !project.archived  %>\n+                    <%= link_to 'projects/archive/' + project.id.to_s , :class => \"btn btn-white btn-sm\", :data=> { :confirm => \"Are you sure?\" }  do %>","path":"app/views/projects/index.html.erb","position":6,"original_position":6,"commit_id":"e9deff41dde60631ec40e9f1ca394a80b3b08f6f","original_commit_id":"e9deff41dde60631ec40e9f1ca394a80b3b08f6f","user":{"login":"yareda","id":512830,"avatar_url":"https://avatars3.githubusercontent.com/u/512830?v=3","gravatar_id":"","url":"https://api.github.com/users/yareda","html_url":"https://github.com/yareda","followers_url":"https://api.github.com/users/yareda/followers","following_url":"https://api.github.com/users/yareda/following{/other_user}","gists_url":"https://api.github.com/users/yareda/gists{/gist_id}","starred_url":"https://api.github.com/users/yareda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yareda/subscriptions","organizations_url":"https://api.github.com/users/yareda/orgs","repos_url":"https://api.github.com/users/yareda/repos","events_url":"https://api.github.com/users/yareda/events{/privacy}","received_events_url":"https://api.github.com/users/yareda/received_events","type":"User","site_admin":false},"body":"@dawitd can we follow consistent routing for actions. E.g. to edit we use projects/3/edit so it would be good to follow the same pattern for actions too.\r\nPlease update routing to projects/{id}/archive. Plus to avoid any unwanted archiving of projects, make sure to use POST method rather than GET.","created_at":"2017-05-30T12:09:55Z","updated_at":"2017-05-30T12:12:25Z","html_url":"https://github.com/ndrmc/cats-web/pull/125#discussion_r119080782","pull_request_url":"https://api.github.com/repos/ndrmc/cats-web/pulls/125","_links":{"self":{"href":"https://api.github.com/repos/ndrmc/cats-web/pulls/comments/119080782"},"html":{"href":"https://github.com/ndrmc/cats-web/pull/125#discussion_r119080782"},"pull_request":{"href":"https://api.github.com/repos/ndrmc/cats-web/pulls/125"}}},"pull_request":{"url":"https://api.github.com/repos/ndrmc/cats-web/pulls/125","id":123032090,"html_url":"https://github.com/ndrmc/cats-web/pull/125","diff_url":"https://github.com/ndrmc/cats-web/pull/125.diff","patch_url":"https://github.com/ndrmc/cats-web/pull/125.patch","issue_url":"https://api.github.com/repos/ndrmc/cats-web/issues/125","number":125,"state":"open","locked":false,"title":"Cats 1567","user":{"login":"dawitd","id":4462890,"avatar_url":"https://avatars0.githubusercontent.com/u/4462890?v=3","gravatar_id":"","url":"https://api.github.com/users/dawitd","html_url":"https://github.com/dawitd","followers_url":"https://api.github.com/users/dawitd/followers","following_url":"https://api.github.com/users/dawitd/following{/other_user}","gists_url":"https://api.github.com/users/dawitd/gists{/gist_id}","starred_url":"https://api.github.com/users/dawitd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dawitd/subscriptions","organizations_url":"https://api.github.com/users/dawitd/orgs","repos_url":"https://api.github.com/users/dawitd/repos","events_url":"https://api.github.com/users/dawitd/events{/privacy}","received_events_url":"https://api.github.com/users/dawitd/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-30T11:54:53Z","updated_at":"2017-05-30T12:12:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"787b08c70745e872c70afdd3fb25ba92e8aae25b","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ndrmc/cats-web/pulls/125/commits","review_comments_url":"https://api.github.com/repos/ndrmc/cats-web/pulls/125/comments","review_comment_url":"https://api.github.com/repos/ndrmc/cats-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ndrmc/cats-web/issues/125/comments","statuses_url":"https://api.github.com/repos/ndrmc/cats-web/statuses/e9deff41dde60631ec40e9f1ca394a80b3b08f6f","head":{"label":"ndrmc:CATS-1567","ref":"CATS-1567","sha":"e9deff41dde60631ec40e9f1ca394a80b3b08f6f","user":{"login":"ndrmc","id":16400317,"avatar_url":"https://avatars1.githubusercontent.com/u/16400317?v=3","gravatar_id":"","url":"https://api.github.com/users/ndrmc","html_url":"https://github.com/ndrmc","followers_url":"https://api.github.com/users/ndrmc/followers","following_url":"https://api.github.com/users/ndrmc/following{/other_user}","gists_url":"https://api.github.com/users/ndrmc/gists{/gist_id}","starred_url":"https://api.github.com/users/ndrmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndrmc/subscriptions","organizations_url":"https://api.github.com/users/ndrmc/orgs","repos_url":"https://api.github.com/users/ndrmc/repos","events_url":"https://api.github.com/users/ndrmc/events{/privacy}","received_events_url":"https://api.github.com/users/ndrmc/received_events","type":"Organization","site_admin":false},"repo":{"id":73292070,"name":"cats-web","full_name":"ndrmc/cats-web","owner":{"login":"ndrmc","id":16400317,"avatar_url":"https://avatars1.githubusercontent.com/u/16400317?v=3","gravatar_id":"","url":"https://api.github.com/users/ndrmc","html_url":"https://github.com/ndrmc","followers_url":"https://api.github.com/users/ndrmc/followers","following_url":"https://api.github.com/users/ndrmc/following{/other_user}","gists_url":"https://api.github.com/users/ndrmc/gists{/gist_id}","starred_url":"https://api.github.com/users/ndrmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndrmc/subscriptions","organizations_url":"https://api.github.com/users/ndrmc/orgs","repos_url":"https://api.github.com/users/ndrmc/repos","events_url":"https://api.github.com/users/ndrmc/events{/privacy}","received_events_url":"https://api.github.com/users/ndrmc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ndrmc/cats-web","description":"Commodity tracking system for humanitarian supply chain - vNext","fork":false,"url":"https://api.github.com/repos/ndrmc/cats-web","forks_url":"https://api.github.com/repos/ndrmc/cats-web/forks","keys_url":"https://api.github.com/repos/ndrmc/cats-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndrmc/cats-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndrmc/cats-web/teams","hooks_url":"https://api.github.com/repos/ndrmc/cats-web/hooks","issue_events_url":"https://api.github.com/repos/ndrmc/cats-web/issues/events{/number}","events_url":"https://api.github.com/repos/ndrmc/cats-web/events","assignees_url":"https://api.github.com/repos/ndrmc/cats-web/assignees{/user}","branches_url":"https://api.github.com/repos/ndrmc/cats-web/branches{/branch}","tags_url":"https://api.github.com/repos/ndrmc/cats-web/tags","blobs_url":"https://api.github.com/repos/ndrmc/cats-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndrmc/cats-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndrmc/cats-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndrmc/cats-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndrmc/cats-web/statuses/{sha}","languages_url":"https://api.github.com/repos/ndrmc/cats-web/languages","stargazers_url":"https://api.github.com/repos/ndrmc/cats-web/stargazers","contributors_url":"https://api.github.com/repos/ndrmc/cats-web/contributors","subscribers_url":"https://api.github.com/repos/ndrmc/cats-web/subscribers","subscription_url":"https://api.github.com/repos/ndrmc/cats-web/subscription","commits_url":"https://api.github.com/repos/ndrmc/cats-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndrmc/cats-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndrmc/cats-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndrmc/cats-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndrmc/cats-web/contents/{+path}","compare_url":"https://api.github.com/repos/ndrmc/cats-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndrmc/cats-web/merges","archive_url":"https://api.github.com/repos/ndrmc/cats-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndrmc/cats-web/downloads","issues_url":"https://api.github.com/repos/ndrmc/cats-web/issues{/number}","pulls_url":"https://api.github.com/repos/ndrmc/cats-web/pulls{/number}","milestones_url":"https://api.github.com/repos/ndrmc/cats-web/milestones{/number}","notifications_url":"https://api.github.com/repos/ndrmc/cats-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndrmc/cats-web/labels{/name}","releases_url":"https://api.github.com/repos/ndrmc/cats-web/releases{/id}","deployments_url":"https://api.github.com/repos/ndrmc/cats-web/deployments","created_at":"2016-11-09T14:39:48Z","updated_at":"2017-03-16T12:53:34Z","pushed_at":"2017-05-30T12:11:23Z","git_url":"git://github.com/ndrmc/cats-web.git","ssh_url":"git@github.com:ndrmc/cats-web.git","clone_url":"https://github.com/ndrmc/cats-web.git","svn_url":"https://github.com/ndrmc/cats-web","homepage":"http://cats.dppc.gov.et","size":26406,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"ndrmc:develop","ref":"develop","sha":"afb81902bcf9061276f1061d2a60b266e69b4104","user":{"login":"ndrmc","id":16400317,"avatar_url":"https://avatars1.githubusercontent.com/u/16400317?v=3","gravatar_id":"","url":"https://api.github.com/users/ndrmc","html_url":"https://github.com/ndrmc","followers_url":"https://api.github.com/users/ndrmc/followers","following_url":"https://api.github.com/users/ndrmc/following{/other_user}","gists_url":"https://api.github.com/users/ndrmc/gists{/gist_id}","starred_url":"https://api.github.com/users/ndrmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndrmc/subscriptions","organizations_url":"https://api.github.com/users/ndrmc/orgs","repos_url":"https://api.github.com/users/ndrmc/repos","events_url":"https://api.github.com/users/ndrmc/events{/privacy}","received_events_url":"https://api.github.com/users/ndrmc/received_events","type":"Organization","site_admin":false},"repo":{"id":73292070,"name":"cats-web","full_name":"ndrmc/cats-web","owner":{"login":"ndrmc","id":16400317,"avatar_url":"https://avatars1.githubusercontent.com/u/16400317?v=3","gravatar_id":"","url":"https://api.github.com/users/ndrmc","html_url":"https://github.com/ndrmc","followers_url":"https://api.github.com/users/ndrmc/followers","following_url":"https://api.github.com/users/ndrmc/following{/other_user}","gists_url":"https://api.github.com/users/ndrmc/gists{/gist_id}","starred_url":"https://api.github.com/users/ndrmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndrmc/subscriptions","organizations_url":"https://api.github.com/users/ndrmc/orgs","repos_url":"https://api.github.com/users/ndrmc/repos","events_url":"https://api.github.com/users/ndrmc/events{/privacy}","received_events_url":"https://api.github.com/users/ndrmc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ndrmc/cats-web","description":"Commodity tracking system for humanitarian supply chain - vNext","fork":false,"url":"https://api.github.com/repos/ndrmc/cats-web","forks_url":"https://api.github.com/repos/ndrmc/cats-web/forks","keys_url":"https://api.github.com/repos/ndrmc/cats-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndrmc/cats-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndrmc/cats-web/teams","hooks_url":"https://api.github.com/repos/ndrmc/cats-web/hooks","issue_events_url":"https://api.github.com/repos/ndrmc/cats-web/issues/events{/number}","events_url":"https://api.github.com/repos/ndrmc/cats-web/events","assignees_url":"https://api.github.com/repos/ndrmc/cats-web/assignees{/user}","branches_url":"https://api.github.com/repos/ndrmc/cats-web/branches{/branch}","tags_url":"https://api.github.com/repos/ndrmc/cats-web/tags","blobs_url":"https://api.github.com/repos/ndrmc/cats-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndrmc/cats-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndrmc/cats-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndrmc/cats-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndrmc/cats-web/statuses/{sha}","languages_url":"https://api.github.com/repos/ndrmc/cats-web/languages","stargazers_url":"https://api.github.com/repos/ndrmc/cats-web/stargazers","contributors_url":"https://api.github.com/repos/ndrmc/cats-web/contributors","subscribers_url":"https://api.github.com/repos/ndrmc/cats-web/subscribers","subscription_url":"https://api.github.com/repos/ndrmc/cats-web/subscription","commits_url":"https://api.github.com/repos/ndrmc/cats-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndrmc/cats-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndrmc/cats-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndrmc/cats-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndrmc/cats-web/contents/{+path}","compare_url":"https://api.github.com/repos/ndrmc/cats-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndrmc/cats-web/merges","archive_url":"https://api.github.com/repos/ndrmc/cats-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndrmc/cats-web/downloads","issues_url":"https://api.github.com/repos/ndrmc/cats-web/issues{/number}","pulls_url":"https://api.github.com/repos/ndrmc/cats-web/pulls{/number}","milestones_url":"https://api.github.com/repos/ndrmc/cats-web/milestones{/number}","notifications_url":"https://api.github.com/repos/ndrmc/cats-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndrmc/cats-web/labels{/name}","releases_url":"https://api.github.com/repos/ndrmc/cats-web/releases{/id}","deployments_url":"https://api.github.com/repos/ndrmc/cats-web/deployments","created_at":"2016-11-09T14:39:48Z","updated_at":"2017-03-16T12:53:34Z","pushed_at":"2017-05-30T12:11:23Z","git_url":"git://github.com/ndrmc/cats-web.git","ssh_url":"git@github.com:ndrmc/cats-web.git","clone_url":"https://github.com/ndrmc/cats-web.git","svn_url":"https://github.com/ndrmc/cats-web","homepage":"http://cats.dppc.gov.et","size":26406,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ndrmc/cats-web/pulls/125"},"html":{"href":"https://github.com/ndrmc/cats-web/pull/125"},"issue":{"href":"https://api.github.com/repos/ndrmc/cats-web/issues/125"},"comments":{"href":"https://api.github.com/repos/ndrmc/cats-web/issues/125/comments"},"review_comments":{"href":"https://api.github.com/repos/ndrmc/cats-web/pulls/125/comments"},"review_comment":{"href":"https://api.github.com/repos/ndrmc/cats-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ndrmc/cats-web/pulls/125/commits"},"statuses":{"href":"https://api.github.com/repos/ndrmc/cats-web/statuses/e9deff41dde60631ec40e9f1ca394a80b3b08f6f"}}}}
{"actor":{"display_login":"yareda"}}