Honor exclude_commits for github integration

We weren't before :(

(imported from commit 3691066a50f1b67c227dbfc056dc8cdf2c06eea8)
This commit is contained in:
acrefoot
2014-03-04 17:22:09 -05:00
committed by Steve Howell
parent bc9a9db9b3
commit c3543b06f0

View File

@@ -206,6 +206,10 @@ def api_github_landing(request, user_profile, event=REQ,
if event == 'issue_comment' and payload['action'] != 'created' or exclude_issues:
return json_success()
# Filter commits traffic if requested
if event in ("push", "commit_comment") and exclude_commits:
return json_success()
if event == 'push':
# This is a bit hackish, but is basically so that CUSTOMER18 doesn't
# get spammed when people commit to non-master all over the place.