GitHub PullRequestReviewCommentEvent at 2014-04-15 01:27:09
Repository: ixdjango
Actor: danni
Payload: {"comment":{"url":"https://api.github.com/repos/infoxchange/ixdjango/pulls/comments/11616810","id":11616810,"diff_hunk":"@@ -5,60 +5,37 @@\n \n \"\"\"\n \n-import pwd\n import os\n-from subprocess import Popen, PIPE\n-from urllib import urlencode\n+from subprocess import call, Popen, PIPE\n \n-from httplib2 import Http, proxy_info_from_environment\n-\n-from django.conf import settings\n from django.core.management.base import NoArgsCommand\n \n-import newrelic.agent\n-\n \n class Command(NoArgsCommand):\n     \"\"\"\n     Notify New Relic of the new version\n     \"\"\"\n \n-    URL = 'https://rpm.newrelic.com/deployments.xml'\n-\n     def handle_noargs(self, **options):\n-        newrelic.agent.initialize(\n-            settings.NEW_RELIC_CONFIG,\n-            settings.NEW_RELIC_ENV\n-        )\n-\n-        config = newrelic.agent.global_settings()\n-\n-        if not config.monitor_mode:\n-            return\n-\n         # get the current git version\n         git = Popen(('git', 'describe'), stdout=PIPE)\n         ver, _ = git.communicate()\n         ver = ver.strip()\n \n-        # get the current user\n-        user = pwd.getpwuid(os.getuid())\n+        # The the tagger name and email\n+        git = Popen(('git', 'show', ver), stdout=PIPE)\n+        desc, _ = git.communicate()\n+        match = re.search('Tagger: (.*) <(.*)>', desc)","path":"ixdjango/management/commands/newrelic_notify_deploy.py","position":46,"original_position":46,"commit_id":"1f5d9419e31ef3ae0d0e37bde297435dd77daf01","original_commit_id":"1f5d9419e31ef3ae0d0e37bde297435dd77daf01","user":{"login":"danni","id":129472,"avatar_url":"https://avatars.githubusercontent.com/u/129472?","gravatar_id":"7fb7089a060b01aac38b15c9e20c9510","url":"https://api.github.com/users/danni","html_url":"https://github.com/danni","followers_url":"https://api.github.com/users/danni/followers","following_url":"https://api.github.com/users/danni/following{/other_user}","gists_url":"https://api.github.com/users/danni/gists{/gist_id}","starred_url":"https://api.github.com/users/danni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danni/subscriptions","organizations_url":"https://api.github.com/users/danni/orgs","repos_url":"https://api.github.com/users/danni/repos","events_url":"https://api.github.com/users/danni/events{/privacy}","received_events_url":"https://api.github.com/users/danni/received_events","type":"User","site_admin":false},"body":"Have a look at `git help show` for information on the `--format` argument.","created_at":"2014-04-15T01:27:09Z","updated_at":"2014-04-15T01:27:09Z","html_url":"https://github.com/infoxchange/ixdjango/pull/9#discussion_r11616810","pull_request_url":"https://api.github.com/repos/infoxchange/ixdjango/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/infoxchange/ixdjango/pulls/comments/11616810"},"html":{"href":"https://github.com/infoxchange/ixdjango/pull/9#discussion_r11616810"},"pull_request":{"href":"https://api.github.com/repos/infoxchange/ixdjango/pulls/9"}}}}