Gerrit Code Review 도입하기

Sunyeop Lee·2022년 2월 28일
0

https://hyperconnect.github.io/2022/02/28/gerrit-code-review-introduction.html

(내가 쓴 글이다)

github에서는 refs/heads/*, refs/tags/* 이 업데이트 되었을때만 github actions 실행이 가능하다. 하지만 다른 refspec (gerrit의 경우 refs/changes/*/*/*)이 업데이트 됐을때는 github actions 실행이 되지 않는다. 이 refspec이 업데이트 되었을때 특정 행동을 수행할 API를 뚫기 위해 MITM 방식의 git proxy를 만들어서 github actions 트리거에 이용했다. nom을 이용해 git pack protocol 파서를 만들었고 octocrab과 rocket을 이용해 github api를 찌르기 위한 cache 서버를 개발했는데 만족스러웠다. octocrab에는 간단한 기여도 했다. https://github.com/XAMPPRocky/octocrab/pull/170

0개의 댓글