-
Notifications
You must be signed in to change notification settings - Fork 29
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
GitHub Team event is missing #580
Comments
Thanks for opening an issue. It will need to be added to https://github.com/hub4j/github-api/ first. I will have a look. Which event do you need exactly? Only I let you have a look at https://docs.github.com/en/webhooks/webhook-events-and-payloads and let me know. Thanks! |
@gsmet thanks for your support. Actually I need the following:
|
Yeah, that's what I thought. I created a PR in the GitHub API project: hub4j/github-api#1818 . I'll implement the annotations here when it gets merged and released. |
Until it's implemented, you can update to 2.3.3 where I exposed Obviously, things will be a lot better once properly implemented but if you want to make progress, that could be a workable alternative until then. |
I prepared the integration of the new payloads here: #584 . |
Added in #584 . |
@kacamific Let me know how it goes for you. |
@gsmet Thanks a lot for providing the events. During some investigation, I see that the membership GHMemberChanges has only permission and not roleName. Also the mapping of the permission is usually returning Unknown as the payload when adding new user is as following
I hope you can support by adding the rolename and maybe to do a mapping to the permission as well. Again, thanks a lot, you were super fast! |
Ah I was unable to reproduce the role_name thing myself. I will have a look. As for permission, I wonder if it uses the same thing when using roles. I will have a closer look. |
I pushed hub4j/github-api#1821 . Basically, this particular event is a mess and GitHub is using inconsistent values depending on the event. I'm not sure when we will get a new GitHub API release that fixes it, I'll upgrade when we do. |
@gsmet thanks a lot! |
@bitwiseman was kind enough to release 1.321 so I updated to it and released 2.4.2 that is now available on Maven Central. I changed the types to This has nothing to do with our implementation but with the payload structure sent by GitHub. You might have to actually get the permissions from the repository when you receive an Let us know how it goes for you as it might be something we could document. |
Hi,
Currently it is possible to listen to GitHub Team events only using @RawEvent.
Would it be possible to add support for it?
Thank you in advance!
The text was updated successfully, but these errors were encountered: