Skip to content

Conversation

@pavanputhra
Copy link
Contributor

  • Updated default_options to allow for dynamic webhook URLs and headers.
  • Improved logging message to reflect the correct context in the run function.
  • Removed hardcoded authorization headers in favor of configurable headers.

This change enhances flexibility in webhook integration and improves code clarity.

- Updated default_options to allow for dynamic webhook URLs and headers.
- Improved logging message to reflect the correct context in the run function.
- Removed hardcoded authorization headers in favor of configurable headers.

This change enhances flexibility in webhook integration and improves code clarity.
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 refactors the webhook configuration to improve flexibility and maintainability. The changes replace hardcoded webhook URLs and authentication values with configurable options, allowing dynamic configuration of webhook endpoints and headers.

Key changes:

  • Replaced hardcoded webhook URLs and authentication credentials with empty defaults
  • Consolidated authentication headers into a single configurable headers dictionary
  • Corrected logging message to reflect the actual module name

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

- Added validation to check for configured webhook URLs before processing.
- Improved logging to warn when no webhook URLs are provided, enhancing error handling.

This change ensures that the webhook integration behaves more predictably and provides clearer feedback in the logs.
@pavanputhra pavanputhra merged commit c79442d into main Jan 4, 2026
1 check passed
@pavanputhra pavanputhra deleted the VCON-255 branch January 4, 2026 10:51
howethomas pushed a commit that referenced this pull request Jan 16, 2026
Refactor webhook configuration and logging
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.

2 participants