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
Create a Bugzilla bug for a new Merge Request (Gitlab) #1087
Create a Bugzilla bug for a new Merge Request (Gitlab) #1087
Conversation
Most of the handlers there support all git forges now.
It will support Gitlab as well.
This comment has been minimized.
This comment has been minimized.
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.
Nice, thanks!
See handlers/__init__.py to know what is where now i.e. from packit_service.worker.handlers.abstract import ( Handler, JobHandler, FedmsgHandler, ) from packit_service.worker.handlers.copr_handlers import ( CoprBuildHandler, CoprBuildEndHandler, CoprBuildStartHandler, ) from packit_service.worker.handlers.distgit_handlers import ( DistGitCommitHandler, ProposeDownstreamHandler, ) from packit_service.worker.handlers.forges_handlers import ( GithubAppInstallationHandler, PullRequestLabelHandler, ) from packit_service.worker.handlers.koji_handlers import ( KojiBuildHandler, KojiBuildReportHandler, ) from packit_service.worker.handlers.testing_farm_handlers import ( TestingFarmHandler, TestingFarmResultsHandler, )
67c59f4
to
a49d754
Compare
Build succeeded.
|
a49d754
to
d47c57d
Compare
Build succeeded.
|
d47c57d
to
d1613ea
Compare
Build succeeded.
|
It's been renamed from PagurePullRequestLabelHandler and reacts to MergeRequestGitlabEvent (which now has also source_repo_branch & target_repo_branch attributes). Creating a Bugzilla bug is no longer a reaction to added label, but triggered by opening a new MR and is now restricted to set of allowed namespaces and branches. The now unused code for handling labels on Pagure has been removed.
d1613ea
to
ccc6fa9
Compare
Build succeeded.
|
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.
Sorry for happily reviewing the label-version of this workflow. I've thought the same.
Thanks for all the work!
Do you think we will ever need to react on labels? (I am just thinking about whether it makes sense to preserve the parsing you've implemented and is now not present?) |
I can easily imagine a future workflow where p-s, or probably "the-new-thing", will react to labels. |
It's gone, sorry :-) Thanks for review, will merge this after we move stable branches today. |
Build succeeded (gate pipeline).
|
When an "accepted" flag is added to a MR in a source-git repo, create a bug in Bugzilla against that component for the CentOS Stream version.
We already have the functionality for Pagure, but because we've moved our source-git repos to Gitlab we need support for Gitlab.
Since this MR flag -> BZ workflow is c8s specific and we won't go back to Pagure, this PR removes the relevant Pagure related pieces.
There are some refactoring commits, so it's better to check them separately.