File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 23
23
if output .returncode != 0 :
24
24
comment = '''There are some changes that do not conform to C++ style guidelines:\n ```diff\n {}```''' .format (output .stdout .decode ("utf-8" ))
25
25
approval = 'REQUEST_CHANGES'
26
- exit (1 )
27
26
28
27
pr .create_review (commit , comment , approval )
29
28
30
-
29
+ if output .returncode != 0 :
30
+ exit (1 )
31
+ else :
32
+ exit (0 )
Original file line number Diff line number Diff line change 23
23
if output .returncode != 0 :
24
24
comment = '''There are some changes that do not conform to Python style guidelines:\n ```diff\n {}```''' .format (output .stdout .decode ("utf-8" ))
25
25
approval = 'REQUEST_CHANGES'
26
- exit (1 )
27
26
28
27
pr .create_review (commit , comment , approval )
28
+
29
+ if output .returncode != 0 :
30
+ exit (1 )
31
+ else :
32
+ exit (0 )
You can’t perform that action at this time.
0 commit comments