AI 풀 리퀘스트 생성기
FastMCP 프레임워크를 사용하여 풀 리퀘스트 생성 및 코드 생성을 자동화하는 AI 기반 도구입니다.
특징
- AI를 활용한 업무 계획(GPT-4)
- 계획에 따른 코드 생성
- 자동화된 GitHub 풀 리퀘스트 생성
- FastMCP 프레임워크와의 통합
요구 사항
- 파이썬 3.8 이상
- 저장소 접근 권한이 있는 GitHub 토큰
- OpenAI API 키
- 필수 Python 패키지(requirements.txt 참조)
설정
- 종속성 설치:
지엑스피1
- 환경 변수 설정: 다음 변수가 포함된
.env
파일을 만듭니다.
GITHUB_TOKEN=your_github_token
API_KEY=your_openai_api_key
API_BASE=your_api_base_url
용법
이 도구는 세 가지 주요 기능을 제공합니다.
- 작업 계획
await task_planning(task_file="path/to/task.txt", plan_file="path/to/plan.txt")
- 코드 생성
await code_for_plan(plan_file="path/to/plan.txt", code_file="path/to/code.py")
- 풀 리퀘스트 생성
await create_github_pull_request(
repository="owner/repo",
branch_name="feature-branch",
file_path="path/to/file.py",
file_content="your code",
commit_message="feat: add new feature",
title="Add new feature",
body="Description of changes",
base_branch="main"
)
개발
이 도구는 통신을 위해 FastMCP 프레임워크를 사용하며 서버로 실행됩니다. 로컬에서 실행하려면 다음을 수행하세요.
특허
MIT 라이센스
기여하다
기여를 환영합니다! 풀 리퀘스트를 제출해 주세요.