-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add support for CreateEventPayload and DeleteEvent payload (#1646) #1932
Add support for CreateEventPayload and DeleteEvent payload (#1646) #1932
Conversation
Hi @GMouron, thanks for this! It looks good although one thing I noticed when checking the docs is that the create event payload has |
/// <summary> | ||
/// The object is of type branch | ||
/// </summary> | ||
[Parameter(Value = "branch")] |
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.
minor nit: missing a whitespace line
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.
fixed :)
Hello, yes, it mentions those 2 properties, however, the doc mentions that webhooks do not receive repository creation events :
And when I see the explaination of those 2 fields :
as well as the content of the events sent by github for the creation of a branch which does not contain them, I've decided to omit these here since, from my understanding, they will never be part of the payload we receive |
fe7ec83
to
639830e
Compare
Octokit.net uses these payload response classes for the results from "Activity Event" Api, which does include repository events and thus does include these fields. The response classes can also be used to deserialise webhook payloads, although we dont natively have support for webhooks, so users doing this would be having to call the SipleJsonSerializer themselves currently. So I think the extra fields should be included, since the current main supported use case in Octokit (the events API) would use them. They would then just be When we implement native webhook support we can consider whether to re-use these payload classes or have new ones specifically for the webhook payloads |
OK, I'll be adding them then :) |
639830e
to
aa5b540
Compare
And done :) |
release_notes: Support |
Thanks @GMouron! (we have quite a few payload events that aren't implemented - it would be great if you wanted to add more!) |
Hi, I might take a look into that a bit later but I really needed those ones and I have to first take care of the code that depends on them 😄 |
Hello, I tried to do the same as was done in #1732
Please tell me if anything is missing.
Cheers