Only check syntax when triggered by gerrit

Change-Id: I75adac51c67877e50c31161e62c1071bcf8e3f15
1 file changed