payload: {"action":"created","comment":{"url":"https://api.github.com/repos/betagouv/aplus/pulls/comments/345924705","pull_request_review_id":316458936,"id":345924705,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM0NTkyNDcwNQ==","diff_hunk":"@@ -0,0 +1,98 @@\n+\n+var Group = {\n+    areas: [],\n+    addArea: function (element) {\n+        Group.areas.push(element);\n+        Group.displayArea(element);\n+    },\n+    remove: function(code) {\n+        for (var i = 0; i < Group.areas.length; i++) {\n+            if (Group.areas[i].code === code) {\n+                Group.areas.splice(i, 1); \n+            }\n+        }\n+        while (Group.container.firstChild) {\n+            Group.container.removeChild(Group.container.firstChild);\n+        }\n+        Group.display();\n+    },\n+    display: function () {\n+        Group.areas.forEach(function (e) {\n+            Group.displayArea(e);\n+        });\n+    },\n+    displayArea: function (element) {\n+        var label = document.createElement(\"label\");\n+        label.textContent = element.name;\n+        var closeButton = document.createElement(\"input\");\n+        closeButton.setAttribute(\"type\", \"button\");\n+        closeButton.name=element.code\n+        closeButton.value = \"X\";\n+        closeButton.addEventListener(\"click\", function (event) {\n+            Group.remove(element.code);\n+        });\n+        var input = document.createElement(\"input\");\n+        input.setAttribute(\"class\", \"mdl-textfield__input area\");\n+        input.setAttribute(\"type\", \"hidden\");\n+        input.setAttribute(\"name\", \"insee-code[]\");\n+        input.setAttribute(\"id\", \"insee-code-label-\"+element.code);\n+        input.setAttribute(\"value\", element.code);\n+        input.setAttribute(\"readonly\", \"\");\n+        var li = document.createElement(\"li\");\n+        li.appendChild(label);\n+        li.appendChild(closeButton);\n+        li.appendChild(input);\n+        Group.container.appendChild(li);\n+        Group.input.value = \"\";\n+    },\n+    init: function(data) {\n+        var iterable = JSON.parse(data);\n+        if (iterable) {\n+            iterable.forEach(function (e) {\n+                Group.addArea(e);\n+            });\n+        }\n+    },\n+    container: null,\n+    input: null\n+};\n+\n+window.document.addEventListener(\"DOMContentLoaded\", function (event) {\n+    \"use strict\";\n+    Group.container = document.getElementById(\"group-area-container\");\n+    Group.input = document.getElementById(\"insee-code\");\n+    Group.init(Group.input.getAttribute(\"data-lang\"));\n+\n+    // initialize\n+    var my_autoComplete = new autoComplete({\n+        selector: \"input[id=\\\"insee-code\\\"]\",\n+        minChars: 2,\n+        source: function(term, response) {\n+            function reqListener() {\n+                var results = JSON.parse(this.response);\n+                var newarray = results.map(myFunction)\n+                function myFunction(i) {\n+                    return [ i.name, i.code, i.type ];\n+                }\n+                response(newarray);\n+            }\n+            var oReq = new XMLHttpRequest();\n+            oReq.addEventListener(\"load\", reqListener);\n+            var url = \"https://joplus.herokuapp.com/search/?query=\"+term\n+            oReq.open(\"GET\", url);\n+            oReq.send();\n+        }, renderItem: function (item, search) {","path":"public/javascripts/group-autocomplete.js","position":84,"original_position":84,"commit_id":"42d9bcbb42164b4996f761c2656405f55b48d7b1","original_commit_id":"42d9bcbb42164b4996f761c2656405f55b48d7b1","user":{"login":"jdauphant","id":1238254,"node_id":"MDQ6VXNlcjEyMzgyNTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1238254?v=4","gravatar_id":"","url":"https://api.github.com/users/jdauphant","html_url":"https://github.com/jdauphant","followers_url":"https://api.github.com/users/jdauphant/followers","following_url":"https://api.github.com/users/jdauphant/following{/other_user}","gists_url":"https://api.github.com/users/jdauphant/gists{/gist_id}","starred_url":"https://api.github.com/users/jdauphant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdauphant/subscriptions","organizations_url":"https://api.github.com/users/jdauphant/orgs","repos_url":"https://api.github.com/users/jdauphant/repos","events_url":"https://api.github.com/users/jdauphant/events{/privacy}","received_events_url":"https://api.github.com/users/jdauphant/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Expected method shorthand. (object-shorthand)](https://app.codacy.com/app/aplus/aplus/pullRequest?prid=4466653)","created_at":"2019-11-13T18:27:14Z","updated_at":"2019-11-13T18:27:15Z","html_url":"https://github.com/betagouv/aplus/pull/255#discussion_r345924705","pull_request_url":"https://api.github.com/repos/betagouv/aplus/pulls/255","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/betagouv/aplus/pulls/comments/345924705"},"html":{"href":"https://github.com/betagouv/aplus/pull/255#discussion_r345924705"},"pull_request":{"href":"https://api.github.com/repos/betagouv/aplus/pulls/255"}}},"pull_request":{"url":"https://api.github.com/repos/betagouv/aplus/pulls/255","id":338767469,"node_id":"MDExOlB1bGxSZXF1ZXN0MzM4NzY3NDY5","html_url":"https://github.com/betagouv/aplus/pull/255","diff_url":"https://github.com/betagouv/aplus/pull/255.diff","patch_url":"https://github.com/betagouv/aplus/pull/255.patch","issue_url":"https://api.github.com/repos/betagouv/aplus/issues/255","number":255,"state":"open","locked":false,"title":"[151] en temps quadministrateur je veux pouvoir sélectionner plusieurs zones géographique pour un groupe","user":{"login":"lpereir4","id":342741,"node_id":"MDQ6VXNlcjM0Mjc0MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/342741?v=4","gravatar_id":"","url":"https://api.github.com/users/lpereir4","html_url":"https://github.com/lpereir4","followers_url":"https://api.github.com/users/lpereir4/followers","following_url":"https://api.github.com/users/lpereir4/following{/other_user}","gists_url":"https://api.github.com/users/lpereir4/gists{/gist_id}","starred_url":"https://api.github.com/users/lpereir4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpereir4/subscriptions","organizations_url":"https://api.github.com/users/lpereir4/orgs","repos_url":"https://api.github.com/users/lpereir4/repos","events_url":"https://api.github.com/users/lpereir4/events{/privacy}","received_events_url":"https://api.github.com/users/lpereir4/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-11-08T16:58:29Z","updated_at":"2019-11-13T18:27:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e1f914c57b5edbc8d34923fa60462f7ce6654496","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/betagouv/aplus/pulls/255/commits","review_comments_url":"https://api.github.com/repos/betagouv/aplus/pulls/255/comments","review_comment_url":"https://api.github.com/repos/betagouv/aplus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/betagouv/aplus/issues/255/comments","statuses_url":"https://api.github.com/repos/betagouv/aplus/statuses/42d9bcbb42164b4996f761c2656405f55b48d7b1","head":{"label":"betagouv:feature/151-en-temps-quadministrateur-je-veux-pouvoir-sélectionner-plusieurs-zones-géographique-pour-un-groupe","ref":"feature/151-en-temps-quadministrateur-je-veux-pouvoir-sélectionner-plusieurs-zones-géographique-pour-un-groupe","sha":"42d9bcbb42164b4996f761c2656405f55b48d7b1","user":{"login":"betagouv","id":7874148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc4NzQxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/7874148?v=4","gravatar_id":"","url":"https://api.github.com/users/betagouv","html_url":"https://github.com/betagouv","followers_url":"https://api.github.com/users/betagouv/followers","following_url":"https://api.github.com/users/betagouv/following{/other_user}","gists_url":"https://api.github.com/users/betagouv/gists{/gist_id}","starred_url":"https://api.github.com/users/betagouv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betagouv/subscriptions","organizations_url":"https://api.github.com/users/betagouv/orgs","repos_url":"https://api.github.com/users/betagouv/repos","events_url":"https://api.github.com/users/betagouv/events{/privacy}","received_events_url":"https://api.github.com/users/betagouv/received_events","type":"Organization","site_admin":false},"repo":{"id":108272093,"node_id":"MDEwOlJlcG9zaXRvcnkxMDgyNzIwOTM=","name":"aplus","full_name":"betagouv/aplus","private":false,"owner":{"login":"betagouv","id":7874148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc4NzQxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/7874148?v=4","gravatar_id":"","url":"https://api.github.com/users/betagouv","html_url":"https://github.com/betagouv","followers_url":"https://api.github.com/users/betagouv/followers","following_url":"https://api.github.com/users/betagouv/following{/other_user}","gists_url":"https://api.github.com/users/betagouv/gists{/gist_id}","starred_url":"https://api.github.com/users/betagouv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betagouv/subscriptions","organizations_url":"https://api.github.com/users/betagouv/orgs","repos_url":"https://api.github.com/users/betagouv/repos","events_url":"https://api.github.com/users/betagouv/events{/privacy}","received_events_url":"https://api.github.com/users/betagouv/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/betagouv/aplus","description":"Administration+","fork":false,"url":"https://api.github.com/repos/betagouv/aplus","forks_url":"https://api.github.com/repos/betagouv/aplus/forks","keys_url":"https://api.github.com/repos/betagouv/aplus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/betagouv/aplus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/betagouv/aplus/teams","hooks_url":"https://api.github.com/repos/betagouv/aplus/hooks","issue_events_url":"https://api.github.com/repos/betagouv/aplus/issues/events{/number}","events_url":"https://api.github.com/repos/betagouv/aplus/events","assignees_url":"https://api.github.com/repos/betagouv/aplus/assignees{/user}","branches_url":"https://api.github.com/repos/betagouv/aplus/branches{/branch}","tags_url":"https://api.github.com/repos/betagouv/aplus/tags","blobs_url":"https://api.github.com/repos/betagouv/aplus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/betagouv/aplus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/betagouv/aplus/git/refs{/sha}","trees_url":"https://api.github.com/repos/betagouv/aplus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/betagouv/aplus/statuses/{sha}","languages_url":"https://api.github.com/repos/betagouv/aplus/languages","stargazers_url":"https://api.github.com/repos/betagouv/aplus/stargazers","contributors_url":"https://api.github.com/repos/betagouv/aplus/contributors","subscribers_url":"https://api.github.com/repos/betagouv/aplus/subscribers","subscription_url":"https://api.github.com/repos/betagouv/aplus/subscription","commits_url":"https://api.github.com/repos/betagouv/aplus/commits{/sha}","git_commits_url":"https://api.github.com/repos/betagouv/aplus/git/commits{/sha}","comments_url":"https://api.github.com/repos/betagouv/aplus/comments{/number}","issue_comment_url":"https://api.github.com/repos/betagouv/aplus/issues/comments{/number}","contents_url":"https://api.github.com/repos/betagouv/aplus/contents/{+path}","compare_url":"https://api.github.com/repos/betagouv/aplus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/betagouv/aplus/merges","archive_url":"https://api.github.com/repos/betagouv/aplus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/betagouv/aplus/downloads","issues_url":"https://api.github.com/repos/betagouv/aplus/issues{/number}","pulls_url":"https://api.github.com/repos/betagouv/aplus/pulls{/number}","milestones_url":"https://api.github.com/repos/betagouv/aplus/milestones{/number}","notifications_url":"https://api.github.com/repos/betagouv/aplus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/betagouv/aplus/labels{/name}","releases_url":"https://api.github.com/repos/betagouv/aplus/releases{/id}","deployments_url":"https://api.github.com/repos/betagouv/aplus/deployments","created_at":"2017-10-25T13:11:41Z","updated_at":"2019-11-11T18:44:38Z","pushed_at":"2019-11-13T18:24:45Z","git_url":"git://github.com/betagouv/aplus.git","ssh_url":"git@github.com:betagouv/aplus.git","clone_url":"https://github.com/betagouv/aplus.git","svn_url":"https://github.com/betagouv/aplus","homepage":"https://beta.gouv.fr/startup/aplus.html","size":4016,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":23,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":8,"open_issues":23,"watchers":1,"default_branch":"master"}},"base":{"label":"betagouv:master","ref":"master","sha":"9039dfa5ce3a3b99720fe79a7a2dd08cdf5046fd","user":{"login":"betagouv","id":7874148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc4NzQxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/7874148?v=4","gravatar_id":"","url":"https://api.github.com/users/betagouv","html_url":"https://github.com/betagouv","followers_url":"https://api.github.com/users/betagouv/followers","following_url":"https://api.github.com/users/betagouv/following{/other_user}","gists_url":"https://api.github.com/users/betagouv/gists{/gist_id}","starred_url":"https://api.github.com/users/betagouv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betagouv/subscriptions","organizations_url":"https://api.github.com/users/betagouv/orgs","repos_url":"https://api.github.com/users/betagouv/repos","events_url":"https://api.github.com/users/betagouv/events{/privacy}","received_events_url":"https://api.github.com/users/betagouv/received_events","type":"Organization","site_admin":false},"repo":{"id":108272093,"node_id":"MDEwOlJlcG9zaXRvcnkxMDgyNzIwOTM=","name":"aplus","full_name":"betagouv/aplus","private":false,"owner":{"login":"betagouv","id":7874148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc4NzQxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/7874148?v=4","gravatar_id":"","url":"https://api.github.com/users/betagouv","html_url":"https://github.com/betagouv","followers_url":"https://api.github.com/users/betagouv/followers","following_url":"https://api.github.com/users/betagouv/following{/other_user}","gists_url":"https://api.github.com/users/betagouv/gists{/gist_id}","starred_url":"https://api.github.com/users/betagouv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betagouv/subscriptions","organizations_url":"https://api.github.com/users/betagouv/orgs","repos_url":"https://api.github.com/users/betagouv/repos","events_url":"https://api.github.com/users/betagouv/events{/privacy}","received_events_url":"https://api.github.com/users/betagouv/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/betagouv/aplus","description":"Administration+","fork":false,"url":"https://api.github.com/repos/betagouv/aplus","forks_url":"https://api.github.com/repos/betagouv/aplus/forks","keys_url":"https://api.github.com/repos/betagouv/aplus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/betagouv/aplus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/betagouv/aplus/teams","hooks_url":"https://api.github.com/repos/betagouv/aplus/hooks","issue_events_url":"https://api.github.com/repos/betagouv/aplus/issues/events{/number}","events_url":"https://api.github.com/repos/betagouv/aplus/events","assignees_url":"https://api.github.com/repos/betagouv/aplus/assignees{/user}","branches_url":"https://api.github.com/repos/betagouv/aplus/branches{/branch}","tags_url":"https://api.github.com/repos/betagouv/aplus/tags","blobs_url":"https://api.github.com/repos/betagouv/aplus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/betagouv/aplus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/betagouv/aplus/git/refs{/sha}","trees_url":"https://api.github.com/repos/betagouv/aplus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/betagouv/aplus/statuses/{sha}","languages_url":"https://api.github.com/repos/betagouv/aplus/languages","stargazers_url":"https://api.github.com/repos/betagouv/aplus/stargazers","contributors_url":"https://api.github.com/repos/betagouv/aplus/contributors","subscribers_url":"https://api.github.com/repos/betagouv/aplus/subscribers","subscription_url":"https://api.github.com/repos/betagouv/aplus/subscription","commits_url":"https://api.github.com/repos/betagouv/aplus/commits{/sha}","git_commits_url":"https://api.github.com/repos/betagouv/aplus/git/commits{/sha}","comments_url":"https://api.github.com/repos/betagouv/aplus/comments{/number}","issue_comment_url":"https://api.github.com/repos/betagouv/aplus/issues/comments{/number}","contents_url":"https://api.github.com/repos/betagouv/aplus/contents/{+path}","compare_url":"https://api.github.com/repos/betagouv/aplus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/betagouv/aplus/merges","archive_url":"https://api.github.com/repos/betagouv/aplus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/betagouv/aplus/downloads","issues_url":"https://api.github.com/repos/betagouv/aplus/issues{/number}","pulls_url":"https://api.github.com/repos/betagouv/aplus/pulls{/number}","milestones_url":"https://api.github.com/repos/betagouv/aplus/milestones{/number}","notifications_url":"https://api.github.com/repos/betagouv/aplus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/betagouv/aplus/labels{/name}","releases_url":"https://api.github.com/repos/betagouv/aplus/releases{/id}","deployments_url":"https://api.github.com/repos/betagouv/aplus/deployments","created_at":"2017-10-25T13:11:41Z","updated_at":"2019-11-11T18:44:38Z","pushed_at":"2019-11-13T18:24:45Z","git_url":"git://github.com/betagouv/aplus.git","ssh_url":"git@github.com:betagouv/aplus.git","clone_url":"https://github.com/betagouv/aplus.git","svn_url":"https://github.com/betagouv/aplus","homepage":"https://beta.gouv.fr/startup/aplus.html","size":4016,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":23,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":8,"open_issues":23,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/betagouv/aplus/pulls/255"},"html":{"href":"https://github.com/betagouv/aplus/pull/255"},"issue":{"href":"https://api.github.com/repos/betagouv/aplus/issues/255"},"comments":{"href":"https://api.github.com/repos/betagouv/aplus/issues/255/comments"},"review_comments":{"href":"https://api.github.com/repos/betagouv/aplus/pulls/255/comments"},"review_comment":{"href":"https://api.github.com/repos/betagouv/aplus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/betagouv/aplus/pulls/255/commits"},"statuses":{"href":"https://api.github.com/repos/betagouv/aplus/statuses/42d9bcbb42164b4996f761c2656405f55b48d7b1"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"jdauphant"}}