self.data = None
self.json_data = None
+ self.ref = None
+ self.namespace = None
+ self.name = None
+ self.full_name = None
self._log_directory = os.sep + os.path.join('var', 'log', 'webhooks')
sys.exit(0)
LOG.debug("Got JSON data:\n{}".format(pp(self.json_data)))
+
+ self.ref = self.json_data['ref'].split('/')[-1]
+ self.namespace = self.json_data['project']['namespace']
+ self.name = self.json_data['project']['name']
+ self.full_name = self.json_data['project']['path_with_namespace']
+
sys.exit(0)
# =============================================================================