def should_send(self, payload, route_config):
        action = payload['action']
        if action not in ["deleted", "created"]:
            return False

        # get the labels from the issue object
        trigger_labels = route_config.get('github_labels')
        self.labels = github.get_issue_labels(
            issue_number=payload['pull_request']['number'],
            route_config=route_config)
        return any([label for label in self.labels if label in trigger_labels])
 def should_send(self, payload, route_config):
     # get the labels from the issue object
     trigger_labels = route_config.get('github_labels')
     self.labels = github.get_issue_labels(issue_number=payload['number'], route_config=route_config)
     return any([label for label in self.labels if label in trigger_labels])