🔧 chore: update all references from DanceLessonsCoach to dance-lessons-coach
Some checks failed
CI/CD Pipeline / CI Pipeline (push) Failing after 4m0s

This commit is contained in:
2026-04-06 17:27:07 +02:00
parent cb656b2711
commit 157d8e2d19
14 changed files with 579 additions and 101 deletions

View File

@@ -3,7 +3,7 @@ name: gitea-client
description: Gitea API client for job monitoring and PR management
license: MIT
metadata:
author: DanceLessonsCoach Team
author: dance-lessons-coach Team
version: "1.0.0"
---
@@ -70,8 +70,8 @@ The response includes a `html_url` field that provides a direct link to view the
**Example:**
```bash
# Get job status and extract web UI link
gitea-client job-status arcodange DanceLessonsCoach 351 | jq '.html_url'
# Output: "https://gitea.arcodange.lab/arcodange/DanceLessonsCoach/actions/runs/3"
gitea-client job-status arcodange dance-lessons-coach 351 | jq '.html_url'
# Output: "https://gitea.arcodange.lab/arcodange/dance-lessons-coach/actions/runs/3"
```
### Get Job Logs
@@ -91,10 +91,10 @@ Fetch logs for a specific job.
**Examples:**
```bash
# Display logs in console
gitea-client job-logs arcodange DanceLessonsCoach 658
gitea-client job-logs arcodange dance-lessons-coach 658
# Save logs to file
gitea-client job-logs arcodange DanceLessonsCoach 658 job_logs.txt
gitea-client job-logs arcodange dance-lessons-coach 658 job_logs.txt
```
### Get Action Job Logs
@@ -114,10 +114,10 @@ Fetch logs for a specific action job (individual job within a workflow run).
**Examples:**
```bash
# Display action job logs
gitea-client action-logs arcodange DanceLessonsCoach 658
gitea-client action-logs arcodange dance-lessons-coach 658
# Save to file for analysis
gitea-client action-logs arcodange DanceLessonsCoach 658 build_job_logs.txt
gitea-client action-logs arcodange dance-lessons-coach 658 build_job_logs.txt
```
### List Workflow Jobs
@@ -139,13 +139,13 @@ Each job in the response includes a `html_url` field for direct access to that s
**Example:**
```bash
# List all jobs and extract their web UI links
gitea-client list-workflow-jobs arcodange DanceLessonsCoach 351 | jq '.jobs[] | "Job \(.id): \(.name) - \(.html_url)"'
gitea-client list-workflow-jobs arcodange dance-lessons-coach 351 | jq '.jobs[] | "Job \(.id): \(.name) - \(.html_url)"'
```
**Examples:**
```bash
# List all jobs for workflow run 350
gitea-client list-workflow-jobs arcodange DanceLessonsCoach 350
gitea-client list-workflow-jobs arcodange dance-lessons-coach 350
```
### Wait for Job Completion
@@ -205,13 +205,13 @@ List issues for a repository.
**Examples:**
```bash
# List open issues
gitea-client list-issues arcodange DanceLessonsCoach
gitea-client list-issues arcodange dance-lessons-coach
# List closed issues
gitea-client list-issues arcodange DanceLessonsCoach closed
gitea-client list-issues arcodange dance-lessons-coach closed
# List all issues
gitea-client list-issues arcodange DanceLessonsCoach all
gitea-client list-issues arcodange dance-lessons-coach all
```
### Create Issue
@@ -231,10 +231,10 @@ Create a new issue in the repository.
**Examples:**
```bash
# Create a simple issue
gitea-client create-issue arcodange DanceLessonsCoach "Bug in CI workflow" "The CI workflow fails on job 350"
gitea-client create-issue arcodange dance-lessons-coach "Bug in CI workflow" "The CI workflow fails on job 350"
# Create detailed issue with multi-line description
gitea-client create-issue arcodange DanceLessonsCoach "Optimize main branch workflow" "Current workflow has separate version bump and Docker build steps. Need to optimize by:
gitea-client create-issue arcodange dance-lessons-coach "Optimize main branch workflow" "Current workflow has separate version bump and Docker build steps. Need to optimize by:
1. Share artifacts between CI jobs for faster execution
2. Combine version management and Docker build in single workflow
@@ -258,10 +258,10 @@ Get detailed information about a specific issue.
**Examples:**
```bash
# Show issue details
gitea-client show-issue arcodange DanceLessonsCoach 42
gitea-client show-issue arcodange dance-lessons-coach 42
# Get issue and extract title
gitea-client show-issue arcodange DanceLessonsCoach 42 | jq '.title'
gitea-client show-issue arcodange dance-lessons-coach 42 | jq '.title'
```
### Comment on Issue
@@ -281,10 +281,10 @@ Add a comment to an existing issue.
**Examples:**
```bash
# Add simple comment
gitea-client comment-issue arcodange DanceLessonsCoach 42 "Working on this now"
gitea-client comment-issue arcodange dance-lessons-coach 42 "Working on this now"
# Add detailed update
gitea-client comment-issue arcodange DanceLessonsCoach 42 "Created optimized workflow in .gitea/workflows/main-branch-optimized.yaml. Ready for testing."
gitea-client comment-issue arcodange dance-lessons-coach 42 "Created optimized workflow in .gitea/workflows/main-branch-optimized.yaml. Ready for testing."
```
## Workflows
@@ -325,10 +325,10 @@ skill gitea-client comment-pr owner repo pr_number "Job failed: analysis results
```bash
# 1. List open issues
gitea-client list-issues arcodange DanceLessonsCoach
gitea-client list-issues arcodange dance-lessons-coach
# 2. Create new issue for workflow optimization
gitea-client create-issue arcodange DanceLessonsCoach "Optimize main branch workflow" "Current workflow has separate version bump and Docker build steps. Need to optimize by:
gitea-client create-issue arcodange dance-lessons-coach "Optimize main branch workflow" "Current workflow has separate version bump and Docker build steps. Need to optimize by:
1. Share artifacts between CI jobs for faster execution
2. Combine version management and Docker build in single workflow
@@ -336,13 +336,13 @@ gitea-client create-issue arcodange DanceLessonsCoach "Optimize main branch work
4. Reduce total CI time by avoiding redundant builds"
# 3. Show issue details
gitea-client show-issue arcodange DanceLessonsCoach 42
gitea-client show-issue arcodange dance-lessons-coach 42
# 4. Add progress comment
gitea-client comment-issue arcodange DanceLessonsCoach 42 "Created optimized workflow in .gitea/workflows/main-branch-optimized.yaml. Ready for testing."
gitea-client comment-issue arcodange dance-lessons-coach 42 "Created optimized workflow in .gitea/workflows/main-branch-optimized.yaml. Ready for testing."
# 5. Close issue when resolved
gitea-client comment-issue arcodange DanceLessonsCoach 42 "✅ RESOLVED: Optimized workflow implemented and tested successfully."
gitea-client comment-issue arcodange dance-lessons-coach 42 "✅ RESOLVED: Optimized workflow implemented and tested successfully."
```
### Complete CI Debugging Workflow
@@ -421,34 +421,34 @@ The Gitea client skill excels at automated PR commenting during CI/CD workflows.
# Scenario: CI job fails, diagnose and comment on PR
# 1. Find the PR associated with this branch
PR_NUMBER=$(gitea-client list-prs arcodange DanceLessonsCoach \
PR_NUMBER=$(gitea-client list-prs arcodange dance-lessons-coach \
| jq -r '.[] | select(.head.ref == "ci/trunk-based-development") | .number')
# 2. Monitor CI job status
JOB_ID=352
JOB_STATUS=$(gitea-client job-status arcodange DanceLessonsCoach $JOB_ID | jq -r '.status')
JOB_STATUS=$(gitea-client job-status arcodange dance-lessons-coach $JOB_ID | jq -r '.status')
# 3. If job fails, diagnose and comment
if [ "$JOB_STATUS" = "completed" ]; then
CONCLUSION=$(gitea-client job-status arcodange DanceLessonsCoach $JOB_ID | jq -r '.conclusion')
CONCLUSION=$(gitea-client job-status arcodange dance-lessons-coach $JOB_ID | jq -r '.conclusion')
if [ "$CONCLUSION" = "failure" ]; then
# Get detailed logs
gitea-client job-logs arcodange DanceLessonsCoach $JOB_ID job_logs.txt
gitea-client job-logs arcodange dance-lessons-coach $JOB_ID job_logs.txt
# Find error patterns
ERRORS=$(grep -i "error\|fail\|panic" job_logs.txt | head -5)
# Comment on PR with findings
gitea-client comment-pr arcodange DanceLessonsCoach $PR_NUMBER \
"⚠️ CI Job Failed: $JOB_ID\n\n🔍 Diagnosis:\n$ERRORS\n\n📊 Job Details: $(gitea-client job-status arcodange DanceLessonsCoach $JOB_ID | jq -r '.html_url')"
gitea-client comment-pr arcodange dance-lessons-coach $PR_NUMBER \
"⚠️ CI Job Failed: $JOB_ID\n\n🔍 Diagnosis:\n$ERRORS\n\n📊 Job Details: $(gitea-client job-status arcodange dance-lessons-coach $JOB_ID | jq -r '.html_url')"
fi
fi
# 4. Success case - comment on successful build
if [ "$CONCLUSION" = "success" ]; then
gitea-client comment-pr arcodange DanceLessonsCoach $PR_NUMBER \
"✅ CI Job Passed: $JOB_ID\n\n🎉 All checks successful!\n\n📊 Job Details: $(gitea-client job-status arcodange DanceLessonsCoach $JOB_ID | jq -r '.html_url')"
gitea-client comment-pr arcodange dance-lessons-coach $PR_NUMBER \
"✅ CI Job Passed: $JOB_ID\n\n🎉 All checks successful!\n\n📊 Job Details: $(gitea-client job-status arcodange dance-lessons-coach $JOB_ID | jq -r '.html_url')"
fi
```
@@ -458,11 +458,11 @@ fi
# Actual commands used to comment on PR #1:
# Add summary comment
gitea-client comment-pr arcodange DanceLessonsCoach 1 \
gitea-client comment-pr arcodange dance-lessons-coach 1 \
"🎉 Comprehensive PR Summary\n\nThis PR includes CI improvements and new Gitea client skill."
# Add detailed breakdown
gitea-client comment-pr arcodange DanceLessonsCoach 1 \
gitea-client comment-pr arcodange dance-lessons-coach 1 \
"📋 This PR includes 5 key improvements:\n\n1. 🤖 Gitea Client Skill\n2. 🐛 Swagger Generation Fix\n3. ⚡ Performance Optimization\n4. 🔧 Workflow Validation\n5. 📖 Documentation Updates"
```
@@ -481,14 +481,14 @@ gitea-client comment-pr arcodange DanceLessonsCoach 1 \
PREV_JOB=350
CURRENT_JOB=352
gitea-client comment-pr arcodange DanceLessonsCoach 1 \
gitea-client comment-pr arcodange dance-lessons-coach 1 \
"📊 CI Performance Improvement:\n\n- Job $PREV_JOB: ❌ Failed (missing swag)\n- Job $CURRENT_JOB: ⏳ In Progress (with fixes)\n\n🎯 Expected: Faster execution, better reliability"
# Comment with log snippets
gitea-client job-logs arcodange DanceLessonsCoach $CURRENT_JOB > current_logs.txt
gitea-client job-logs arcodange dance-lessons-coach $CURRENT_JOB > current_logs.txt
ERROR_LINE=$(grep -n "pattern docs/swagger.json" current_logs.txt | head -1)
gitea-client comment-pr arcodange DanceLessonsCoach 1 \
gitea-client comment-pr arcodange dance-lessons-coach 1 \
"🔍 Error Analysis:\n\nPrevious error (Job $PREV_JOB):\n> pkg/server/server.go:30:12: pattern docs/swagger.json: no matching files found\n\nCurrent fix:\n> Added: go install github.com/swaggo/swag/cmd/swag@latest\n> Result: Files now generate properly ✅"
```
@@ -524,9 +524,9 @@ xdg-open $(gitea-client job-status owner repo job_id | jq -r '.html_url')
```
**Common URL Patterns:**
- Job: `https://gitea.arcodange.lab/arcodange/DanceLessonsCoach/actions/runs/{run_id}`
- Workflow: `https://gitea.arcodange.lab/arcodange/DanceLessonsCoach/actions`
- PR: `https://gitea.arcodange.lab/arcodange/DanceLessonsCoach/pulls/{pr_number}`
- Job: `https://gitea.arcodange.lab/arcodange/dance-lessons-coach/actions/runs/{run_id}`
- Workflow: `https://gitea.arcodange.lab/arcodange/dance-lessons-coach/actions`
- PR: `https://gitea.arcodange.lab/arcodange/dance-lessons-coach/pulls/{pr_number}`
## Implementation Details