How to use the bugwarrior.config.die 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 / 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 / bz.py View on Github external
def validate_config(cls, service_config, target):
        req = ['username', 'base_uri']
        for option in req:
            if option not in service_config:
                die("[%s] has no 'bugzilla.%s'" % (target, option))
        if 'password' not in service_config and 'api_key' not in service_config:
            die("[%s] has neither 'bugzilla.password' nor 'bugzilla.api_key'" % (target,))

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

        IssueService.validate_config(service_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)
github ralphbean / bugwarrior / bugwarrior / services / activecollab2.py View on Github external
def validate_config(cls, service_config, target):
        for k in (
            'url',
            'key',
            'projects',
            'user_id'
        ):
            if not service_config.has(k):
                die("[%s] has no 'activecollab2.%s'" % (target, k))

        super(ActiveCollab2Service, cls).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 / bitbucket.py View on Github external
def validate_config(cls, service_config, target):
        if 'username' not in service_config:
            die("[%s] has no 'username'" % target)
        if 'login' not in service_config:
            die("[%s] has no 'login'" % target)

        IssueService.validate_config(service_config, target)
github ralphbean / bugwarrior / bugwarrior / services / trac.py View on Github external
def validate_config(cls, service_config, target):
        if not service_config.has('base_uri'):
            die("[%s] has no 'base_uri'" % target)
        elif '://' in service_config.get('base_uri'):
            die("[%s] do not include scheme in 'base_uri'" % target)

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

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

        if 'login' not in service_config:
            die("[%s] has no 'gitlab.login'" % target)

        if 'token' not in service_config:
            die("[%s] has no 'gitlab.token'" % target)

        super(GitlabService, cls).validate_config(service_config, target)