I would like to add a project to gerrithub.io, where the continuous integration parts are done by GitHub Actions. I am considering the following steps given a new change to Gerrit:
- Replicate the change branch to GitHub.
- Add appropriate GitHub CI Actions to run on the change branch.
- Notify gerrithub.io about the CI result.
I am thinking of using Gerrit's REST API to do the notification in 3. However, I do not have a solution to the replication in 1. Any ideas?
GerritHub allows to import GitHub PRs into Gerrit Changes, however, it looks like you would like to do the opposite and have the changes starting in Gerrit and import them as GitHub PRs.
Unfortunately, there isn't a solution available out-of-the-box right now. It shouldn't be very difficult to implement by using the GitHub API, however, I do see a problem having chained Changes represented in GitHub, because PRs cannot be chained.
HTH.
Luca.