Skip to content

Commit

Permalink
feat(//.github): Linter throws 1 when there needs to be style changes to
Browse files Browse the repository at this point in the history
show failing test to people whose PRs cant get linting inlined

Signed-off-by: Naren Dasan <naren@narendasan.com>
Signed-off-by: Naren Dasan <narens@nvidia.com>
  • Loading branch information
narendasan committed Apr 21, 2021
1 parent 59868d2 commit a39dea7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/scripts/run_cpp_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions .github/scripts/run_py_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit a39dea7

Please sign in to comment.