{"action":"created","comment":{"url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/pulls/comments/79131221","id":79131221,"diff_hunk":"@@ -66,7 +66,13 @@ def comment_on(commentable, user = nil)\n     user ||= create(:user)\n \n     login_as(user)\n-    commentable_path = commentable.is_a?(Proposal) ? proposal_path(commentable) : debate_path(commentable)\n+\n+    commentable_path = if commentable.is_a?(Proposal)\n+      proposal_path(commentable, participatory_process_id: commentable.participatory_process.slug)","path":"spec/support/common_actions.rb","position":7,"original_position":7,"commit_id":"49a6e5e468b36fb2d92a271069c6cb32083d1659","original_commit_id":"49a6e5e468b36fb2d92a271069c6cb32083d1659","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Use 2 (not -17) spaces for indentation.<br>Line is too long. [98/80]","created_at":"2016-09-16T09:02:55Z","updated_at":"2016-09-16T09:02:55Z","html_url":"https://github.com/AjuntamentdeBarcelona/decidim.barcelona/pull/434#discussion_r79131221","pull_request_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/pulls/434","_links":{"self":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/pulls/comments/79131221"},"html":{"href":"https://github.com/AjuntamentdeBarcelona/decidim.barcelona/pull/434#discussion_r79131221"},"pull_request":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/pulls/434"}}},"pull_request":{"url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/pulls/434","id":74071655,"html_url":"https://github.com/AjuntamentdeBarcelona/decidim.barcelona/pull/434","diff_url":"https://github.com/AjuntamentdeBarcelona/decidim.barcelona/pull/434.diff","patch_url":"https://github.com/AjuntamentdeBarcelona/decidim.barcelona/pull/434.patch","issue_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/issues/434","number":434,"state":"open","locked":false,"title":"Add Participatory Process","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":"# What and why\r\n\r\nThis PR should be merged after #426.\r\n\r\nThe following models have been scoped by a participatory process:\r\n\r\n- Proposal\r\n- Action Plan\r\n- Meeting\r\n- Debate\r\n- Category\r\n- Subcategory\r\n\r\n It means all urls have been rewrited like this:\r\n`/proposals/:Id` is now `/:participatoryProcessId/proposals/:id`\r\n\r\nBy default the application will use the first `ParticipatoryProcess` created. The administrators can manage those participatory processes and create new ones.\r\n\r\nThe following API endpoints include a param called `participatory_process_id` to scope the query:\r\n\r\n- `/api/proposals.json`\r\n- `/api/action_plans.json`\r\n- `/api/categories.json`\r\n- `/api/subcategories.json`\r\n- `/api/meetings.json`\r\n\r\n# GIF Tax\r\n\r\n![](https://media.giphy.com/media/QKFrBz4cLs6IM/giphy.gif)\r\n","created_at":"2016-06-16T12:28:20Z","updated_at":"2016-09-16T09:02:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28e5cd0fd5f936323a7900294e89dce269945dcf","assignee":{"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},"assignees":[{"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}],"milestone":null,"commits_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/pulls/434/commits","review_comments_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/pulls/434/comments","review_comment_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/issues/434/comments","statuses_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/statuses/49a6e5e468b36fb2d92a271069c6cb32083d1659","head":{"label":"AjuntamentdeBarcelona:processes-step-2","ref":"processes-step-2","sha":"49a6e5e468b36fb2d92a271069c6cb32083d1659","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":46973605,"name":"decidim.barcelona","full_name":"AjuntamentdeBarcelona/decidim.barcelona","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.barcelona","description":"Decidim Barcelona - Direct and participatory democracy web platform","fork":false,"url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona","forks_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/forks","keys_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/teams","hooks_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/hooks","issue_events_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/issues/events{/number}","events_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/events","assignees_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/assignees{/user}","branches_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/branches{/branch}","tags_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/tags","blobs_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/git/refs{/sha}","trees_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/statuses/{sha}","languages_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/languages","stargazers_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/stargazers","contributors_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/contributors","subscribers_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/subscribers","subscription_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/subscription","commits_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/commits{/sha}","git_commits_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/git/commits{/sha}","comments_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/comments{/number}","issue_comment_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/issues/comments{/number}","contents_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/contents/{+path}","compare_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/merges","archive_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/downloads","issues_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/issues{/number}","pulls_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/pulls{/number}","milestones_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/milestones{/number}","notifications_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/labels{/name}","releases_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/releases{/id}","deployments_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/deployments","created_at":"2015-11-27T10:12:02Z","updated_at":"2016-08-03T09:42:35Z","pushed_at":"2016-09-16T09:02:10Z","git_url":"git://github.com/AjuntamentdeBarcelona/decidim.barcelona.git","ssh_url":"git@github.com:AjuntamentdeBarcelona/decidim.barcelona.git","clone_url":"https://github.com/AjuntamentdeBarcelona/decidim.barcelona.git","svn_url":"https://github.com/AjuntamentdeBarcelona/decidim.barcelona","homepage":"","size":31249,"stargazers_count":31,"watchers_count":31,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":19,"forks":8,"open_issues":19,"watchers":31,"default_branch":"master"}},"base":{"label":"AjuntamentdeBarcelona:master","ref":"master","sha":"83a2fbb487a57153cb55d9da9644046abb2cd94a","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":46973605,"name":"decidim.barcelona","full_name":"AjuntamentdeBarcelona/decidim.barcelona","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.barcelona","description":"Decidim Barcelona - Direct and participatory democracy web platform","fork":false,"url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona","forks_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/forks","keys_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/teams","hooks_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/hooks","issue_events_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/issues/events{/number}","events_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/events","assignees_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/assignees{/user}","branches_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/branches{/branch}","tags_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/tags","blobs_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/git/refs{/sha}","trees_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/statuses/{sha}","languages_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/languages","stargazers_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/stargazers","contributors_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/contributors","subscribers_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/subscribers","subscription_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/subscription","commits_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/commits{/sha}","git_commits_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/git/commits{/sha}","comments_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/comments{/number}","issue_comment_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/issues/comments{/number}","contents_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/contents/{+path}","compare_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/merges","archive_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/downloads","issues_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/issues{/number}","pulls_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/pulls{/number}","milestones_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/milestones{/number}","notifications_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/labels{/name}","releases_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/releases{/id}","deployments_url":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/deployments","created_at":"2015-11-27T10:12:02Z","updated_at":"2016-08-03T09:42:35Z","pushed_at":"2016-09-16T09:02:10Z","git_url":"git://github.com/AjuntamentdeBarcelona/decidim.barcelona.git","ssh_url":"git@github.com:AjuntamentdeBarcelona/decidim.barcelona.git","clone_url":"https://github.com/AjuntamentdeBarcelona/decidim.barcelona.git","svn_url":"https://github.com/AjuntamentdeBarcelona/decidim.barcelona","homepage":"","size":31249,"stargazers_count":31,"watchers_count":31,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":19,"forks":8,"open_issues":19,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/pulls/434"},"html":{"href":"https://github.com/AjuntamentdeBarcelona/decidim.barcelona/pull/434"},"issue":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/issues/434"},"comments":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/issues/434/comments"},"review_comments":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/pulls/434/comments"},"review_comment":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/pulls/434/commits"},"statuses":{"href":"https://api.github.com/repos/AjuntamentdeBarcelona/decidim.barcelona/statuses/49a6e5e468b36fb2d92a271069c6cb32083d1659"}}}}
{"actor":{"display_login":"houndci-bot"}}