#35 Request for `centpkg mr`
Opened 3 years ago by mohanboddu. Modified 2 years ago

Able to create a merge request in dist-git by running centpkg mr with the diff and commit message from the changelog would be really useful.


It may be a good idea to create a "gitlab client class/module" to isolate all gitlab integration since implementing this will require to write another api integration code.

Some additional info from CentOS Stream tracker:

It takes several actions to create an MR in your browser. It would be more efficient to only have a single command in centpkg to open an MR against a specific branch, e.g.

$ centpkg mr c9s
--> Pushing changes to gitlab.com/TomasTomecek/systemd.git, branch: fix#rhbz1337
--> Opening $EDITOR to get MR title and description
--> MR created against origin:c9s gitlab.com/redhat/centos-stream/rpms/systemd/-/merge-requests/42

If you want to get inspired, we already have a tool for this: https://github.com/packit/upsint/blob/main/upsint/cli.py#L86

Metadata Update from @tdawson:
- Issue tagged with: Feature Request

2 years ago

Login to comment on this ticket.

Metadata