-
Notifications
You must be signed in to change notification settings - Fork 49
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
Draft: GitLab events / parsing refactoring #2586
Conversation
Build succeeded. ✔️ pre-commit SUCCESS in 2m 30s |
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.
Thank you 🙏🏻
Looking at this I think I would like to have more namespaces in our code. I would like to have github.PullRequestEvent
or even better event.github.PullRequest
instead of GithubPullRequestEvent
. I don't know what others think about it and I don't know if this could be the right moment for such a big refactoring... but still I think it would be nicer 🙂
Sorry I didn't realize it was still a draft.
I'm thinking about it too :D and I will need to do some changes around anyways, so… the biggest issue is fixing the imports afterwards :D |
I think it will break everything, so… let's do it \o/ |
How about…
@lbarcziova @majamassarini @packit/the-packit-team The bigger issue how to fit the downstream events in there… Do they even count as downstream-only if they come from both GitLab and Pagure? It almost feels like there should be two parsers (parsing Fedora Messaging event) returning the same type (downstream event) regardless of whether it's from GitLab or Pagure. We shouldn't even care about this… I don't want to add another layer of |
you are right, this is probably how it should be done the most correctly but otherwise the proposal looks good to me! Is it manageable to have it like that considering your note about upstream vs downstream? @mfocko |
maybe
? I think that for the beginning I could just rename Pagure to downstream (hide the fact it's pagure) and try to make it more abstract for supporting GitLab (or potentially Forgejo too, if and when Fedora migrates) |
a472ed8
to
89c111a
Compare
Build succeeded. ✔️ pre-commit SUCCESS in 2m 18s |
GitHub PLEASE /o |
TODO:
packit/packit.dev
.Fixes #2471
Related to
Merge before/after
RELEASE NOTES BEGIN
Packit now supports automatic ordering of ☕ after all checks pass.
RELEASE NOTES END