command line으로 issue number 를 사용해서 close and resolve 등등은 가능한거 같은데
issue create은 cli를 따로 사용해야 되는거 같다.
github cli 설치
sudo snap install gh
설치 후 To authecticate
gh auth login
하면 몇가지 procedure가 존재하는데
What account do you want to log into? -> Github.com
What is your preferred protocol for Git operations? -> HTTPS (관련링크: gist.github.com/grawity/4392747)
Authenticate Git with your GitHub credentials? -> yes
How would you like to authenticate GitHub CLI? -> Login with a web brower
엔터를 누르면 Authenticate 페이지가 있는 창이 열리고 제공된 xxxx-xxxx 의 8자리 코드를 입력하면
나의 github 계정과 연동시켜주는 것을 알 수 있다.
그리고 아래의 코드를 실행하면
이슈 만들기
gh issue create --title "Issue create from command line test" --body "Is this working"
이 이슈를 command line에서 종료하려면
git commit -m "your message -close #2"
#뒤에는 issue 번호를 넣어주면 된다.
#commit 후 push 하면 issue가 close 된걸 알 수 있다.
Git commit으로 issue 종료하는 방법 (close issue with commit)
Git(github, gitlab)과 같은 버전 관리 시스템을 활용하면 코드 관리 뿐만 아니라 팀원들과의 협업 또한 굉장히 효율적이게 진행할 수 있습니다. git에서 굉장히 자주 사용하는 명령
webruden.tistory.com
github cli
cli.github.com/manual/gh_issue
gh issue
Take GitHub to the command line
cli.github.com
'DL' 카테고리의 다른 글
[Python] change even & odd element in 2d list (0) | 2021.03.10 |
---|---|
[OpenCV] cv2.addWeighted - Image Overlay (0) | 2021.03.09 |
[Pytorch] Multi-label classification Loss Selection (0) | 2021.02.22 |
[딥러닝을 이용한 자연어 처리-조경현] Basic Machine Learning: Supervised Learning (0) | 2021.02.16 |
[Git repo] from "git clone" to "merge" (0) | 2021.01.31 |
댓글