***v33 #33

Merged
gitea merged 1 commits from mitch into develop 2026-07-09 19:13:56 +00:00
2 changed files with 10 additions and 10 deletions

View File

@ -51,14 +51,14 @@ steps:
cat > /tmp/config.yaml <<EOF
gitea:
url: https://gitea.git.mitchecp.com
token: ${GITEA_TOKEN}
token: $${GITEA_TOKEN}
repositories:
- ${CI_REPO_OWNER}/*
llm:
enabled: true
endpoint: ${DREP_LLM_ENDPOINT}
api_key: ${DREP_LLM_API_KEY}
model: ${DREP_LLM_MODEL}
endpoint: $${DREP_LLM_ENDPOINT}
api_key: $${DREP_LLM_API_KEY}
model: $${DREP_LLM_MODEL}
temperature: 0.2
timeout: 120
max_tokens: 4096
@ -77,7 +77,7 @@ steps:
REPO_API="${GITEA_API}/repos/${CI_REPO_OWNER}/${CI_REPO_NAME}"
HAS_LABEL=$(curl -fsS \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Authorization: token $${GITEA_TOKEN}" \
"${REPO_API}/issues/${CI_COMMIT_PULL_REQUEST}" \
| python3 -c "import json,sys; labels=json.load(sys.stdin).get('labels',[]); print('yes' if any(l.get('name')=='ai-reviewed' for l in labels) else 'no')")
@ -85,13 +85,13 @@ steps:
echo "Label ai-reviewed already present on PR #${CI_COMMIT_PULL_REQUEST}"
else
LABEL_ID=$(curl -fsS \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Authorization: token $${GITEA_TOKEN}" \
"${REPO_API}/labels" \
| python3 -c "import json,sys; print(next((l['id'] for l in json.load(sys.stdin) if l.get('name')=='ai-reviewed'), ''))")
if [ -z "$LABEL_ID" ]; then
LABEL_ID=$(curl -fsS -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Authorization: token $${GITEA_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"name":"ai-reviewed","color":"0e8a16","description":"Drep AI review completed by Woodpecker"}' \
"${REPO_API}/labels" \
@ -99,7 +99,7 @@ steps:
fi
curl -fsS -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Authorization: token $${GITEA_TOKEN}" \
-H "Content-Type: application/json" \
-d "{\"labels\":[${LABEL_ID}]}" \
"${REPO_API}/issues/${CI_COMMIT_PULL_REQUEST}/labels"
@ -122,7 +122,7 @@ steps:
commands:
- apk add --no-cache openssh-client
- mkdir -p ~/.ssh
- echo "$SSH_KEY" > ~/.ssh/mitchecp.pem
- echo "$$SSH_KEY" > ~/.ssh/mitchecp.pem
- chmod 600 ~/.ssh/mitchecp.pem
- ssh-keyscan gitea.git.mitchecp.com >> ~/.ssh/known_hosts
- ssh -i ~/.ssh/mitchecp.pem ec2-user@gitea.git.mitchecp.com "cd /home/ec2-user && touch woodpecker.created.develop.txt"

View File

@ -1,2 +1,2 @@
<?php
echo "Hello, World! - v32";
echo "Hello, World! - v33";