|
@@ -3,6 +3,9 @@
|
|
|
# Script to handle issue automation with Claude Code
|
|
# Script to handle issue automation with Claude Code
|
|
|
# This script is called when an issue is opened or commented on
|
|
# This script is called when an issue is opened or commented on
|
|
|
|
|
|
|
|
|
|
+# Add claude binary to PATH
|
|
|
|
|
+export PATH="$HOME/.local/bin:$PATH"
|
|
|
|
|
+
|
|
|
# Parse arguments
|
|
# Parse arguments
|
|
|
OWNER="$1"
|
|
OWNER="$1"
|
|
|
REPO="$2"
|
|
REPO="$2"
|
|
@@ -27,12 +30,12 @@ if [ "$ASSIGNEE" != "claude" ]; then
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
# Determine repo path
|
|
# Determine repo path
|
|
|
-REPO_PATH="$HOME/$OWNER/$REPO"
|
|
|
|
|
|
|
+REPO_PATH="$HOME/$REPO"
|
|
|
|
|
|
|
|
# Check if repo exists, if not clone it
|
|
# Check if repo exists, if not clone it
|
|
|
if [ ! -d "$REPO_PATH" ]; then
|
|
if [ ! -d "$REPO_PATH" ]; then
|
|
|
echo "Repository not found at $REPO_PATH, cloning..."
|
|
echo "Repository not found at $REPO_PATH, cloning..."
|
|
|
- mkdir -p "$HOME/$OWNER"
|
|
|
|
|
|
|
+ mkdir -p "$HOME"
|
|
|
GIT_URL="ssh://git@207.154.220.231:10022/$OWNER/$REPO.git"
|
|
GIT_URL="ssh://git@207.154.220.231:10022/$OWNER/$REPO.git"
|
|
|
git clone "$GIT_URL" "$REPO_PATH"
|
|
git clone "$GIT_URL" "$REPO_PATH"
|
|
|
|
|
|