코드 리뷰 작성하는 방법 #37
minjae9610
announced in
Announcements
Replies: 1 comment
-
리뷰 내용은 헛소리이니 크게 신경쓰지 말아주세요 :/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
1. 코드 리뷰 화면으로 진입한다.
코드 리뷰어로 배정되었을 때
상단 알림창의 초록색
Add your review
버튼을 눌러서Files changed
페이지로 이동한다.코드 리뷰어로 배정되지 않았을 때
상단 페이지의
Files changed
를 눌러서 이동한다.2. (선택사항) 코드에 코멘트를 작성한다.
코드의 한 라인에 코멘트를 작성할 경우
코멘트를 작성하고 싶은 라인에 마우스를 호버시켜 파란색 + 버튼이 생기면 클릭한다.
코멘트를 작성하고, 초록색
Start a review
버튼을 클릭한다.pending
상태로 작성된 코멘트를 확인한다.pending
상태의 코멘트들은 3번 과정에서 하나의 스레드로 묶여서 PR에 게시된다.코드의 구역에 코멘트를 작성할 경우
코멘트를 작성하고 싶은 라인에 마우스를 호버시켜 파란색 + 버튼이 생기면 드래그한다.
코멘트를 작성하고, 초록색
Start a review
버튼을 클릭한다.pending
상태로 작성된 코멘트를 확인한다.pending
상태의 코멘트들은 3번 과정에서 하나의 스레드로 묶여서 PR에 게시되게 된다.3. 코드 리뷰를 작성한다.
우측 상단의 초록색
Review changes
버튼(2번 항목을 진행했을 경우Finish your review
버튼)을 클릭한다.리뷰의 메인 본문을 작성한다.
리뷰의 성격을 선택한다. (PR이 Merge 되기 위해서는 최소한 2명 이상의
Approve
를 받아야 하지만 리뷰어의 의무는 리뷰이지Approve
는 의무가 아니다. 만약 당신이 최초 배정된 리뷰어인데Approve
를 주지 않으면 해당 PR의 작성자는Approve
를 줄 다른 사람을 찾거나 당신을 설득해야 한다.)초록색
Submit review
버튼을 클릭한다.등록된 리뷰를 보며 만족한다. (PR 작성자의 답변이 달린다면, 그대로 토론을 이어나갈 수 있다.)
꿀팁
Preview
기능을 이용해서 내가 작성한 글이 어떻게 보일지 미리 확인할 수 있다. 코멘트는MarkDown(마크다운)
문법을 지원한다.Add a suggestion
버튼을 이용하거나, 아래 스크린샷과 같이 코드블럭의 키워드를 suggestion으로 설정하면, 선택한 코드에 대한 수정제안을 할 수 있다.이렇게 작성된 리뷰는 해당 PR에서 바로 커밋을 진행할 수 있다.
코멘트에서는 이미지의 첨부,
@
을 이용한 사람 언급,#
을 이용한 다른 문서 언급, 코드나 다른 코멘트에 대한 링크의 첨부가 가능하다.PR 화면에서
.
버튼을 누른다면... 뭔가... 뭔가가 일어난다.Beta Was this translation helpful? Give feedback.
All reactions