Skip to content

cleanup: fix no-op condition and typo in ChecksNotifier [6/6]#699

Draft
thomasrockhu-codecov wants to merge 1 commit intorefactor/checks-notifier-breakupfrom
refactor/checks-notifier-cleanup
Draft

cleanup: fix no-op condition and typo in ChecksNotifier [6/6]#699
thomasrockhu-codecov wants to merge 1 commit intorefactor/checks-notifier-breakupfrom
refactor/checks-notifier-cleanup

Conversation

@thomasrockhu-codecov
Copy link
Contributor

Summary

Cleanup PR stacked on the ChecksNotifier refactoring PR (#695). Fixes a subtle logic issue and a docstring typo.

Changes

  • Fix comparison.pull is None or ()comparison.pull is None in _validate_pull_request — the or () was a no-op since () (empty tuple) is falsy in Python, so the or branch always evaluated to () which is falsy, making the entire expression equivalent to just is None. This was likely a copy-paste error from the original code that was moved into the new helper method.
  • Fix typo in get_line_diff docstring: "where chnaged" → "were changed"

Test plan

  • ruff check and ruff format pass
  • Existing tests pass in CI (no behavioral change)

Made with Cursor

@codecov-notifications
Copy link

codecov-notifications bot commented Feb 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@sentry
Copy link

sentry bot commented Feb 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (refactor/checks-notifier-breakup@35c9ff1). Learn more about missing BASE report.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@                         Coverage Diff                         @@
##             refactor/checks-notifier-breakup     #699   +/-   ##
===================================================================
  Coverage                                    ?   92.35%           
===================================================================
  Files                                       ?     1302           
  Lines                                       ?    47829           
  Branches                                    ?     1619           
===================================================================
  Hits                                        ?    44171           
  Misses                                      ?     3349           
  Partials                                    ?      309           
Flag Coverage Δ
workerintegration 58.57% <0.00%> (?)
workerunit 90.39% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…fier

- Fix 'comparison.pull is None or ()' to 'comparison.pull is None' in
  _validate_pull_request — the 'or ()' was a no-op since () is falsy,
  so the expression was equivalent to just 'is None'
- Fix typo "where chnaged" -> "were changed" in get_line_diff docstring

Co-authored-by: Cursor <cursoragent@cursor.com>
@thomasrockhu-codecov thomasrockhu-codecov force-pushed the refactor/checks-notifier-cleanup branch from 1feba2c to 9f669c9 Compare February 8, 2026 10:16
@thomasrockhu-codecov thomasrockhu-codecov force-pushed the refactor/checks-notifier-breakup branch from 814ca05 to 35c9ff1 Compare February 8, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant