You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: improve error and handler log serialization (#826)
* fix: improve error and handler log serialization
- Deserialize error event payload in catch block to log repo name,
event type, and PR number instead of truncated [Object]
- Add repo and PR context to all handler start/complete/error logs
- Fix API non-200 response logging that referenced undefined `message`
- Downgrade "no config found" from info to debug with repo context
- Fix probot.onError to properly serialize error details
- Update test fixtures with repository and PR number in mock payloads
Signed-off-by: Tomer Figenblat <tomer@figenblat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix: handle pull_request_review number fallback and Pino log args
- payload.number is undefined for pull_request_review events; fall back
to payload.pull_request.number in both error handlers.
- Pino silently drops spread args after the message string; pass nested
errors as a merge object instead.
Signed-off-by: Tomer Figenblat <tomer@figenblat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Signed-off-by: Tomer Figenblat <tomer@figenblat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments