Metadata-Version: 2.3
Name: v-magic-code-review
Version: 0.1.1
Summary: 
Author: Howie Peng
Author-email: howie.peng@veeva.com
Requires-Python: >=3.12,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: atlassian-python-api (==3.41.16)
Requires-Dist: beautifulsoup4 (==4.13.4)
Requires-Dist: gemini-webapi (==1.12.1)
Requires-Dist: lxml (>=5.4.0,<6.0.0)
Requires-Dist: markdownify (==1.1.0)
Requires-Dist: notebook (>=7.4.3,<8.0.0)
Requires-Dist: pyperclip (>=1.9.0,<2.0.0)
Requires-Dist: python-gitlab (==5.6.0)
Requires-Dist: rich (>=14.0.0,<15.0.0)
Requires-Dist: termcolor (>=2.2.0,<2.4.0)
Requires-Dist: tiktoken (>=0.9.0,<0.10.0)
Requires-Dist: yaspin (>=3.1.0,<4.0.0)
Description-Content-Type: text/markdown

# 📖 Guide

## 1️⃣ Install

1. install `brew`: https://brew.sh/

```
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

2. install `pipx`

```
brew install pipx
pipx ensurepath
```

3. install `v-cr`

```
pipx install v-magic-code-review
```

## 2️⃣ Setup environment variables

```
export JIRA_HOST=your jira host
export JIRA_TOKEN=your jira token

export CONFLUENCE_HOST=your confluence host
export CONFLUENCE_TOKEN=your confluence token

export GITLAB_HOST=your gitlab host
export GITLAB_TOKEN=your gitlab token

export GEMINI_COOKIE_SECURE_1PSID=get_from_browser_cookie
export GEMINI_COOKIE_SECURE_1PSIDTS=get_from_browser_cookie
```

## 3️⃣ Usage

```
v-cr ORI-100000
```

### Command Options

```
$ v-cr -h
usage: v-cr [-h] [--mr-id MR_ID] [--only-code] [-c] [-d] [-v] [JIRA_KEY]

Magic Code Review

positional arguments:
  JIRA_KEY           jira issue key

options:
  -h, --help         show this help message and exit
  --mr-id MR_ID      merge request id
  --only-code        only review code diff
  -c, --copy-prompt  copy prompt to clipboard
  -d, --debug
  -v, --version
```

# 🤝 Contributing

1. install `poetry`

```
brew install poetry
```

2. install virtualenv and dependencies

```
poetry install --with dev
```

