diff --git a/.github/scripts/run_cpp_linter.py b/.github/scripts/run_cpp_linter.py index b64306efe1..6f1e6b1259 100644 --- a/.github/scripts/run_cpp_linter.py +++ b/.github/scripts/run_cpp_linter.py @@ -23,6 +23,7 @@ if output.returncode != 0: comment = '''There are some changes that do not conform to C++ style guidelines:\n ```diff\n{}```'''.format(output.stdout.decode("utf-8")) approval = 'REQUEST_CHANGES' + exit(1) pr.create_review(commit, comment, approval) diff --git a/.github/scripts/run_py_linter.py b/.github/scripts/run_py_linter.py index 3b2ed70e38..e30a607a46 100644 --- a/.github/scripts/run_py_linter.py +++ b/.github/scripts/run_py_linter.py @@ -23,5 +23,6 @@ if output.returncode != 0: comment = '''There are some changes that do not conform to Python style guidelines:\n ```diff\n{}```'''.format(output.stdout.decode("utf-8")) approval = 'REQUEST_CHANGES' + exit(1) pr.create_review(commit, comment, approval)