Skip to content

fix: return notice id from notify#232

Merged
stympy merged 2 commits intomasterfrom
fix-async-context-manager
Jan 30, 2026
Merged

fix: return notice id from notify#232
stympy merged 2 commits intomasterfrom
fix-async-context-manager

Conversation

@stympy
Copy link
Member

@stympy stympy commented Jan 30, 2026

Fixes #231

Copilot AI review requested due to automatic review settings January 30, 2026 01:09
@stympy stympy requested review from joshuap and subzero10 January 30, 2026 01:10
@stympy stympy changed the title Return notice id from notify fix: return notice id from notify Jan 30, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modifies the notify method to return notice IDs, enabling callers to track which notices were successfully sent to Honeybadger. The change propagates the return value from the underlying send_notice call through the _send_notice and notify methods.

Changes:

  • Modified _send_notice in core.py to return the notice ID from send_notice
  • Added comprehensive tests for three scenarios: successful notification (returns ID), filtered notification (returns None), and excluded exception (returns None)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
honeybadger/core.py Modified _send_notice to return the notice ID from successful send_notice calls
honeybadger/tests/test_core.py Added three test cases validating return values for success, filtering, and exclusion scenarios

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Add explicit return None for clarity in _send_notice early returns
- Add tests verifying notify() returns notice_id or None appropriately
- Fix black formatting issues in connection.py, test_core.py, utils.py

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@stympy stympy merged commit a74ed0a into master Jan 30, 2026
35 checks passed
subzero10 pushed a commit that referenced this pull request Feb 1, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.1.1](v1.1.0...v1.1.1)
(2026-01-30)


### Bug Fixes

* return notice id from notify
([#232](#232))
([a74ed0a](a74ed0a)),
closes
[#231](#231)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

Honeybadger.notice does not return notice_id

3 participants