ansible-community / ara-infra

Infrastructure management for the ARA Records Ansible project.

Home Page:https://ara.recordsansible.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Experiment Golang's GerritBot for synchronizing GitHub pull requests to Gerrit

dmsimard opened this issue · comments

Golang reviews patches on Gerrit while allowing pull requests to be sent.

They do this with GerritBot which takes care of synchronizing pull requests to gerrit changes.

At a first glance, it looks fairly reliable and automatically takes care of things like:

  • Squashing multiple commits from a PR to a single commit in Gerrit
  • Linking the Gerrit change to the PR (with a commit footer like GitHub-Pull-Request: golang/go#31627)
  • Re-posting comments from gerrit to github

A successful implementation would allow contributors to send pull requests to the different ARA projects.

This is what it looks like from GitHub:

Screenshot from 2019-04-24 15-58-29

And this is what it looks like from Gerrit:

Screenshot from 2019-04-24 16-00-22

It turns out that sqlalchemy also mirror their PRs to gerrit but they do it differently: https://news.ycombinator.com/item?id=24921021

Screenshot_20201028-150443