rename-branch plugin

35 views
Skip to first unread message

Orgad Shaneh

unread,
Jul 4, 2025, 4:09:59 AM7/4/25
to Repo and Gerrit Discussion
Hi,

I created a new plugin for renaming a branch:
https://github.com/orgads/gerrit-plugin-rename-branch

Besides just creating a branch with the new name and deleting the old one, it also moves all the open (and optionally closed) changes to the new branch name.

Most of it was implemented with help from Github Copilot. It works well for me and has tests with good coverage, though it could probably use some more polishing.

I would like to host the plugin in gerrit-review. Could you please create a repo for it so I can push the code for review?

Thanks!

Luca Milanesio

unread,
Jul 4, 2025, 5:29:49 AM7/4/25
to Repo and Gerrit Discussion, Luca Milanesio
Hi Orgad,

On 4 Jul 2025, at 09:09, Orgad Shaneh <org...@gmail.com> wrote:

Hi,

I created a new plugin for renaming a branch:
https://github.com/orgads/gerrit-plugin-rename-branch

Besides just creating a branch with the new name and deleting the old one, it also moves all the open (and optionally closed) changes to the new branch name.

Most of it was implemented with help from Github Copilot. It works well for me and has tests with good coverage, though it could probably use some more polishing.

Have you checked that your use of AI is compliant with the Google CLA submission directives? L56-L60 [1]

I would like to host the plugin in gerrit-review. Could you please create a repo for it so I can push the code for review?

Sure, but please make sure that the code is compliant first.



Thanks!

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/d4103840-f99e-4fdb-946e-854d903bc253n%40googlegroups.com.

Orgad Shaneh

unread,
Jul 4, 2025, 7:00:10 AM7/4/25
to Luca Milanesio, Repo and Gerrit Discussion
Hi Luca, and thanks for the prompt reply.

On Fri, Jul 4, 2025 at 12:29 PM Luca Milanesio <luca.mi...@gmail.com> wrote:
Hi Orgad,

On 4 Jul 2025, at 09:09, Orgad Shaneh <org...@gmail.com> wrote:

Hi,

I created a new plugin for renaming a branch:
https://github.com/orgads/gerrit-plugin-rename-branch

Besides just creating a branch with the new name and deleting the old one, it also moves all the open (and optionally closed) changes to the new branch name.

Most of it was implemented with help from Github Copilot. It works well for me and has tests with good coverage, though it could probably use some more polishing.

Have you checked that your use of AI is compliant with the Google CLA submission directives? L56-L60 [1]

Good point! I wasn't aware of that.

If I understand correctly, in order to comply, I need to review the code carefully so that I can claim authorship, and also ensure that it does not include copyrighted code. Did I get that right?

- Orgad
Reply all
Reply to author
Forward
0 new messages