{"action":"created","comment":{"url":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/comments/98022984","pull_request_review_id":18651503,"id":98022984,"diff_hunk":"@@ -0,0 +1,74 @@\n+<?php\n+\n+namespace AppBundle\\Form;\n+\n+use AppBundle\\Entity\\Committee;\n+use AppBundle\\Entity\\CommitteeMembership;\n+use Doctrine\\ORM\\EntityManager;\n+use Symfony\\Component\\Form\\AbstractType;\n+use Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType;\n+use Symfony\\Component\\Form\\FormBuilderInterface;\n+use Symfony\\Component\\Form\\FormInterface;\n+use Symfony\\Component\\Form\\FormView;\n+\n+class MembershipChooseNearbyCommitteeType extends AbstractType\n+{\n+    private $choices;\n+    private $memberships;\n+    private $slugs;\n+\n+    /**\n+     * @param EntityManager $em\n+     */\n+    public function __construct(EntityManager $em)\n+    {\n+        $committees = $em->getRepository(Committee::class)->findBy([], ['id' => 'desc'], 3);\n+\n+        foreach ($committees as $committee) {","path":"src/AppBundle/Form/MembershipChooseNearbyCommitteeType.php","position":27,"original_position":27,"commit_id":"04c73e2164affb9f77d4c592cda3a50c56e65696","original_commit_id":"04c73e2164affb9f77d4c592cda3a50c56e65696","user":{"login":"hhamon","id":235550,"avatar_url":"https://avatars.githubusercontent.com/u/235550?v=3","gravatar_id":"","url":"https://api.github.com/users/hhamon","html_url":"https://github.com/hhamon","followers_url":"https://api.github.com/users/hhamon/followers","following_url":"https://api.github.com/users/hhamon/following{/other_user}","gists_url":"https://api.github.com/users/hhamon/gists{/gist_id}","starred_url":"https://api.github.com/users/hhamon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhamon/subscriptions","organizations_url":"https://api.github.com/users/hhamon/orgs","repos_url":"https://api.github.com/users/hhamon/repos","events_url":"https://api.github.com/users/hhamon/events{/privacy}","received_events_url":"https://api.github.com/users/hhamon/received_events","type":"User","site_admin":false},"body":"The following lines must be performed by the custom repository method.","created_at":"2017-01-26T15:52:13Z","updated_at":"2017-01-26T15:56:26Z","html_url":"https://github.com/EnMarche/en-marche.fr/pull/121#discussion_r98022984","pull_request_url":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/121","_links":{"self":{"href":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/comments/98022984"},"html":{"href":"https://github.com/EnMarche/en-marche.fr/pull/121#discussion_r98022984"},"pull_request":{"href":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/121"}}},"pull_request":{"url":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/121","id":102893674,"html_url":"https://github.com/EnMarche/en-marche.fr/pull/121","diff_url":"https://github.com/EnMarche/en-marche.fr/pull/121.diff","patch_url":"https://github.com/EnMarche/en-marche.fr/pull/121.patch","issue_url":"https://api.github.com/repos/EnMarche/en-marche.fr/issues/121","number":121,"state":"open","locked":false,"title":"Implements the form of the pin committees action","user":{"login":"romain-pierre","id":20155356,"avatar_url":"https://avatars.githubusercontent.com/u/20155356?v=3","gravatar_id":"","url":"https://api.github.com/users/romain-pierre","html_url":"https://github.com/romain-pierre","followers_url":"https://api.github.com/users/romain-pierre/followers","following_url":"https://api.github.com/users/romain-pierre/following{/other_user}","gists_url":"https://api.github.com/users/romain-pierre/gists{/gist_id}","starred_url":"https://api.github.com/users/romain-pierre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romain-pierre/subscriptions","organizations_url":"https://api.github.com/users/romain-pierre/orgs","repos_url":"https://api.github.com/users/romain-pierre/repos","events_url":"https://api.github.com/users/romain-pierre/events{/privacy}","received_events_url":"https://api.github.com/users/romain-pierre/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-01-24T10:49:26Z","updated_at":"2017-01-26T15:56:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"649f5d7ffa95d9bb719e3ae3b23e945580a9e7b7","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/EnMarche/en-marche.fr/milestones/4","html_url":"https://github.com/EnMarche/en-marche.fr/milestone/4","labels_url":"https://api.github.com/repos/EnMarche/en-marche.fr/milestones/4/labels","id":2275090,"number":4,"title":"sprint-3","description":null,"creator":{"login":"hhamon","id":235550,"avatar_url":"https://avatars.githubusercontent.com/u/235550?v=3","gravatar_id":"","url":"https://api.github.com/users/hhamon","html_url":"https://github.com/hhamon","followers_url":"https://api.github.com/users/hhamon/followers","following_url":"https://api.github.com/users/hhamon/following{/other_user}","gists_url":"https://api.github.com/users/hhamon/gists{/gist_id}","starred_url":"https://api.github.com/users/hhamon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhamon/subscriptions","organizations_url":"https://api.github.com/users/hhamon/orgs","repos_url":"https://api.github.com/users/hhamon/repos","events_url":"https://api.github.com/users/hhamon/events{/privacy}","received_events_url":"https://api.github.com/users/hhamon/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":4,"state":"open","created_at":"2017-01-24T17:08:14Z","updated_at":"2017-01-26T14:56:26Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/121/commits","review_comments_url":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/121/comments","review_comment_url":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EnMarche/en-marche.fr/issues/121/comments","statuses_url":"https://api.github.com/repos/EnMarche/en-marche.fr/statuses/04c73e2164affb9f77d4c592cda3a50c56e65696","head":{"label":"EnMarche:feat/pin-committees","ref":"feat/pin-committees","sha":"04c73e2164affb9f77d4c592cda3a50c56e65696","user":{"login":"EnMarche","id":24521375,"avatar_url":"https://avatars.githubusercontent.com/u/24521375?v=3","gravatar_id":"","url":"https://api.github.com/users/EnMarche","html_url":"https://github.com/EnMarche","followers_url":"https://api.github.com/users/EnMarche/followers","following_url":"https://api.github.com/users/EnMarche/following{/other_user}","gists_url":"https://api.github.com/users/EnMarche/gists{/gist_id}","starred_url":"https://api.github.com/users/EnMarche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnMarche/subscriptions","organizations_url":"https://api.github.com/users/EnMarche/orgs","repos_url":"https://api.github.com/users/EnMarche/repos","events_url":"https://api.github.com/users/EnMarche/events{/privacy}","received_events_url":"https://api.github.com/users/EnMarche/received_events","type":"Organization","site_admin":false},"repo":{"id":76485630,"name":"en-marche.fr","full_name":"EnMarche/en-marche.fr","owner":{"login":"EnMarche","id":24521375,"avatar_url":"https://avatars.githubusercontent.com/u/24521375?v=3","gravatar_id":"","url":"https://api.github.com/users/EnMarche","html_url":"https://github.com/EnMarche","followers_url":"https://api.github.com/users/EnMarche/followers","following_url":"https://api.github.com/users/EnMarche/following{/other_user}","gists_url":"https://api.github.com/users/EnMarche/gists{/gist_id}","starred_url":"https://api.github.com/users/EnMarche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnMarche/subscriptions","organizations_url":"https://api.github.com/users/EnMarche/orgs","repos_url":"https://api.github.com/users/EnMarche/repos","events_url":"https://api.github.com/users/EnMarche/events{/privacy}","received_events_url":"https://api.github.com/users/EnMarche/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EnMarche/en-marche.fr","description":"La plateforme citoyenne d'En Marche ! ","fork":false,"url":"https://api.github.com/repos/EnMarche/en-marche.fr","forks_url":"https://api.github.com/repos/EnMarche/en-marche.fr/forks","keys_url":"https://api.github.com/repos/EnMarche/en-marche.fr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EnMarche/en-marche.fr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EnMarche/en-marche.fr/teams","hooks_url":"https://api.github.com/repos/EnMarche/en-marche.fr/hooks","issue_events_url":"https://api.github.com/repos/EnMarche/en-marche.fr/issues/events{/number}","events_url":"https://api.github.com/repos/EnMarche/en-marche.fr/events","assignees_url":"https://api.github.com/repos/EnMarche/en-marche.fr/assignees{/user}","branches_url":"https://api.github.com/repos/EnMarche/en-marche.fr/branches{/branch}","tags_url":"https://api.github.com/repos/EnMarche/en-marche.fr/tags","blobs_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/refs{/sha}","trees_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EnMarche/en-marche.fr/statuses/{sha}","languages_url":"https://api.github.com/repos/EnMarche/en-marche.fr/languages","stargazers_url":"https://api.github.com/repos/EnMarche/en-marche.fr/stargazers","contributors_url":"https://api.github.com/repos/EnMarche/en-marche.fr/contributors","subscribers_url":"https://api.github.com/repos/EnMarche/en-marche.fr/subscribers","subscription_url":"https://api.github.com/repos/EnMarche/en-marche.fr/subscription","commits_url":"https://api.github.com/repos/EnMarche/en-marche.fr/commits{/sha}","git_commits_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/commits{/sha}","comments_url":"https://api.github.com/repos/EnMarche/en-marche.fr/comments{/number}","issue_comment_url":"https://api.github.com/repos/EnMarche/en-marche.fr/issues/comments{/number}","contents_url":"https://api.github.com/repos/EnMarche/en-marche.fr/contents/{+path}","compare_url":"https://api.github.com/repos/EnMarche/en-marche.fr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EnMarche/en-marche.fr/merges","archive_url":"https://api.github.com/repos/EnMarche/en-marche.fr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EnMarche/en-marche.fr/downloads","issues_url":"https://api.github.com/repos/EnMarche/en-marche.fr/issues{/number}","pulls_url":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls{/number}","milestones_url":"https://api.github.com/repos/EnMarche/en-marche.fr/milestones{/number}","notifications_url":"https://api.github.com/repos/EnMarche/en-marche.fr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EnMarche/en-marche.fr/labels{/name}","releases_url":"https://api.github.com/repos/EnMarche/en-marche.fr/releases{/id}","deployments_url":"https://api.github.com/repos/EnMarche/en-marche.fr/deployments","created_at":"2016-12-14T18:22:36Z","updated_at":"2017-01-14T19:04:10Z","pushed_at":"2017-01-26T15:45:59Z","git_url":"git://github.com/EnMarche/en-marche.fr.git","ssh_url":"git@github.com:EnMarche/en-marche.fr.git","clone_url":"https://github.com/EnMarche/en-marche.fr.git","svn_url":"https://github.com/EnMarche/en-marche.fr","homepage":"https://en-marche.fr","size":17278,"stargazers_count":15,"watchers_count":15,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":21,"forks":10,"open_issues":21,"watchers":15,"default_branch":"master"}},"base":{"label":"EnMarche:master","ref":"master","sha":"edd035c5b8cd96570297c7a76141ebae8a5f7513","user":{"login":"EnMarche","id":24521375,"avatar_url":"https://avatars.githubusercontent.com/u/24521375?v=3","gravatar_id":"","url":"https://api.github.com/users/EnMarche","html_url":"https://github.com/EnMarche","followers_url":"https://api.github.com/users/EnMarche/followers","following_url":"https://api.github.com/users/EnMarche/following{/other_user}","gists_url":"https://api.github.com/users/EnMarche/gists{/gist_id}","starred_url":"https://api.github.com/users/EnMarche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnMarche/subscriptions","organizations_url":"https://api.github.com/users/EnMarche/orgs","repos_url":"https://api.github.com/users/EnMarche/repos","events_url":"https://api.github.com/users/EnMarche/events{/privacy}","received_events_url":"https://api.github.com/users/EnMarche/received_events","type":"Organization","site_admin":false},"repo":{"id":76485630,"name":"en-marche.fr","full_name":"EnMarche/en-marche.fr","owner":{"login":"EnMarche","id":24521375,"avatar_url":"https://avatars.githubusercontent.com/u/24521375?v=3","gravatar_id":"","url":"https://api.github.com/users/EnMarche","html_url":"https://github.com/EnMarche","followers_url":"https://api.github.com/users/EnMarche/followers","following_url":"https://api.github.com/users/EnMarche/following{/other_user}","gists_url":"https://api.github.com/users/EnMarche/gists{/gist_id}","starred_url":"https://api.github.com/users/EnMarche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnMarche/subscriptions","organizations_url":"https://api.github.com/users/EnMarche/orgs","repos_url":"https://api.github.com/users/EnMarche/repos","events_url":"https://api.github.com/users/EnMarche/events{/privacy}","received_events_url":"https://api.github.com/users/EnMarche/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EnMarche/en-marche.fr","description":"La plateforme citoyenne d'En Marche ! ","fork":false,"url":"https://api.github.com/repos/EnMarche/en-marche.fr","forks_url":"https://api.github.com/repos/EnMarche/en-marche.fr/forks","keys_url":"https://api.github.com/repos/EnMarche/en-marche.fr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EnMarche/en-marche.fr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EnMarche/en-marche.fr/teams","hooks_url":"https://api.github.com/repos/EnMarche/en-marche.fr/hooks","issue_events_url":"https://api.github.com/repos/EnMarche/en-marche.fr/issues/events{/number}","events_url":"https://api.github.com/repos/EnMarche/en-marche.fr/events","assignees_url":"https://api.github.com/repos/EnMarche/en-marche.fr/assignees{/user}","branches_url":"https://api.github.com/repos/EnMarche/en-marche.fr/branches{/branch}","tags_url":"https://api.github.com/repos/EnMarche/en-marche.fr/tags","blobs_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/refs{/sha}","trees_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EnMarche/en-marche.fr/statuses/{sha}","languages_url":"https://api.github.com/repos/EnMarche/en-marche.fr/languages","stargazers_url":"https://api.github.com/repos/EnMarche/en-marche.fr/stargazers","contributors_url":"https://api.github.com/repos/EnMarche/en-marche.fr/contributors","subscribers_url":"https://api.github.com/repos/EnMarche/en-marche.fr/subscribers","subscription_url":"https://api.github.com/repos/EnMarche/en-marche.fr/subscription","commits_url":"https://api.github.com/repos/EnMarche/en-marche.fr/commits{/sha}","git_commits_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/commits{/sha}","comments_url":"https://api.github.com/repos/EnMarche/en-marche.fr/comments{/number}","issue_comment_url":"https://api.github.com/repos/EnMarche/en-marche.fr/issues/comments{/number}","contents_url":"https://api.github.com/repos/EnMarche/en-marche.fr/contents/{+path}","compare_url":"https://api.github.com/repos/EnMarche/en-marche.fr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EnMarche/en-marche.fr/merges","archive_url":"https://api.github.com/repos/EnMarche/en-marche.fr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EnMarche/en-marche.fr/downloads","issues_url":"https://api.github.com/repos/EnMarche/en-marche.fr/issues{/number}","pulls_url":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls{/number}","milestones_url":"https://api.github.com/repos/EnMarche/en-marche.fr/milestones{/number}","notifications_url":"https://api.github.com/repos/EnMarche/en-marche.fr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EnMarche/en-marche.fr/labels{/name}","releases_url":"https://api.github.com/repos/EnMarche/en-marche.fr/releases{/id}","deployments_url":"https://api.github.com/repos/EnMarche/en-marche.fr/deployments","created_at":"2016-12-14T18:22:36Z","updated_at":"2017-01-14T19:04:10Z","pushed_at":"2017-01-26T15:45:59Z","git_url":"git://github.com/EnMarche/en-marche.fr.git","ssh_url":"git@github.com:EnMarche/en-marche.fr.git","clone_url":"https://github.com/EnMarche/en-marche.fr.git","svn_url":"https://github.com/EnMarche/en-marche.fr","homepage":"https://en-marche.fr","size":17278,"stargazers_count":15,"watchers_count":15,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":21,"forks":10,"open_issues":21,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/121"},"html":{"href":"https://github.com/EnMarche/en-marche.fr/pull/121"},"issue":{"href":"https://api.github.com/repos/EnMarche/en-marche.fr/issues/121"},"comments":{"href":"https://api.github.com/repos/EnMarche/en-marche.fr/issues/121/comments"},"review_comments":{"href":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/121/comments"},"review_comment":{"href":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/121/commits"},"statuses":{"href":"https://api.github.com/repos/EnMarche/en-marche.fr/statuses/04c73e2164affb9f77d4c592cda3a50c56e65696"}}}}
{"actor":{"display_login":"hhamon"}}