feat: Disable webhook forwarding to codecov#110023
feat: Disable webhook forwarding to codecov#110023calvin-codecov wants to merge 1 commit intomasterfrom
Conversation
Backend Test FailuresFailures on
|
Backend Test FailuresFailures on
|
3695ac5 to
836969a
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
| """ | ||
|
|
||
| if options.get("codecov.forward-webhooks.disabled"): | ||
| return True |
There was a problem hiding this comment.
Same flag checked redundantly across call chain
Low Severity
The codecov.forward-webhooks.disabled option is checked at five locations across only two call chains. In the delivery path, perform_request → perform_codecov_request → _should_skip_codecov_forward_for_github_owner all check the same flag. In the parser path, try_forward_to_codecov → forward_to_codecov both check it. The check in _should_skip_codecov_forward_for_github_owner is especially misplaced since the function is semantically about owner-based filtering, not global disable. This redundancy increases maintenance burden — if the option key changes, five locations need updating.


Disable webhook forwarding behind a flag.