How to use the bugwarrior.services.IssueService.validate_config function in bugwarrior

To help you get started, we’ve selected a few bugwarrior examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ralphbean / bugwarrior / bugwarrior / services / mplan.py View on Github external
def validate_config(cls, service_config, target):
        for k in ('login', 'password', 'hostname'):
            if not service_config.has(k):
                die("[%s] has no 'mplan.%s'" % (target, k))

        IssueService.validate_config(service_config, target)
github ralphbean / bugwarrior / bugwarrior / services / youtrack.py View on Github external
def validate_config(cls, service_config, target):
        for k in ('login', 'password', 'host'):
            if k not in service_config:
                die("[%s] has no 'youtrack.%s'" % (target, k))

        IssueService.validate_config(service_config, target)
github ralphbean / bugwarrior / bugwarrior / services / teamlab.py View on Github external
def validate_config(cls, service_config, target):
        for k in ('login', 'password', 'hostname'):
            if not service_config.has(k):
                die("[%s] has no 'teamlab.%s'" % (target, k))

        IssueService.validate_config(service_config, target)
github ralphbean / bugwarrior / bugwarrior / services / bts.py View on Github external
def validate_config(cls, service_config, target):
        if ('udd' in service_config and
                asbool(service_config.get('udd')) and
                'email' not in service_config):
            die("[%s] has no 'bts.email' but UDD search was requested" %
                (target,))

        if 'packages' not in service_config and 'email' not in service_config:
            die("[%s] has neither 'bts.email' or 'bts.packages'" % (target,))

        if ('udd_ignore_sponsor' in service_config and
            (not asbool(service_config.get('udd')))):
            die("[%s] defines settings for UDD search without enabling"
                " UDD search" % (target,))

        IssueService.validate_config(service_config, target)
github ralphbean / bugwarrior / bugwarrior / services / jira.py View on Github external
def validate_config(cls, service_config, target):
        for option in ('username', 'password', 'base_uri'):
            if option not in service_config:
                die("[%s] has no 'jira.%s'" % (target, option))

        IssueService.validate_config(service_config, target)
github ralphbean / bugwarrior / bugwarrior / services / taiga.py View on Github external
def validate_config(cls, service_config, target):
        for option in ('auth_token', 'base_uri'):
            if option not in service_config:
                die("[%s] has no 'taiga.%s'" % (target, option))

        IssueService.validate_config(service_config, target)
github ralphbean / bugwarrior / bugwarrior / services / github.py View on Github external
def validate_config(cls, config, target):
        if not config.has_option(target, 'username'):
            die("[%s] has no 'username'" % target)

        if config.has_option(target, 'only_if_assigned'):
            die("[%s] - github does not currently support issue owners." %
                target)

        IssueService.validate_config(config, target)
github ralphbean / bugwarrior / bugwarrior / services / gerrit.py View on Github external
def validate_config(cls, service_config, target):
        for option in ('username', 'password', 'base_uri'):
            if option not in service_config:
                die("[%s] has no 'gerrit.%s'" % (target, option))

        IssueService.validate_config(service_config, target)