Mirroring Gerrit Changes as GitHub PRs

81 views
Skip to first unread message

Rohit Agarwal

unread,
Aug 6, 2022, 2:01:52 PM8/6/22
to repo-d...@googlegroups.com
Hello,

Is there some tool or plugin that will automatically create a GitHub PR for every Gerrit Change?

Context: A lot of the tooling in my company is integrated with GitHub Enterprise. My team uses Gerrit for code reviews (because it's so much better :)). But most teams don't do that and there are a bunch of integrations that have been built for GitHub that are not built for Gerrit.

I was wondering if there's some tool/plugin that will create a GitHub PR for every Change sent to Gerrit (and keep the PR updated as the Change is updated with more patchsets).

This would be similar to the GerritBot that the Go team has but in the other direction.

--
Rohit

Nasser Grainawi

unread,
Aug 8, 2022, 1:18:16 PM8/8/22
to Rohit Agarwal, repo-d...@googlegroups.com
On Sat, Aug 6, 2022 at 12:01 PM 'Rohit Agarwal' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:
Hello,

Is there some tool or plugin that will automatically create a GitHub PR for every Gerrit Change?


Looks like it layers on top of Copybara, which has Gerrit and GitHub APIs, but I don't have personal experience with it.
 

Context: A lot of the tooling in my company is integrated with GitHub Enterprise. My team uses Gerrit for code reviews (because it's so much better :)). But most teams don't do that and there are a bunch of integrations that have been built for GitHub that are not built for Gerrit.

I was wondering if there's some tool/plugin that will create a GitHub PR for every Change sent to Gerrit (and keep the PR updated as the Change is updated with more patchsets).

This would be similar to the GerritBot that the Go team has but in the other direction.

--
Rohit

--
--
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 on the web visit https://groups.google.com/d/msgid/repo-discuss/CAKkjO9KatukpKn9xzEJXfLqhVjs_YE3uuXWjVd2icaAq_-zgqQ%40mail.gmail.com.

Rohit Agarwal

unread,
Aug 8, 2022, 1:43:51 PM8/8/22
to Nasser Grainawi, repo-d...@googlegroups.com
Unfortunately, this also seems to be in the other direction (bring GitHub PRs in as Gerrit changes): https://skia.googlesource.com/buildbot/+/c9c711aaa28c/codereview-watcher/go/codereview-watcher/main.go#71

--
Rohit

Nasser Grainawi

unread,
Aug 8, 2022, 1:54:20 PM8/8/22
to Rohit Agarwal, repo-d...@googlegroups.com
On Mon, Aug 8, 2022 at 11:43 AM Rohit Agarwal <rohit....@airbnb.com> wrote:
Unfortunately, this also seems to be in the other direction (bring GitHub PRs in as Gerrit changes): https://skia.googlesource.com/buildbot/+/c9c711aaa28c/codereview-watcher/go/codereview-watcher/main.go#71

Yeah, so maybe you can figure how to do it using Copybara directly or find another tool. Sorry I don't know of one.
Reply all
Reply to author
Forward
0 new messages