| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
- ChatGPT
- swift github action
- Firebase
- combine
- 함수형 프로그래밍
- IOS
- CI
- Apple Developer Academy @ POSTECH
- firestore
- 하드디스크 삭제 원리
- 2기화이팅
- 액션과 계산 데이터
- LGTM
- 오픈소스
- unittest
- os_log
- 함수형 코딩
- SwiftUI
- flutter
- github
- 쏙쏙 들어오는 함수형 코딩
- Swift
- XCTest
- MVVM
- auto_assign
- xcode
- print 단점
- SwiftUI VStack
- swift CI 적용
- Swift thread
- Today
- Total
개발공방
Github auto_assign 설정 본문
Github를 이용해서 팀 프로젝트를 할 때 Pull Request를 생성하면 자동으로 코드리뷰어를 설정해주는 CI입니다.
1. 아래 사이트에 들어가서 Add to Github 버튼을 누릅니다.
https://probot.github.io/apps/auto-assign/
https://probot.github.io/apps/auto-assign/
What it does Auto Assign adds reviewers/assignees to pull requests when pull requests are opened. How it works When the pull request is opened, automatically add reviewers/assignees to the pull request.If the number of reviewers/assignees is specified, ran
probot.github.io

2. 추가할 organigation을 선택합니다

3. 추가할 repository를 검색 후 추가합니다.

4. 목록에 추가된 걸 확인합니다.

5. Update access를 눌러 업데이트 합니다.

6. 깃허브에 auto_assign.yml 파일을 추가합니다. (택 1)
6-1. 깃허브 웹에서 바로 추가하는 방법

Create new file을 누르고

직접 auto_assign.yml 이라는 파일을 만들고 내부에 코드를 추가합니다 (파일명 중요!)
# Set to true to add reviewers to pull requests
addReviewers: true
# Set to true to add assignees to pull requests
addAssignees: false
# A list of reviewers to be added to pull requests (GitHub user name)
reviewers:
- MMMIIIN (예시)
- 팀원의 깃허브 닉네임
- 팀원의 깃허브 닉네임
- 팀원의 깃허브 닉네임
- 팀원의 깃허브 닉네임
# A list of keywords to be skipped the process that add reviewers if pull requests include it
skipKeywords:
- wip
# A number of reviewers added to the pull request
# Set 0 to add all the reviewers (default: 0)
numberOfReviewers: 0

커밋합니다
6-2. local 폴더에서 추가하고 push 하는 방법
1. 해당 폴더를 열어줍니다 (초기 세팅중이라 아무것도 없음)

2. Shift + Command + . 눌러서 숨김파일을 보이게 합니다.

3. auto_assign.yml 파일을 만듭니다 (파일명 중요!)
4. 내부에 코드를 작성합니다.
# Set to true to add reviewers to pull requests
addReviewers: true
# Set to true to add assignees to pull requests
addAssignees: false
# A list of reviewers to be added to pull requests (GitHub user name)
reviewers:
- MMMIIIN (예시)
- 팀원의 깃허브 닉네임
- 팀원의 깃허브 닉네임
- 팀원의 깃허브 닉네임
- 팀원의 깃허브 닉네임
# A list of keywords to be skipped the process that add reviewers if pull requests include it
skipKeywords:
- wip
# A number of reviewers added to the pull request
# Set 0 to add all the reviewers (default: 0)
numberOfReviewers: 0
+) 팀원의 깃허브 닉네임 보기

없다면

주소창의 요 부분입니다 ^_______^
5. 생성 완료

6. 커밋합니다

untracked 파일이기 때문에
$ git add *
명령어가 먹질 않습니다
그래서
$ git add .github/auto_assign.yml
직접 add해야합니다.

7. 원격에 push 합니다.
8. 설정 완료 !
'Git' 카테고리의 다른 글
| [CI] Swift Github Action 적용기 (0) | 2022.11.28 |
|---|