Commits

Alexis Lê-Quôc  committed c713d83

Updated dogapi dependency and specialized commit datadog event.

  • Participants
  • Parent commits 03c3a18

Comments (0)

Files changed (2)

 setup_reqs = []
 
 reqs = []
-reqs.append("dogapi>=0.9.9")
+reqs.append("dogapi>=0.10.4")
 
 setup(
     name = "ddbroker",
-    version = "0.0.1",
+    version = "0.0.2",
     author = "Datadog, Inc.",
     package_dir = {"": "src"},
     py_modules = ["ddbroker"],
     description = "Datadog broker for BitBucket",
     license = "MIT",
     keywords = "datadog data bitbucket",
-    url = "http://datadoghq.com",
+    url = "http://www.datadoghq.com",
     install_requires = reqs,
     setup_requires = setup_reqs,
 )

File src/ddbroker.py

             for c in payload['commits']:
                 title, text = self.from_commit_to_event(c)
                 ids.append(dog.event(title=title, text=text, handle=c['author'], tags=tags,
-                    payload={"repository": payload["repository"], "commit": c}))
+                    payload={"repository": payload["repository"], "commit": c}),
+                    source_type_name="bitbucket", event_type="commit")
             return ids
         except:
             logging.exception("Could not turn commits into Datadog events")