{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/ship-it/pulls/comments/40807668","id":40807668,"diff_hunk":"@@ -277,3 +280,54 @@ def json_exports_txt():\n     response = make_response(render_template(\"json_exports.txt\", jsonFiles=jsonFiles))\n     response.mimetype = \"text/plain\"\n     return response\n+\n+\n+def get_releases_for_json(product):\n+    releases = getFilteredReleases(product, [\"major\", \"stability\", \"esr\", \"dev\"], detailledInfo=True)\n+    listReleases = defaultdict()\n+    for r in releases:\n+        version = r[2]\n+        category = \"esr\" if version.endswith(\"esr\") else r[3]\n+        key = product + \"-\" + version\n+        listReleases[key] = {\n+            \"date\": r[1],\n+            \"version\": r[0],\n+            \"product\": product,\n+            \"category\": category,\n+            \"description\": r[4],\n+            \"is_security_driven\": r[5] == True\n+        }\n+    return listReleases\n+\n+\n+@app.route('/json/firefox.json', methods=['GET'])","path":"kickoff/jsonexport.py","position":72,"original_position":72,"commit_id":"6b8a5cd0b23c015b46e60397f8aa6b514046ae81","original_commit_id":"6b8a5cd0b23c015b46e60397f8aa6b514046ae81","user":{"login":"ametaireau","id":67073,"avatar_url":"https://avatars.githubusercontent.com/u/67073?v=3","gravatar_id":"","url":"https://api.github.com/users/ametaireau","html_url":"https://github.com/ametaireau","followers_url":"https://api.github.com/users/ametaireau/followers","following_url":"https://api.github.com/users/ametaireau/following{/other_user}","gists_url":"https://api.github.com/users/ametaireau/gists{/gist_id}","starred_url":"https://api.github.com/users/ametaireau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ametaireau/subscriptions","organizations_url":"https://api.github.com/users/ametaireau/orgs","repos_url":"https://api.github.com/users/ametaireau/repos","events_url":"https://api.github.com/users/ametaireau/events{/privacy}","received_events_url":"https://api.github.com/users/ametaireau/received_events","type":"User","site_admin":false},"body":"Should you define only one endpoint `'/json/{product}.json'` and then pass the product info to `get_releases_for_json`?","created_at":"2015-09-30T15:22:23Z","updated_at":"2015-09-30T15:22:23Z","html_url":"https://github.com/mozilla/ship-it/pull/38#discussion_r40807668","pull_request_url":"https://api.github.com/repos/mozilla/ship-it/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/mozilla/ship-it/pulls/comments/40807668"},"html":{"href":"https://github.com/mozilla/ship-it/pull/38#discussion_r40807668"},"pull_request":{"href":"https://api.github.com/repos/mozilla/ship-it/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/ship-it/pulls/38","id":46413119,"html_url":"https://github.com/mozilla/ship-it/pull/38","diff_url":"https://github.com/mozilla/ship-it/pull/38.diff","patch_url":"https://github.com/mozilla/ship-it/pull/38.patch","issue_url":"https://api.github.com/repos/mozilla/ship-it/issues/38","number":38,"state":"open","locked":false,"title":"Improve the JSON files provided by the product details","user":{"login":"sylvestre","id":733326,"avatar_url":"https://avatars.githubusercontent.com/u/733326?v=3","gravatar_id":"","url":"https://api.github.com/users/sylvestre","html_url":"https://github.com/sylvestre","followers_url":"https://api.github.com/users/sylvestre/followers","following_url":"https://api.github.com/users/sylvestre/following{/other_user}","gists_url":"https://api.github.com/users/sylvestre/gists{/gist_id}","starred_url":"https://api.github.com/users/sylvestre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylvestre/subscriptions","organizations_url":"https://api.github.com/users/sylvestre/orgs","repos_url":"https://api.github.com/users/sylvestre/repos","events_url":"https://api.github.com/users/sylvestre/events{/privacy}","received_events_url":"https://api.github.com/users/sylvestre/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-30T15:00:39Z","updated_at":"2015-09-30T15:22:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"682e211f065a5ac8eb459fe89962b44dd75c47e2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/ship-it/pulls/38/commits","review_comments_url":"https://api.github.com/repos/mozilla/ship-it/pulls/38/comments","review_comment_url":"https://api.github.com/repos/mozilla/ship-it/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/ship-it/issues/38/comments","statuses_url":"https://api.github.com/repos/mozilla/ship-it/statuses/6b8a5cd0b23c015b46e60397f8aa6b514046ae81","head":{"label":"sylvestre:better-json","ref":"better-json","sha":"6b8a5cd0b23c015b46e60397f8aa6b514046ae81","user":{"login":"sylvestre","id":733326,"avatar_url":"https://avatars.githubusercontent.com/u/733326?v=3","gravatar_id":"","url":"https://api.github.com/users/sylvestre","html_url":"https://github.com/sylvestre","followers_url":"https://api.github.com/users/sylvestre/followers","following_url":"https://api.github.com/users/sylvestre/following{/other_user}","gists_url":"https://api.github.com/users/sylvestre/gists{/gist_id}","starred_url":"https://api.github.com/users/sylvestre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylvestre/subscriptions","organizations_url":"https://api.github.com/users/sylvestre/orgs","repos_url":"https://api.github.com/users/sylvestre/repos","events_url":"https://api.github.com/users/sylvestre/events{/privacy}","received_events_url":"https://api.github.com/users/sylvestre/received_events","type":"User","site_admin":false},"repo":{"id":31255188,"name":"ship-it","full_name":"sylvestre/ship-it","owner":{"login":"sylvestre","id":733326,"avatar_url":"https://avatars.githubusercontent.com/u/733326?v=3","gravatar_id":"","url":"https://api.github.com/users/sylvestre","html_url":"https://github.com/sylvestre","followers_url":"https://api.github.com/users/sylvestre/followers","following_url":"https://api.github.com/users/sylvestre/following{/other_user}","gists_url":"https://api.github.com/users/sylvestre/gists{/gist_id}","starred_url":"https://api.github.com/users/sylvestre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylvestre/subscriptions","organizations_url":"https://api.github.com/users/sylvestre/orgs","repos_url":"https://api.github.com/users/sylvestre/repos","events_url":"https://api.github.com/users/sylvestre/events{/privacy}","received_events_url":"https://api.github.com/users/sylvestre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sylvestre/ship-it","description":"Internal tool to manage release builds","fork":true,"url":"https://api.github.com/repos/sylvestre/ship-it","forks_url":"https://api.github.com/repos/sylvestre/ship-it/forks","keys_url":"https://api.github.com/repos/sylvestre/ship-it/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sylvestre/ship-it/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sylvestre/ship-it/teams","hooks_url":"https://api.github.com/repos/sylvestre/ship-it/hooks","issue_events_url":"https://api.github.com/repos/sylvestre/ship-it/issues/events{/number}","events_url":"https://api.github.com/repos/sylvestre/ship-it/events","assignees_url":"https://api.github.com/repos/sylvestre/ship-it/assignees{/user}","branches_url":"https://api.github.com/repos/sylvestre/ship-it/branches{/branch}","tags_url":"https://api.github.com/repos/sylvestre/ship-it/tags","blobs_url":"https://api.github.com/repos/sylvestre/ship-it/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sylvestre/ship-it/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sylvestre/ship-it/git/refs{/sha}","trees_url":"https://api.github.com/repos/sylvestre/ship-it/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sylvestre/ship-it/statuses/{sha}","languages_url":"https://api.github.com/repos/sylvestre/ship-it/languages","stargazers_url":"https://api.github.com/repos/sylvestre/ship-it/stargazers","contributors_url":"https://api.github.com/repos/sylvestre/ship-it/contributors","subscribers_url":"https://api.github.com/repos/sylvestre/ship-it/subscribers","subscription_url":"https://api.github.com/repos/sylvestre/ship-it/subscription","commits_url":"https://api.github.com/repos/sylvestre/ship-it/commits{/sha}","git_commits_url":"https://api.github.com/repos/sylvestre/ship-it/git/commits{/sha}","comments_url":"https://api.github.com/repos/sylvestre/ship-it/comments{/number}","issue_comment_url":"https://api.github.com/repos/sylvestre/ship-it/issues/comments{/number}","contents_url":"https://api.github.com/repos/sylvestre/ship-it/contents/{+path}","compare_url":"https://api.github.com/repos/sylvestre/ship-it/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sylvestre/ship-it/merges","archive_url":"https://api.github.com/repos/sylvestre/ship-it/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sylvestre/ship-it/downloads","issues_url":"https://api.github.com/repos/sylvestre/ship-it/issues{/number}","pulls_url":"https://api.github.com/repos/sylvestre/ship-it/pulls{/number}","milestones_url":"https://api.github.com/repos/sylvestre/ship-it/milestones{/number}","notifications_url":"https://api.github.com/repos/sylvestre/ship-it/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sylvestre/ship-it/labels{/name}","releases_url":"https://api.github.com/repos/sylvestre/ship-it/releases{/id}","created_at":"2015-02-24T10:32:41Z","updated_at":"2015-04-29T11:37:36Z","pushed_at":"2015-09-30T14:58:43Z","git_url":"git://github.com/sylvestre/ship-it.git","ssh_url":"git@github.com:sylvestre/ship-it.git","clone_url":"https://github.com/sylvestre/ship-it.git","svn_url":"https://github.com/sylvestre/ship-it","homepage":null,"size":2053,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"52fc09ada5c40beabbcd538c9cb25908f5569135","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":31218912,"name":"ship-it","full_name":"mozilla/ship-it","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/ship-it","description":"Internal tool to manage release builds","fork":false,"url":"https://api.github.com/repos/mozilla/ship-it","forks_url":"https://api.github.com/repos/mozilla/ship-it/forks","keys_url":"https://api.github.com/repos/mozilla/ship-it/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/ship-it/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/ship-it/teams","hooks_url":"https://api.github.com/repos/mozilla/ship-it/hooks","issue_events_url":"https://api.github.com/repos/mozilla/ship-it/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/ship-it/events","assignees_url":"https://api.github.com/repos/mozilla/ship-it/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/ship-it/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/ship-it/tags","blobs_url":"https://api.github.com/repos/mozilla/ship-it/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/ship-it/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/ship-it/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/ship-it/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/ship-it/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/ship-it/languages","stargazers_url":"https://api.github.com/repos/mozilla/ship-it/stargazers","contributors_url":"https://api.github.com/repos/mozilla/ship-it/contributors","subscribers_url":"https://api.github.com/repos/mozilla/ship-it/subscribers","subscription_url":"https://api.github.com/repos/mozilla/ship-it/subscription","commits_url":"https://api.github.com/repos/mozilla/ship-it/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/ship-it/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/ship-it/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/ship-it/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/ship-it/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/ship-it/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/ship-it/merges","archive_url":"https://api.github.com/repos/mozilla/ship-it/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/ship-it/downloads","issues_url":"https://api.github.com/repos/mozilla/ship-it/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/ship-it/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/ship-it/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/ship-it/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/ship-it/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/ship-it/releases{/id}","created_at":"2015-02-23T17:07:32Z","updated_at":"2015-05-05T17:00:17Z","pushed_at":"2015-09-30T15:00:40Z","git_url":"git://github.com/mozilla/ship-it.git","ssh_url":"git@github.com:mozilla/ship-it.git","clone_url":"https://github.com/mozilla/ship-it.git","svn_url":"https://github.com/mozilla/ship-it","homepage":null,"size":2014,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":1,"forks":10,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/ship-it/pulls/38"},"html":{"href":"https://github.com/mozilla/ship-it/pull/38"},"issue":{"href":"https://api.github.com/repos/mozilla/ship-it/issues/38"},"comments":{"href":"https://api.github.com/repos/mozilla/ship-it/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/ship-it/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/ship-it/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/ship-it/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/ship-it/statuses/6b8a5cd0b23c015b46e60397f8aa6b514046ae81"}}}}