-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add Webhooks and Organization Webhooks API methods #40
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #40 +/- ##
==========================================
+ Coverage 50.56% 50.87% +0.31%
==========================================
Files 46 49 +3
Lines 2419 2499 +80
==========================================
+ Hits 1223 1271 +48
- Misses 1130 1162 +32
Partials 66 66 ☔ View full report in Codecov by Sentry. |
|
||
// UnmarshalJSON unmarshals the JSON data into the Webhook structure. | ||
// Headers property can be either an object (map) or an empty array. | ||
func (w *Webhook) UnmarshalJSON(data []byte) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How should this function be used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function is automatically called (from json.Unmarshal
) when decoding JSON data into a Webhook
instance and contains specific decoding logic.
Because the "headers"
property in the returned JSON may contain an object or array and does not match the defined Go type structure.
No description provided.