payload: {"action":"created","comment":{"url":"https://api.github.com/repos/etalab/api-bal/pulls/comments/353267253","pull_request_review_id":326253625,"id":353267253,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM1MzI2NzI1Mw==","diff_hunk":"@@ -0,0 +1,239 @@\n+const test = require('ava')\n+const formatEmail = require('../new-admin-notification')\n+\n+test('formatEmail', t => {\n+  const baseLocale = {\n+    _id: '42',\n+    token: '123456',\n+    nom: 'test'\n+  }\n+\n+  const expectedTextBody = `\n+<!DOCTYPE html>\n+<html lang=\"fr\">\n+\n+<head>\n+  <meta charset=\"UTF-8\">\n+  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n+  <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n+  <title>Invitation à l‘administration d‘une Base Adresse Locale</title>\n+  <style>\n+    body {\n+      background-color: #F5F6F7;\n+      color: #234361;\n+      font-family: \"SF UI Text\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n+      margin: auto;\n+      padding: 25px;\n+    }\n+\n+    a {\n+      color: white;\n+      text-decoration: none;\n+    }\n+\n+    button {\n+      background-color: #0053b3;\n+      border: none;\n+      border-radius: 3px;\n+      padding: 10px;\n+    }\n+\n+    h2 {\n+      font-weight: lighter;\n+      margin: 16px;\n+    }\n+\n+    img {\n+      background-color: white;\n+      height: 65px;\n+      padding-right: 5px;\n+    }\n+\n+    .bal {\n+      font-size: 25px;\n+      font-weight: bold;\n+    }\n+\n+    .banner {\n+      background-color: #0053b3;\n+      border-radius: 2px;\n+      color: white;\n+      display: flex;\n+      justify-content: space-between;\n+    }\n+\n+    .banTitle {\n+      font-size: 25px;\n+      font-weight: lighter;\n+      margin: 16px;\n+    }\n+\n+    .container {\n+      background-color: #ebeff3;\n+      padding: 25px;\n+    }\n+\n+    .infos {\n+      margin-top: 35px;\n+    }\n+\n+    .title {\n+      align-items: center;\n+      border-bottom: 1px solid #E4E7EB;\n+      display: flex;\n+      flex-direction: column;\n+      justify-content: center;\n+      min-height: 15em;\n+      padding: 10px;\n+      text-align: center;\n+    }\n+\n+  </style>\n+</head>\n+\n+<body>\n+  <div class=\"banner\">\n+    <img src=\"/public/images/logo-marianne.svg\" alt=\"Logo République Française\">","path":"lib/emails/__tests__/new-admin-notification.js","position":96,"original_position":96,"commit_id":"4a0139e0f4eedd4f6dca7f0abc35de0b64c0350c","original_commit_id":"4a0139e0f4eedd4f6dca7f0abc35de0b64c0350c","user":{"login":"jdesboeufs","id":1231232,"node_id":"MDQ6VXNlcjEyMzEyMzI=","avatar_url":"https://avatars2.githubusercontent.com/u/1231232?v=4","gravatar_id":"","url":"https://api.github.com/users/jdesboeufs","html_url":"https://github.com/jdesboeufs","followers_url":"https://api.github.com/users/jdesboeufs/followers","following_url":"https://api.github.com/users/jdesboeufs/following{/other_user}","gists_url":"https://api.github.com/users/jdesboeufs/gists{/gist_id}","starred_url":"https://api.github.com/users/jdesboeufs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdesboeufs/subscriptions","organizations_url":"https://api.github.com/users/jdesboeufs/orgs","repos_url":"https://api.github.com/users/jdesboeufs/repos","events_url":"https://api.github.com/users/jdesboeufs/events{/privacy}","received_events_url":"https://api.github.com/users/jdesboeufs/received_events","type":"User","site_admin":false},"body":"Idem","created_at":"2019-12-03T16:01:11Z","updated_at":"2019-12-03T16:06:07Z","html_url":"https://github.com/etalab/api-bal/pull/111#discussion_r353267253","pull_request_url":"https://api.github.com/repos/etalab/api-bal/pulls/111","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/etalab/api-bal/pulls/comments/353267253"},"html":{"href":"https://github.com/etalab/api-bal/pull/111#discussion_r353267253"},"pull_request":{"href":"https://api.github.com/repos/etalab/api-bal/pulls/111"}}},"pull_request":{"url":"https://api.github.com/repos/etalab/api-bal/pulls/111","id":346766698,"node_id":"MDExOlB1bGxSZXF1ZXN0MzQ2NzY2Njk4","html_url":"https://github.com/etalab/api-bal/pull/111","diff_url":"https://github.com/etalab/api-bal/pull/111.diff","patch_url":"https://github.com/etalab/api-bal/pull/111.patch","issue_url":"https://api.github.com/repos/etalab/api-bal/issues/111","number":111,"state":"open","locked":false,"title":"Création de templates pour les mails","user":{"login":"GllmR","id":56537238,"node_id":"MDQ6VXNlcjU2NTM3MjM4","avatar_url":"https://avatars1.githubusercontent.com/u/56537238?v=4","gravatar_id":"","url":"https://api.github.com/users/GllmR","html_url":"https://github.com/GllmR","followers_url":"https://api.github.com/users/GllmR/followers","following_url":"https://api.github.com/users/GllmR/following{/other_user}","gists_url":"https://api.github.com/users/GllmR/gists{/gist_id}","starred_url":"https://api.github.com/users/GllmR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GllmR/subscriptions","organizations_url":"https://api.github.com/users/GllmR/orgs","repos_url":"https://api.github.com/users/GllmR/repos","events_url":"https://api.github.com/users/GllmR/events{/privacy}","received_events_url":"https://api.github.com/users/GllmR/received_events","type":"User","site_admin":false},"body":"Nouveaux styles pour les mails envoyés par api-bal:\r\n![Capture d’écran 2019-11-28 à 17 04 26](https://user-images.githubusercontent.com/56537238/69820396-4e87a080-1201-11ea-889d-919640b7b5cc.png)\r\n","created_at":"2019-11-28T16:05:55Z","updated_at":"2019-12-03T16:06:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"245366510db7472aaa0e0ad31c697bc267e15720","assignee":null,"assignees":[],"requested_reviewers":[{"login":"tmerlier","id":7040549,"node_id":"MDQ6VXNlcjcwNDA1NDk=","avatar_url":"https://avatars0.githubusercontent.com/u/7040549?v=4","gravatar_id":"","url":"https://api.github.com/users/tmerlier","html_url":"https://github.com/tmerlier","followers_url":"https://api.github.com/users/tmerlier/followers","following_url":"https://api.github.com/users/tmerlier/following{/other_user}","gists_url":"https://api.github.com/users/tmerlier/gists{/gist_id}","starred_url":"https://api.github.com/users/tmerlier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmerlier/subscriptions","organizations_url":"https://api.github.com/users/tmerlier/orgs","repos_url":"https://api.github.com/users/tmerlier/repos","events_url":"https://api.github.com/users/tmerlier/events{/privacy}","received_events_url":"https://api.github.com/users/tmerlier/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/etalab/api-bal/pulls/111/commits","review_comments_url":"https://api.github.com/repos/etalab/api-bal/pulls/111/comments","review_comment_url":"https://api.github.com/repos/etalab/api-bal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/etalab/api-bal/issues/111/comments","statuses_url":"https://api.github.com/repos/etalab/api-bal/statuses/4a0139e0f4eedd4f6dca7f0abc35de0b64c0350c","head":{"label":"etalab:gllmr/template-mail","ref":"gllmr/template-mail","sha":"4a0139e0f4eedd4f6dca7f0abc35de0b64c0350c","user":{"login":"etalab","id":5313610,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUzMTM2MTA=","avatar_url":"https://avatars1.githubusercontent.com/u/5313610?v=4","gravatar_id":"","url":"https://api.github.com/users/etalab","html_url":"https://github.com/etalab","followers_url":"https://api.github.com/users/etalab/followers","following_url":"https://api.github.com/users/etalab/following{/other_user}","gists_url":"https://api.github.com/users/etalab/gists{/gist_id}","starred_url":"https://api.github.com/users/etalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etalab/subscriptions","organizations_url":"https://api.github.com/users/etalab/orgs","repos_url":"https://api.github.com/users/etalab/repos","events_url":"https://api.github.com/users/etalab/events{/privacy}","received_events_url":"https://api.github.com/users/etalab/received_events","type":"Organization","site_admin":false},"repo":{"id":174143843,"node_id":"MDEwOlJlcG9zaXRvcnkxNzQxNDM4NDM=","name":"api-bal","full_name":"etalab/api-bal","private":false,"owner":{"login":"etalab","id":5313610,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUzMTM2MTA=","avatar_url":"https://avatars1.githubusercontent.com/u/5313610?v=4","gravatar_id":"","url":"https://api.github.com/users/etalab","html_url":"https://github.com/etalab","followers_url":"https://api.github.com/users/etalab/followers","following_url":"https://api.github.com/users/etalab/following{/other_user}","gists_url":"https://api.github.com/users/etalab/gists{/gist_id}","starred_url":"https://api.github.com/users/etalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etalab/subscriptions","organizations_url":"https://api.github.com/users/etalab/orgs","repos_url":"https://api.github.com/users/etalab/repos","events_url":"https://api.github.com/users/etalab/events{/privacy}","received_events_url":"https://api.github.com/users/etalab/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/etalab/api-bal","description":"API permettant la gestion de bases d’adresses à l’échelon local","fork":false,"url":"https://api.github.com/repos/etalab/api-bal","forks_url":"https://api.github.com/repos/etalab/api-bal/forks","keys_url":"https://api.github.com/repos/etalab/api-bal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/etalab/api-bal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/etalab/api-bal/teams","hooks_url":"https://api.github.com/repos/etalab/api-bal/hooks","issue_events_url":"https://api.github.com/repos/etalab/api-bal/issues/events{/number}","events_url":"https://api.github.com/repos/etalab/api-bal/events","assignees_url":"https://api.github.com/repos/etalab/api-bal/assignees{/user}","branches_url":"https://api.github.com/repos/etalab/api-bal/branches{/branch}","tags_url":"https://api.github.com/repos/etalab/api-bal/tags","blobs_url":"https://api.github.com/repos/etalab/api-bal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/etalab/api-bal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/etalab/api-bal/git/refs{/sha}","trees_url":"https://api.github.com/repos/etalab/api-bal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/etalab/api-bal/statuses/{sha}","languages_url":"https://api.github.com/repos/etalab/api-bal/languages","stargazers_url":"https://api.github.com/repos/etalab/api-bal/stargazers","contributors_url":"https://api.github.com/repos/etalab/api-bal/contributors","subscribers_url":"https://api.github.com/repos/etalab/api-bal/subscribers","subscription_url":"https://api.github.com/repos/etalab/api-bal/subscription","commits_url":"https://api.github.com/repos/etalab/api-bal/commits{/sha}","git_commits_url":"https://api.github.com/repos/etalab/api-bal/git/commits{/sha}","comments_url":"https://api.github.com/repos/etalab/api-bal/comments{/number}","issue_comment_url":"https://api.github.com/repos/etalab/api-bal/issues/comments{/number}","contents_url":"https://api.github.com/repos/etalab/api-bal/contents/{+path}","compare_url":"https://api.github.com/repos/etalab/api-bal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/etalab/api-bal/merges","archive_url":"https://api.github.com/repos/etalab/api-bal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/etalab/api-bal/downloads","issues_url":"https://api.github.com/repos/etalab/api-bal/issues{/number}","pulls_url":"https://api.github.com/repos/etalab/api-bal/pulls{/number}","milestones_url":"https://api.github.com/repos/etalab/api-bal/milestones{/number}","notifications_url":"https://api.github.com/repos/etalab/api-bal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/etalab/api-bal/labels{/name}","releases_url":"https://api.github.com/repos/etalab/api-bal/releases{/id}","deployments_url":"https://api.github.com/repos/etalab/api-bal/deployments","created_at":"2019-03-06T12:46:12Z","updated_at":"2019-11-06T16:27:32Z","pushed_at":"2019-12-03T15:40:42Z","git_url":"git://github.com/etalab/api-bal.git","ssh_url":"git@github.com:etalab/api-bal.git","clone_url":"https://github.com/etalab/api-bal.git","svn_url":"https://github.com/etalab/api-bal","homepage":"","size":1153,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":15,"watchers":1,"default_branch":"master"}},"base":{"label":"etalab:master","ref":"master","sha":"cce62a4f6bb91a50dcf1aa327b7cb064c2939102","user":{"login":"etalab","id":5313610,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUzMTM2MTA=","avatar_url":"https://avatars1.githubusercontent.com/u/5313610?v=4","gravatar_id":"","url":"https://api.github.com/users/etalab","html_url":"https://github.com/etalab","followers_url":"https://api.github.com/users/etalab/followers","following_url":"https://api.github.com/users/etalab/following{/other_user}","gists_url":"https://api.github.com/users/etalab/gists{/gist_id}","starred_url":"https://api.github.com/users/etalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etalab/subscriptions","organizations_url":"https://api.github.com/users/etalab/orgs","repos_url":"https://api.github.com/users/etalab/repos","events_url":"https://api.github.com/users/etalab/events{/privacy}","received_events_url":"https://api.github.com/users/etalab/received_events","type":"Organization","site_admin":false},"repo":{"id":174143843,"node_id":"MDEwOlJlcG9zaXRvcnkxNzQxNDM4NDM=","name":"api-bal","full_name":"etalab/api-bal","private":false,"owner":{"login":"etalab","id":5313610,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUzMTM2MTA=","avatar_url":"https://avatars1.githubusercontent.com/u/5313610?v=4","gravatar_id":"","url":"https://api.github.com/users/etalab","html_url":"https://github.com/etalab","followers_url":"https://api.github.com/users/etalab/followers","following_url":"https://api.github.com/users/etalab/following{/other_user}","gists_url":"https://api.github.com/users/etalab/gists{/gist_id}","starred_url":"https://api.github.com/users/etalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etalab/subscriptions","organizations_url":"https://api.github.com/users/etalab/orgs","repos_url":"https://api.github.com/users/etalab/repos","events_url":"https://api.github.com/users/etalab/events{/privacy}","received_events_url":"https://api.github.com/users/etalab/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/etalab/api-bal","description":"API permettant la gestion de bases d’adresses à l’échelon local","fork":false,"url":"https://api.github.com/repos/etalab/api-bal","forks_url":"https://api.github.com/repos/etalab/api-bal/forks","keys_url":"https://api.github.com/repos/etalab/api-bal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/etalab/api-bal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/etalab/api-bal/teams","hooks_url":"https://api.github.com/repos/etalab/api-bal/hooks","issue_events_url":"https://api.github.com/repos/etalab/api-bal/issues/events{/number}","events_url":"https://api.github.com/repos/etalab/api-bal/events","assignees_url":"https://api.github.com/repos/etalab/api-bal/assignees{/user}","branches_url":"https://api.github.com/repos/etalab/api-bal/branches{/branch}","tags_url":"https://api.github.com/repos/etalab/api-bal/tags","blobs_url":"https://api.github.com/repos/etalab/api-bal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/etalab/api-bal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/etalab/api-bal/git/refs{/sha}","trees_url":"https://api.github.com/repos/etalab/api-bal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/etalab/api-bal/statuses/{sha}","languages_url":"https://api.github.com/repos/etalab/api-bal/languages","stargazers_url":"https://api.github.com/repos/etalab/api-bal/stargazers","contributors_url":"https://api.github.com/repos/etalab/api-bal/contributors","subscribers_url":"https://api.github.com/repos/etalab/api-bal/subscribers","subscription_url":"https://api.github.com/repos/etalab/api-bal/subscription","commits_url":"https://api.github.com/repos/etalab/api-bal/commits{/sha}","git_commits_url":"https://api.github.com/repos/etalab/api-bal/git/commits{/sha}","comments_url":"https://api.github.com/repos/etalab/api-bal/comments{/number}","issue_comment_url":"https://api.github.com/repos/etalab/api-bal/issues/comments{/number}","contents_url":"https://api.github.com/repos/etalab/api-bal/contents/{+path}","compare_url":"https://api.github.com/repos/etalab/api-bal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/etalab/api-bal/merges","archive_url":"https://api.github.com/repos/etalab/api-bal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/etalab/api-bal/downloads","issues_url":"https://api.github.com/repos/etalab/api-bal/issues{/number}","pulls_url":"https://api.github.com/repos/etalab/api-bal/pulls{/number}","milestones_url":"https://api.github.com/repos/etalab/api-bal/milestones{/number}","notifications_url":"https://api.github.com/repos/etalab/api-bal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/etalab/api-bal/labels{/name}","releases_url":"https://api.github.com/repos/etalab/api-bal/releases{/id}","deployments_url":"https://api.github.com/repos/etalab/api-bal/deployments","created_at":"2019-03-06T12:46:12Z","updated_at":"2019-11-06T16:27:32Z","pushed_at":"2019-12-03T15:40:42Z","git_url":"git://github.com/etalab/api-bal.git","ssh_url":"git@github.com:etalab/api-bal.git","clone_url":"https://github.com/etalab/api-bal.git","svn_url":"https://github.com/etalab/api-bal","homepage":"","size":1153,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":15,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/etalab/api-bal/pulls/111"},"html":{"href":"https://github.com/etalab/api-bal/pull/111"},"issue":{"href":"https://api.github.com/repos/etalab/api-bal/issues/111"},"comments":{"href":"https://api.github.com/repos/etalab/api-bal/issues/111/comments"},"review_comments":{"href":"https://api.github.com/repos/etalab/api-bal/pulls/111/comments"},"review_comment":{"href":"https://api.github.com/repos/etalab/api-bal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/etalab/api-bal/pulls/111/commits"},"statuses":{"href":"https://api.github.com/repos/etalab/api-bal/statuses/4a0139e0f4eedd4f6dca7f0abc35de0b64c0350c"}},"author_association":"NONE"}}
other: {"actor":{"display_login":"jdesboeufs"}}