Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

Commit

Permalink
Don't add a comment for lint jobs when the job passes.
Browse files Browse the repository at this point in the history
This helps reduce the number of bot comments on PRs in the common case.
  • Loading branch information
jgraham authored and sideshowbarker committed Apr 30, 2017
1 parent b89e24a commit 0225fd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion log_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ def parse_logs(logs):
'\n'.join(comment_lines),
flags=re.MULTILINE)

# Don't comment on passing lint jobs
if log['title'] == 'lint' and len(comment_text) == 0:
comment_text = 'Passed'
continue

comments.append({
'job_id': log['job_id'],
Expand Down

0 comments on commit 0225fd3

Please sign in to comment.