{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/bedrock/issues/4400","repository_url":"https://api.github.com/repos/mozilla/bedrock","labels_url":"https://api.github.com/repos/mozilla/bedrock/issues/4400/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/bedrock/issues/4400/comments","events_url":"https://api.github.com/repos/mozilla/bedrock/issues/4400/events","html_url":"https://github.com/mozilla/bedrock/pull/4400","id":181755262,"number":4400,"title":"Add a git repo utility for working with git external data","user":{"login":"pmac","id":19176817,"avatar_url":"https://avatars.githubusercontent.com/u/19176817?v=3","gravatar_id":"","url":"https://api.github.com/users/pmac","html_url":"https://github.com/pmac","followers_url":"https://api.github.com/users/pmac/followers","following_url":"https://api.github.com/users/pmac/following{/other_user}","gists_url":"https://api.github.com/users/pmac/gists{/gist_id}","starred_url":"https://api.github.com/users/pmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmac/subscriptions","organizations_url":"https://api.github.com/users/pmac/orgs","repos_url":"https://api.github.com/users/pmac/repos","events_url":"https://api.github.com/users/pmac/events{/privacy}","received_events_url":"https://api.github.com/users/pmac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-07T19:58:59Z","updated_at":"2016-10-12T03:32:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla/bedrock/pulls/4400","html_url":"https://github.com/mozilla/bedrock/pull/4400","diff_url":"https://github.com/mozilla/bedrock/pull/4400.diff","patch_url":"https://github.com/mozilla/bedrock/pull/4400.patch"},"body":"* Convert l10n_update to use new git utility\n* Convert update_security_advisories to use new git utility\n\nThis will support easily adding a command to update product-details from git."},"comment":{"url":"https://api.github.com/repos/mozilla/bedrock/issues/comments/253110181","html_url":"https://github.com/mozilla/bedrock/pull/4400#issuecomment-253110181","issue_url":"https://api.github.com/repos/mozilla/bedrock/issues/4400","id":253110181,"user":{"login":"jgmize","id":161718,"avatar_url":"https://avatars.githubusercontent.com/u/161718?v=3","gravatar_id":"","url":"https://api.github.com/users/jgmize","html_url":"https://github.com/jgmize","followers_url":"https://api.github.com/users/jgmize/followers","following_url":"https://api.github.com/users/jgmize/following{/other_user}","gists_url":"https://api.github.com/users/jgmize/gists{/gist_id}","starred_url":"https://api.github.com/users/jgmize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgmize/subscriptions","organizations_url":"https://api.github.com/users/jgmize/orgs","repos_url":"https://api.github.com/users/jgmize/repos","events_url":"https://api.github.com/users/jgmize/events{/privacy}","received_events_url":"https://api.github.com/users/jgmize/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T03:32:56Z","updated_at":"2016-10-12T03:32:56Z","body":"I wanted to test this in a demo env, so I pushed this to the demo__git-utils branch on this repo. CircleCI ran into the following error during the [build](https://circleci.com/gh/mozilla/bedrock/2464):\r\n```\r\n./manage.py update_product_details --database bedrock\r\nUpdating thunderbird_history_major_releases.json from server\r\nTraceback (most recent call last):\r\n  File \"./manage.py\", line 10, in <module>\r\n    execute_from_command_line(sys.argv)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py\", line 354, in execute_from_command_line\r\n    utility.execute()\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py\", line 346, in execute\r\n    self.fetch_command(subcommand).run_from_argv(self.argv)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py\", line 394, in run_from_argv\r\n    self.execute(*args, **cmd_options)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py\", line 445, in execute\r\n    output = self.handle(*args, **options)\r\n  File \"/usr/local/lib/python2.7/dist-packages/product_details/management/commands/update_product_details.py\", line 64, in handle\r\n    self.download_directory()\r\n  File \"/usr/local/lib/python2.7/dist-packages/product_details/management/commands/update_product_details.py\", line 81, in download_directory\r\n    if not self.download_json_file(urljoin(dir, json_file)):\r\n  File \"/usr/local/lib/python2.7/dist-packages/product_details/management/commands/update_product_details.py\", line 171, in download_json_file\r\n    self._storage.update(json_file, resp.text, resp.headers.get('Last-Modified'))\r\n  File \"/usr/local/lib/python2.7/dist-packages/product_details/storage.py\", line 233, in update\r\n    shutil.move(tf.name, filename)\r\n  File \"/usr/lib/python2.7/shutil.py\", line 302, in move\r\n    copy2(src, real_dst)\r\n  File \"/usr/lib/python2.7/shutil.py\", line 130, in copy2\r\n    copyfile(src, dst)\r\n  File \"/usr/lib/python2.7/shutil.py\", line 83, in copyfile\r\n    with open(dst, 'wb') as fdst:\r\nIOError: [Errno 13] Permission denied: u'/usr/local/lib/python2.7/dist-packages/product_details/json/thunderbird_history_major_releases.json'\r\nmake: *** [sync-all] Error 1\r\n```"}}
{"actor":{"display_login":"jgmize"}}