Skip to main content

A short description of your package

Project description

Smart Pull Request Generator

Smart Pull Request Generator는 GitHub와 JIRA를 통합하여 스마트한 풀 리퀘스트를 생성하는 도구입니다. 이 도구는 개발자가 더 효율적으로 작업할 수 있도록 돕습니다.

설치 방법

설치하기

pip install --upgrade smart-pr-generator

로컬에 CLI 설치하기

다음 명령어를 사용하여 로컬에 설치할 수 있습니다:

pip install .

# 개발 모드로 설치
pip install -e .

GitHub에서 설치하기

GitHub 저장소에서 직접 설치하려면 다음 명령어를 사용하세요:

pip install git+https://github.com/jeongsk/Smart-PR-Generator.git

필수 설정

GitHub 토큰 발급 받기

GitHub 토큰을 발급 받으려면 GitHub 토큰 설정 페이지로 이동하세요.

JIRA API 토큰 발급 받기

JIRA API 토큰을 발급 받으려면 JIRA API 토큰 설정 페이지로 이동하세요.

환경 변수 설정

다음 환경 변수를 설정해야 합니다:

export SMART_PR_GENERATOR_API_KEY="LAAS API KEY"

export GITHUB_TOKEN="개인 깃허브 토큰"

export JIRA_EMAIL="지라 개인 이메일 주소"
export JIRA_API_TOKEN="지라 개인 API 액세스 토큰"

환경 변수를 설정하는 방법은 세 가지가 있습니다:

  1. ~/.zshrc 파일에 환경 변수를 추가합니다.
  2. ~/.smart-pr-generator 파일을 생성하고 위의 환경 변수를 추가합니다.
  3. 프로젝트 루트에 .env 파일을 생성하고 위의 환경 변수를 추가합니다.

프로젝트 구조

  • smart_pr_generator/: 주요 소스 코드가 포함된 디렉토리입니다.
    • __init__.py: 패키지 초기화 파일입니다.
    • agents.py: 에이전트 관련 기능을 포함합니다.
    • config.py: 설정 관련 기능을 포함합니다.
    • main.py: 프로그램의 진입점입니다.
    • prompts.py: 사용자 프롬프트 관련 기능을 포함합니다.
    • tools.py: 도구 관련 기능을 포함합니다.
    • helpers/: 보조 기능을 포함한 디렉토리입니다.
      • __init__.py: 보조 기능 초기화 파일입니다.
      • get_git_info.py: Git 정보 수집 기능을 포함합니다.
      • github_client.py: GitHub 클라이언트 기능을 포함합니다.
      • is_tool_calling.py: 도구 호출 여부를 확인하는 기능을 포함합니다.
      • jira_client.py: JIRA 클라이언트 기능을 포함합니다.
  • tests/: 테스트 코드가 포함된 디렉토리입니다.
    • test_main.py: 메인 기능에 대한 테스트를 포함합니다.

사용 예시

설치 및 환경 변수 설정 후, 다음과 같은 명령어로 Smart Pull Request Generator를 사용할 수 있습니다:

# 사용 명령어 Pull Request
$ spr

기여하기

기여를 원하신다면, 이 저장소를 포크하고 풀 리퀘스트를 보내주세요. 기여는 언제나 환영입니다!

라이선스

이 프로젝트는 MIT 라이선스 하에 배포됩니다. 자세한 내용은 LICENSE 파일을 참조하세요.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smart_pr_generator-0.1.15.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smart_pr_generator-0.1.15-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file smart_pr_generator-0.1.15.tar.gz.

File metadata

  • Download URL: smart_pr_generator-0.1.15.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for smart_pr_generator-0.1.15.tar.gz
Algorithm Hash digest
SHA256 40c74376b9110c9e4d7a3267b3864d8c26e474796cead709881f80520964f8e4
MD5 054af2a1645cd47946eb575e571f6a33
BLAKE2b-256 97525bce30f143d857ae7163de0b44a117b37a5b1095caba9f9f9f8234baffc1

See more details on using hashes here.

File details

Details for the file smart_pr_generator-0.1.15-py3-none-any.whl.

File metadata

File hashes

Hashes for smart_pr_generator-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 a1c3644f28222c059d666051428e7fcd6d6763b7704056d99bd69a404e7df8a2
MD5 4a79296293d9b89193c632dafde10c3b
BLAKE2b-256 bbeb5a09c13dd0ba450d3d1f7b38d01b296147a9efc5991e0791660d83e0fc1c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page