def getRequireSchema(): require = {'approval': scalar_or_list(approval), 'open': bool, 'current-patchset': bool, 'status': scalar_or_list(str)} return require
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
def getRequireSchema(): require = {'approval': scalar_or_list(approval), 'open': bool, 'current-patchset': bool, 'status': scalar_or_list(str)} return require
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
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
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
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
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
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
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
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
def getRequireSchema(): require = { 'open': bool, 'merged': bool, 'approved': bool, 'labels': scalar_or_list(str) } return require
def getRequireSchema(): require = { 'score': int, 'open': bool, 'merged': bool, 'status': str, 'tags': scalar_or_list(str) } return require
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
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
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
def getRejectSchema(): reject = {'approval': scalar_or_list(approval)} return reject
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
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
def getRejectSchema(): reject = {'review': scalar_or_list(review)} return reject
def getRejectSchema(): reject = {'approval': scalar_or_list(approval)} return reject