forked from ansible-network/Ansieyes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·46 lines (38 loc) · 1.12 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·46 lines (38 loc) · 1.12 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
echo "🚀 Setting up GitHub PR Review Bot"
echo ""
# Check Python version
python_version=$(python3 --version 2>&1 | awk '{print $2}')
echo "Python version: $python_version"
# Create virtual environment
if [ ! -d "venv" ]; then
echo "Creating virtual environment..."
python3 -m venv venv
fi
# Activate virtual environment
echo "Activating virtual environment..."
source venv/bin/activate
# Install dependencies
echo "Installing dependencies..."
pip install --upgrade pip
pip install -r requirements.txt
# Create .env file if it doesn't exist
if [ ! -f ".env" ]; then
echo "Creating .env file from template..."
cp .env.example .env
echo ""
echo "⚠️ Please edit .env file and add your configuration:"
echo " - GEMINI_API_KEY"
echo " - GITHUB_APP_ID"
echo " - GITHUB_PRIVATE_KEY_PATH"
echo " - GITHUB_WEBHOOK_SECRET"
else
echo ".env file already exists"
fi
echo ""
echo "✅ Setup complete!"
echo ""
echo "Next steps:"
echo "1. Edit .env file with your credentials"
echo "2. Run 'python test_bot.py' to test the connection"
echo "3. Run 'python app.py' to start the bot"