Loading views...

GitGPT Structure

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2023 Jul 18 8:19
Editor
Edited
Edited
2023 Sep 26 15:7
Refs
Refs
  1. default - github repository description 을 목표로 잡고 pull request action
GitGPT Components
 
 
 

POC list

done boolean
OpenAI Function
commit message
OpenAI Function
 
 
 

Repository init flow

  • git llm is under github action
gitgpt = GitGPT() gitgpt.setHub('github') gitgpt.setLLM('chatgpt/gpt4') gitgpt.hub.addeventListener('repo-added', (repo) => { code, description } = gitgpt.hub.getRepo(repo) gitgpt.hub.createDiscussion(description) ) gitgpt.hub.addEventListener('discussion-comment', (comment) => { title, detail } = gitgpt.createTask(code, comment) gitgpt.hub.createIssue(title, detail) ) gitgpt.hub.addEventListener('issue-created', ({id, title, detail}) => code = gitgpt.pull(repo) while (true): files = gitgpt.git.getFiles(code) prompt = gitgpt.llm.diffPrompt(title, detail, files) patch = gitgpt.llm.getPatch(prompt) code = gitgpt.git.patch(patch) prompt = gitgpt.llm.commitPrompt(patch, title, detail) message = gitgpt.llm.getCommitMessage(prompt) code = gitgpt.git.commit(message) done = gitgpt.llm.checkDone(code, title, detail) if done: break gitgpt.hub.createbranch(id) gitgpt.hub.push(code) gitgpt.hub.createPR(code, id) ) gitgpt.hub.addEventListener('issue-comment', 'pr-comment')
 
 
 
 
 

Recommendations