{"action":"created","comment":{"url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/comments/93606258","pull_request_review_id":14136914,"id":93606258,"diff_hunk":"@@ -21,6 +22,16 @@ def author_avatar_url\n         author&.avatar&.url || ActionController::Base.helpers.asset_path(\"decidim/default-avatar.svg\")\n       end\n \n+      # Public: Canpeople comment on this proposal?\n+      #\n+      # Until we have a way to store options fore features and its resources we\n+      # assume all proposals can be commented.\n+      #\n+      # Returns Boolean\n+      def commentable?","path":"decidim-proposals/app/models/decidim/proposals/proposal.rb","position":18,"original_position":18,"commit_id":"16ce38efc2d66e907778fddf86501ddd2f0e587a","original_commit_id":"bea16b03a68de1e1862212f9753a2e6e9aad43cb","user":{"login":"beagleknight","id":106021,"avatar_url":"https://avatars.githubusercontent.com/u/106021?v=3","gravatar_id":"","url":"https://api.github.com/users/beagleknight","html_url":"https://github.com/beagleknight","followers_url":"https://api.github.com/users/beagleknight/followers","following_url":"https://api.github.com/users/beagleknight/following{/other_user}","gists_url":"https://api.github.com/users/beagleknight/gists{/gist_id}","starred_url":"https://api.github.com/users/beagleknight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beagleknight/subscriptions","organizations_url":"https://api.github.com/users/beagleknight/orgs","repos_url":"https://api.github.com/users/beagleknight/repos","events_url":"https://api.github.com/users/beagleknight/events{/privacy}","received_events_url":"https://api.github.com/users/beagleknight/received_events","type":"User","site_admin":false},"body":"I just hardcoded the values for `arguable` and `votable` options. We can include them as a extra configuration options in the future so we can call it like this:\r\n\r\n```ruby\r\nif @proposal.commentable?\r\n  comments_for @proposal, arguable: @proposal.arguable_comments?, votable: @proposal.votable_comments?\r\nend\r\n```\r\n\r\nI think we don't need to add this right now.","created_at":"2016-12-22T11:17:50Z","updated_at":"2016-12-22T11:18:21Z","html_url":"https://github.com/AjuntamentdeBarcelona/decidim/pull/388#discussion_r93606258","pull_request_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/388","_links":{"self":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/comments/93606258"},"html":{"href":"https://github.com/AjuntamentdeBarcelona/decidim/pull/388#discussion_r93606258"},"pull_request":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/388"}}},"pull_request":{"url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/388","id":98730533,"html_url":"https://github.com/AjuntamentdeBarcelona/decidim/pull/388","diff_url":"https://github.com/AjuntamentdeBarcelona/decidim/pull/388.diff","patch_url":"https://github.com/AjuntamentdeBarcelona/decidim/pull/388.patch","issue_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues/388","number":388,"state":"closed","locked":false,"title":"Add comments to proposals","user":{"login":"oriolgual","id":5254,"avatar_url":"https://avatars.githubusercontent.com/u/5254?v=3","gravatar_id":"","url":"https://api.github.com/users/oriolgual","html_url":"https://github.com/oriolgual","followers_url":"https://api.github.com/users/oriolgual/followers","following_url":"https://api.github.com/users/oriolgual/following{/other_user}","gists_url":"https://api.github.com/users/oriolgual/gists{/gist_id}","starred_url":"https://api.github.com/users/oriolgual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oriolgual/subscriptions","organizations_url":"https://api.github.com/users/oriolgual/orgs","repos_url":"https://api.github.com/users/oriolgual/repos","events_url":"https://api.github.com/users/oriolgual/events{/privacy}","received_events_url":"https://api.github.com/users/oriolgual/received_events","type":"User","site_admin":false},"body":"#### :tophat: What? Why?\r\n\r\n- Implements #377\r\n\r\nUntil we have an option to configure when to enable comments, all proposals can be commented.\r\n\r\n### :camera: Screenshots (optional)\r\n![Description](https://i.imgur.com/dhxfKie.png)\r\n\r\n#### :ghost: GIF\r\n![](https://i.imgur.com/aRQDfLs.gif)\r\n","created_at":"2016-12-20T11:21:49Z","updated_at":"2016-12-22T11:18:21Z","closed_at":"2016-12-20T15:52:52Z","merged_at":"2016-12-20T15:52:52Z","merge_commit_sha":"6106ae0184c07cba66bad5d7c83c0770723976bb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/388/commits","review_comments_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/388/comments","review_comment_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues/388/comments","statuses_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/statuses/16ce38efc2d66e907778fddf86501ddd2f0e587a","head":{"label":"AjuntamentdeBarcelona:feature/add_comments_to_proposals","ref":"feature/add_comments_to_proposals","sha":"16ce38efc2d66e907778fddf86501ddd2f0e587a","user":{"login":"AjuntamentdeBarcelona","id":16301934,"avatar_url":"https://avatars.githubusercontent.com/u/16301934?v=3","gravatar_id":"","url":"https://api.github.com/users/AjuntamentdeBarcelona","html_url":"https://github.com/AjuntamentdeBarcelona","followers_url":"https://api.github.com/users/AjuntamentdeBarcelona/followers","following_url":"https://api.github.com/users/AjuntamentdeBarcelona/following{/other_user}","gists_url":"https://api.github.com/users/AjuntamentdeBarcelona/gists{/gist_id}","starred_url":"https://api.github.com/users/AjuntamentdeBarcelona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AjuntamentdeBarcelona/subscriptions","organizations_url":"https://api.github.com/users/AjuntamentdeBarcelona/orgs","repos_url":"https://api.github.com/users/AjuntamentdeBarcelona/repos","events_url":"https://api.github.com/users/AjuntamentdeBarcelona/events{/privacy}","received_events_url":"https://api.github.com/users/AjuntamentdeBarcelona/received_events","type":"Organization","site_admin":false},"repo":{"id":65914086,"name":"decidim","full_name":"AjuntamentdeBarcelona/decidim","owner":{"login":"AjuntamentdeBarcelona","id":16301934,"avatar_url":"https://avatars.githubusercontent.com/u/16301934?v=3","gravatar_id":"","url":"https://api.github.com/users/AjuntamentdeBarcelona","html_url":"https://github.com/AjuntamentdeBarcelona","followers_url":"https://api.github.com/users/AjuntamentdeBarcelona/followers","following_url":"https://api.github.com/users/AjuntamentdeBarcelona/following{/other_user}","gists_url":"https://api.github.com/users/AjuntamentdeBarcelona/gists{/gist_id}","starred_url":"https://api.github.com/users/AjuntamentdeBarcelona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AjuntamentdeBarcelona/subscriptions","organizations_url":"https://api.github.com/users/AjuntamentdeBarcelona/orgs","repos_url":"https://api.github.com/users/AjuntamentdeBarcelona/repos","events_url":"https://api.github.com/users/AjuntamentdeBarcelona/events{/privacy}","received_events_url":"https://api.github.com/users/AjuntamentdeBarcelona/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AjuntamentdeBarcelona/decidim","description":"The participatory democracy framework","fork":false,"url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim","forks_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/forks","keys_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/teams","hooks_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/hooks","issue_events_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues/events{/number}","events_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/events","assignees_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/assignees{/user}","branches_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/branches{/branch}","tags_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/tags","blobs_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/refs{/sha}","trees_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/statuses/{sha}","languages_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/languages","stargazers_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/stargazers","contributors_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/contributors","subscribers_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/subscribers","subscription_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/subscription","commits_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/commits{/sha}","git_commits_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/commits{/sha}","comments_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/comments{/number}","issue_comment_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues/comments{/number}","contents_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/contents/{+path}","compare_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/merges","archive_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/downloads","issues_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues{/number}","pulls_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls{/number}","milestones_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/milestones{/number}","notifications_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/labels{/name}","releases_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/releases{/id}","deployments_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/deployments","created_at":"2016-08-17T14:27:06Z","updated_at":"2016-12-22T08:32:48Z","pushed_at":"2016-12-22T10:59:08Z","git_url":"git://github.com/AjuntamentdeBarcelona/decidim.git","ssh_url":"git@github.com:AjuntamentdeBarcelona/decidim.git","clone_url":"https://github.com/AjuntamentdeBarcelona/decidim.git","svn_url":"https://github.com/AjuntamentdeBarcelona/decidim","homepage":"","size":4710,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":57,"forks":4,"open_issues":57,"watchers":10,"default_branch":"master"}},"base":{"label":"AjuntamentdeBarcelona:master","ref":"master","sha":"a59578f060dee12d3c1bd825b5e1a5434fd7acf0","user":{"login":"AjuntamentdeBarcelona","id":16301934,"avatar_url":"https://avatars.githubusercontent.com/u/16301934?v=3","gravatar_id":"","url":"https://api.github.com/users/AjuntamentdeBarcelona","html_url":"https://github.com/AjuntamentdeBarcelona","followers_url":"https://api.github.com/users/AjuntamentdeBarcelona/followers","following_url":"https://api.github.com/users/AjuntamentdeBarcelona/following{/other_user}","gists_url":"https://api.github.com/users/AjuntamentdeBarcelona/gists{/gist_id}","starred_url":"https://api.github.com/users/AjuntamentdeBarcelona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AjuntamentdeBarcelona/subscriptions","organizations_url":"https://api.github.com/users/AjuntamentdeBarcelona/orgs","repos_url":"https://api.github.com/users/AjuntamentdeBarcelona/repos","events_url":"https://api.github.com/users/AjuntamentdeBarcelona/events{/privacy}","received_events_url":"https://api.github.com/users/AjuntamentdeBarcelona/received_events","type":"Organization","site_admin":false},"repo":{"id":65914086,"name":"decidim","full_name":"AjuntamentdeBarcelona/decidim","owner":{"login":"AjuntamentdeBarcelona","id":16301934,"avatar_url":"https://avatars.githubusercontent.com/u/16301934?v=3","gravatar_id":"","url":"https://api.github.com/users/AjuntamentdeBarcelona","html_url":"https://github.com/AjuntamentdeBarcelona","followers_url":"https://api.github.com/users/AjuntamentdeBarcelona/followers","following_url":"https://api.github.com/users/AjuntamentdeBarcelona/following{/other_user}","gists_url":"https://api.github.com/users/AjuntamentdeBarcelona/gists{/gist_id}","starred_url":"https://api.github.com/users/AjuntamentdeBarcelona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AjuntamentdeBarcelona/subscriptions","organizations_url":"https://api.github.com/users/AjuntamentdeBarcelona/orgs","repos_url":"https://api.github.com/users/AjuntamentdeBarcelona/repos","events_url":"https://api.github.com/users/AjuntamentdeBarcelona/events{/privacy}","received_events_url":"https://api.github.com/users/AjuntamentdeBarcelona/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AjuntamentdeBarcelona/decidim","description":"The participatory democracy framework","fork":false,"url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim","forks_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/forks","keys_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/teams","hooks_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/hooks","issue_events_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues/events{/number}","events_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/events","assignees_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/assignees{/user}","branches_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/branches{/branch}","tags_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/tags","blobs_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/refs{/sha}","trees_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/statuses/{sha}","languages_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/languages","stargazers_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/stargazers","contributors_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/contributors","subscribers_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/subscribers","subscription_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/subscription","commits_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/commits{/sha}","git_commits_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/git/commits{/sha}","comments_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/comments{/number}","issue_comment_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues/comments{/number}","contents_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/contents/{+path}","compare_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/merges","archive_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/downloads","issues_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues{/number}","pulls_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls{/number}","milestones_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/milestones{/number}","notifications_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/labels{/name}","releases_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/releases{/id}","deployments_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/deployments","created_at":"2016-08-17T14:27:06Z","updated_at":"2016-12-22T08:32:48Z","pushed_at":"2016-12-22T10:59:08Z","git_url":"git://github.com/AjuntamentdeBarcelona/decidim.git","ssh_url":"git@github.com:AjuntamentdeBarcelona/decidim.git","clone_url":"https://github.com/AjuntamentdeBarcelona/decidim.git","svn_url":"https://github.com/AjuntamentdeBarcelona/decidim","homepage":"","size":4710,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":57,"forks":4,"open_issues":57,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/388"},"html":{"href":"https://github.com/AjuntamentdeBarcelona/decidim/pull/388"},"issue":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues/388"},"comments":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/issues/388/comments"},"review_comments":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/388/comments"},"review_comment":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/pulls/388/commits"},"statuses":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim/statuses/16ce38efc2d66e907778fddf86501ddd2f0e587a"}}}}
{"actor":{"display_login":"beagleknight"}}