티스토리 뷰

https://github.com/Nutlope/aicommits

썩 만족스럽진 않지만 그냥 쓸만은 하다

 

설치

npm 설치

npm i -g aicommits

키 받기

https://platform.openai.com/account/api-keys

설정추가

aicommits config set OPENAI_KEY=sk_kkkkk

 

사용

$ git add .
$ aicommits 
┌   aicommits 
│
◇  Detected 4 staged files:
     src/main/kotlin/com/example/process/payout/PayoutService.kt
     src/main/kotlin/com/example/api/account/module/mypage/MyController.kt
│
◇  Changes analyzed
│
◇  Use this commit message?

   Refactor API endpoints for better clarity and consistency in PayoutService, MyController

│  Yes
│
└  ✔ Successfully committed!

대충 메시지를 만들어주는데 YES 선택해주면 commit처리를 해 버린다

NO 하면 내 API 쿼터 한번 깍아먹고 메시지도 안넣고 끝난다

에디터에 텍스트를 넣어주면 좋았을텐데...

'KnowHow' 카테고리의 다른 글

2023.03 Python파이썬 버전 선택  (0) 2023.03.17
Mac - 특수문자 사용하기 단축키  (0) 2023.02.21
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/04   »
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
글 보관함