コード例 #1
0
ファイル: web.py プロジェクト: cmsj/lint-review
def close_review(user, repo, pull_request):
    try:
        log.info("Scheduling cleanup for %s/%s", user, repo)
        cleanup_pull_request.delay(user, repo, pull_request['number'])
    except:
        log.error('Could not publish job to celery. ' 'Make sure its running.')
    return Response(status=204)
コード例 #2
0
ファイル: web.py プロジェクト: adrianmoisey/lint-review
def close_review(user, repo, pull_request):
    try:
        log.info("Scheduling cleanup for %s/%s", user, repo)
        cleanup_pull_request.delay(user, repo, pull_request['number'])
    except:
        log.error('Could not publish job to celery. '
                  'Make sure its running.')
    return Response(status=204)