-
Notifications
You must be signed in to change notification settings - Fork 43
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
Make github webhook easier to extend with new events for auto registration. #3346
Conversation
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.
✅ No Invisible Unicode Characters Detected.
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.
✅ No Invisible Unicode Characters Detected.
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.
✅ No Mixed Scripts Detected.
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.
✅ No Invisible Unicode Characters Detected.
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.
✅ No Mixed Scripts Detected.
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.
✅ No Invisible Unicode Characters Detected.
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.
✅ No Mixed Scripts Detected.
a774c93
to
df5874c
Compare
2e7734c
to
61b87ce
Compare
9247a37
to
92844e7
Compare
35b3d14
to
ffe3c63
Compare
934932d
to
5252307
Compare
a26fafd
to
32e8ac3
Compare
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.
Still reading the patchset, just want to submit some comments I had pending so the review keeps happening from both sides. I like the code so far!
For the record, I like the code, I'm just doing some manual testing before finally acking. |
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.
Manual tests seem to work fine and the code looks good, too.
I think @JAORMX needs to take a look as well because currently he sets changes requested.
…ation. The idea is to make it easier to extend github webhook with events that are tied to more than one repository, namely "installation" and "installation_repositories", which are necessary for repo auto registration. Fixes #3359
To avoid duplicating more code, repoEntity wrapper struct was added. This struct exposes the fields we're interested in for structs representing repositories.
This decouples processing of "installation" events from the production of the message for further processing. Implementation is inspered to EntityInfoWrapper.
Summary
The idea is to make it easier to extend github webhook with events that are tied to more than one repository, namely "installation" and "installation_repositories", which are necessary for repo auto registration.
Fixes #3359
Change Type
Mark the type of change your PR introduces:
Testing
Added several unit tests, plus I additionally tested it manually on a local environment.
Review Checklist: