Exemplo n.º 1
0
def getRequireSchema():
    require = {'approval': scalar_or_list(approval),
               'open': bool,
               'current-patchset': bool,
               'status': scalar_or_list(str)}

    return require
Exemplo n.º 2
0
def getSchema():
    gitlab_trigger = {
        v.Required('event'): scalar_or_list(v.Any('gl_merge_request')),
        'action': scalar_or_list(str),
        'comment': scalar_or_list(str),
    }
    return gitlab_trigger
Exemplo n.º 3
0
def getRequireSchema():
    require = {'approval': scalar_or_list(approval),
               'open': bool,
               'current-patchset': bool,
               'status': scalar_or_list(str)}

    return require
Exemplo n.º 4
0
def getRequireSchema():
    require = {'status': scalar_or_list(str),
               'review': scalar_or_list(review),
               'open': bool,
               'current-patchset': bool,
               'label': scalar_or_list(str)}
    return require
Exemplo n.º 5
0
def getSchema():
    git_trigger = {
        v.Required('event'): scalar_or_list(v.Any('ref-updated')),
        'ref': scalar_or_list(str),
        'ignore-deletes': bool,
    }

    return git_trigger
Exemplo n.º 6
0
def getRejectSchema():
    reject = {'status': scalar_or_list(str),
              'review': scalar_or_list(review),
              'open': bool,
              'merged': bool,
              'current-patchset': bool,
              'label': scalar_or_list(str)}
    return reject
Exemplo n.º 7
0
def getRejectSchema():
    reject = {'status': scalar_or_list(str),
              'review': scalar_or_list(review),
              'open': bool,
              'merged': bool,
              'current-patchset': bool,
              'label': scalar_or_list(str)}
    return reject
Exemplo n.º 8
0
def getSchema():
    zuul_trigger = {
        v.Required('event'):
        scalar_or_list(v.Any('parent-change-enqueued',
                             'project-change-merged')),
        'pipeline': scalar_or_list(str),
    }

    return zuul_trigger
Exemplo n.º 9
0
def getSchema():
    git_trigger = {
        v.Required('event'):
            scalar_or_list(v.Any('ref-updated')),
        'ref': scalar_or_list(str),
        'ignore-deletes': bool,
    }

    return git_trigger
Exemplo n.º 10
0
def getSchema():
    zuul_trigger = {
        v.Required('event'):
        scalar_or_list(v.Any('parent-change-enqueued',
                             'project-change-merged')),
        'pipeline':
        scalar_or_list(str),
    }

    return zuul_trigger
Exemplo n.º 11
0
def getSchema():
    github_reporter = v.Schema({
        'status': v.Any('pending', 'success', 'failure'),
        'status-url': str,
        'comment': bool,
        'merge': bool,
        'label': scalar_or_list(str),
        'unlabel': scalar_or_list(str)
    })
    return github_reporter
Exemplo n.º 12
0
def getRequireSchema():
    require = {
        'open': bool,
        'merged': bool,
        'approved': bool,
        'labels': scalar_or_list(str)
    }
    return require
Exemplo n.º 13
0
def getRequireSchema():
    require = {
        'score': int,
        'open': bool,
        'merged': bool,
        'status': str,
        'tags': scalar_or_list(str)
    }
    return require
Exemplo n.º 14
0
def getSchema():
    github_trigger = {
        v.Required('event'):
            scalar_or_list(v.Any('pull_request',
                                 'pull_request_review',
                                 'push')),
        'action': scalar_or_list(str),
        'branch': scalar_or_list(str),
        'ref': scalar_or_list(str),
        'comment': scalar_or_list(str),
        'label': scalar_or_list(str),
        'unlabel': scalar_or_list(str),
        'state': scalar_or_list(str),
        'require-status': scalar_or_list(str),
        'status': scalar_or_list(str)
    }

    return github_trigger
Exemplo n.º 15
0
def getSchema():
    github_reporter = v.Schema({
        'status':
        v.Any('pending', 'success', 'failure'),
        'status-url':
        str,
        'comment':
        bool,
        'merge':
        bool,
        'label':
        scalar_or_list(str),
        'unlabel':
        scalar_or_list(str),
        'review':
        v.Any('approve', 'request-changes', 'comment'),
        'review-body':
        str
    })
    return github_reporter
Exemplo n.º 16
0
def getSchema():
    pagure_trigger = {
        v.Required('event'):
        # Cannot use same event type than github as it collapse
        # with Registered github triggers if any. The Event filter
        # does not have the connections info like the Ref filter (require)
        # have. See manager/__init__.py:addChange
        scalar_or_list(
            v.Any('pg_pull_request', 'pg_pull_request_review', 'pg_push')),
        'action':
        scalar_or_list(str),
        'ref':
        scalar_or_list(str),
        'comment':
        scalar_or_list(str),
        'status':
        scalar_or_list(str),
    }

    return pagure_trigger
Exemplo n.º 17
0
def getRejectSchema():
    reject = {'approval': scalar_or_list(approval)}

    return reject
Exemplo n.º 18
0
def getSchema():
    variable_dict = v.Schema(dict)

    approval = v.Schema(
        {
            'username': str,
            'email': str,
            'older-than': str,
            'newer-than': str,
        },
        extra=v.ALLOW_EXTRA)

    gerrit_trigger = {
        v.Required('event'):
        scalar_or_list(
            v.Any('patchset-created', 'draft-published', 'change-abandoned',
                  'change-restored', 'change-merged', 'comment-added',
                  'ref-updated')),
        'comment_filter':
        scalar_or_list(str),
        'comment':
        scalar_or_list(str),
        'email_filter':
        scalar_or_list(str),
        'email':
        scalar_or_list(str),
        'username_filter':
        scalar_or_list(str),
        'username':
        scalar_or_list(str),
        'branch':
        scalar_or_list(str),
        'ref':
        scalar_or_list(str),
        'ignore-deletes':
        bool,
        'approval':
        scalar_or_list(variable_dict),
        'require-approval':
        scalar_or_list(approval),
        'reject-approval':
        scalar_or_list(approval),
    }

    return gerrit_trigger
Exemplo n.º 19
0
def getSchema():
    variable_dict = v.Schema(dict)

    approval = v.Schema({'username': str,
                         'email': str,
                         'older-than': str,
                         'newer-than': str,
                         }, extra=v.ALLOW_EXTRA)

    gerrit_trigger = {
        v.Required('event'):
            scalar_or_list(v.Any('patchset-created',
                                 'draft-published',
                                 'change-abandoned',
                                 'change-restored',
                                 'change-merged',
                                 'comment-added',
                                 'ref-updated')),
        'comment_filter': scalar_or_list(str),
        'comment': scalar_or_list(str),
        'email_filter': scalar_or_list(str),
        'email': scalar_or_list(str),
        'username_filter': scalar_or_list(str),
        'username': scalar_or_list(str),
        'branch': scalar_or_list(str),
        'ref': scalar_or_list(str),
        'ignore-deletes': bool,
        'approval': scalar_or_list(variable_dict),
        'require-approval': scalar_or_list(approval),
        'reject-approval': scalar_or_list(approval),
    }

    return gerrit_trigger
Exemplo n.º 20
0
def getRejectSchema():
    reject = {'review': scalar_or_list(review)}
    return reject
Exemplo n.º 21
0
def getRejectSchema():
    reject = {'approval': scalar_or_list(approval)}

    return reject