🔧 chore: update all references from DanceLessonsCoach to dance-lessons-coach
Some checks failed
CI/CD Pipeline / CI Pipeline (push) Failing after 4m0s
Some checks failed
CI/CD Pipeline / CI Pipeline (push) Failing after 4m0s
This commit is contained in:
@@ -31,13 +31,13 @@ gitea-client wait-job <owner> <repo> <job_id> [timeout]
|
||||
**Example Workflow:**
|
||||
```bash
|
||||
# 1. Find recent failed jobs
|
||||
gitea-client list-jobs arcodange DanceLessonsCoach 5 10
|
||||
gitea-client list-jobs arcodange dance-lessons-coach 5 10
|
||||
|
||||
# 2. Check status of specific job
|
||||
gitea-client job-status arcodange DanceLessonsCoach 706
|
||||
gitea-client job-status arcodange dance-lessons-coach 706
|
||||
|
||||
# 3. Fetch logs for debugging
|
||||
gitea-client job-logs arcodange DanceLessonsCoach 706 job_706_logs.txt
|
||||
gitea-client job-logs arcodange dance-lessons-coach 706 job_706_logs.txt
|
||||
|
||||
# 4. Analyze logs
|
||||
grep -i "error\|fail" job_706_logs.txt
|
||||
@@ -59,10 +59,10 @@ gitea-client comment-pr <owner> <repo> <pr_number> <comment>
|
||||
**Example Workflow:**
|
||||
```bash
|
||||
# Get PR number from branch
|
||||
PR_NUMBER=$(gitea-client list-prs arcodange DanceLessonsCoach | jq -r '.[] | select(.head.ref == "feature/new-feature") | .number')
|
||||
PR_NUMBER=$(gitea-client list-prs arcodange dance-lessons-coach | jq -r '.[] | select(.head.ref == "feature/new-feature") | .number')
|
||||
|
||||
# Comment on PR with CI results
|
||||
gitea-client comment-pr arcodange DanceLessonsCoach $PR_NUMBER "✅ CI passed: All checks successful!"
|
||||
gitea-client comment-pr arcodange dance-lessons-coach $PR_NUMBER "✅ CI passed: All checks successful!"
|
||||
```
|
||||
|
||||
### 3. Issue Tracking
|
||||
@@ -87,13 +87,13 @@ gitea-client comment-issue <owner> <repo> <issue_number> <comment>
|
||||
**Example Workflow:**
|
||||
```bash
|
||||
# Create issue for bug
|
||||
gitea-client create-issue arcodange DanceLessonsCoach "CI Failure" "Workflow failed on job 706"
|
||||
gitea-client create-issue arcodange dance-lessons-coach "CI Failure" "Workflow failed on job 706"
|
||||
|
||||
# Add progress comment
|
||||
gitea-client comment-issue arcodange DanceLessonsCoach 42 "Investigating logs..."
|
||||
gitea-client comment-issue arcodange dance-lessons-coach 42 "Investigating logs..."
|
||||
|
||||
# Resolve issue
|
||||
gitea-client comment-issue arcodange DanceLessonsCoach 42 "✅ Fixed in commit abc123"
|
||||
gitea-client comment-issue arcodange dance-lessons-coach 42 "✅ Fixed in commit abc123"
|
||||
```
|
||||
|
||||
## 🎯 Real-World Examples
|
||||
@@ -104,19 +104,19 @@ gitea-client comment-issue arcodange DanceLessonsCoach 42 "✅ Fixed in commit a
|
||||
# Scenario: Job failed, need to diagnose
|
||||
|
||||
# 1. List recent jobs
|
||||
gitea-client list-jobs arcodange DanceLessonsCoach 5 5
|
||||
gitea-client list-jobs arcodange dance-lessons-coach 5 5
|
||||
|
||||
# 2. Find failed job
|
||||
gitea-client job-status arcodange DanceLessonsCoach 706
|
||||
gitea-client job-status arcodange dance-lessons-coach 706
|
||||
|
||||
# 3. Fetch logs
|
||||
gitea-client job-logs arcodange DanceLessonsCoach 706 debug_logs.txt
|
||||
gitea-client job-logs arcodange dance-lessons-coach 706 debug_logs.txt
|
||||
|
||||
# 4. Analyze
|
||||
grep -i "error\|panic\|fail" debug_logs.txt
|
||||
|
||||
# 5. Comment on related PR
|
||||
gitea-client comment-pr arcodange DanceLessonsCoach 15 "Found issue in CI - investigating"
|
||||
gitea-client comment-pr arcodange dance-lessons-coach 15 "Found issue in CI - investigating"
|
||||
```
|
||||
|
||||
### Example 2: Automated PR Feedback
|
||||
@@ -125,18 +125,18 @@ gitea-client comment-pr arcodange DanceLessonsCoach 15 "Found issue in CI - inve
|
||||
# Scenario: CI job failed, auto-comment on PR
|
||||
|
||||
JOB_ID=706
|
||||
PR_NUMBER=$(gitea-client list-prs arcodange DanceLessonsCoach | jq -r '.[] | select(.head.ref == "feature/new-api") | .number')
|
||||
PR_NUMBER=$(gitea-client list-prs arcodange dance-lessons-coach | jq -r '.[] | select(.head.ref == "feature/new-api") | .number')
|
||||
|
||||
if [ -n "$PR_NUMBER" ]; then
|
||||
gitea-client job-logs arcodange DanceLessonsCoach $JOB_ID job_logs.txt
|
||||
gitea-client job-logs arcodange dance-lessons-coach $JOB_ID job_logs.txt
|
||||
ERRORS=$(grep -i "error\|fail" job_logs.txt | head -5)
|
||||
|
||||
gitea-client comment-pr arcodange DanceLessonsCoach $PR_NUMBER "⚠️ CI Job Failed: $JOB_ID
|
||||
gitea-client comment-pr arcodange dance-lessons-coach $PR_NUMBER "⚠️ CI Job Failed: $JOB_ID
|
||||
|
||||
🔍 Errors found:
|
||||
$ERRORS
|
||||
|
||||
📊 Job Details: https://gitea.arcodange.lab/arcodange/DanceLessonsCoach/actions/runs/17/jobs/0"
|
||||
📊 Job Details: https://gitea.arcodange.lab/arcodange/dance-lessons-coach/actions/runs/17/jobs/0"
|
||||
fi
|
||||
```
|
||||
|
||||
@@ -146,13 +146,13 @@ fi
|
||||
# Scenario: Feature implementation with issue tracking
|
||||
|
||||
# 1. Create issue for new feature
|
||||
gitea-client create-issue arcodange DanceLessonsCoach "Add user authentication" "Implement OAuth2 authentication for API"
|
||||
gitea-client create-issue arcodange dance-lessons-coach "Add user authentication" "Implement OAuth2 authentication for API"
|
||||
|
||||
# 2. Work on feature, add progress comments
|
||||
gitea-client comment-issue arcodange DanceLessonsCoach 42 "⏳ IN PROGRESS: Implementing OAuth2 provider"
|
||||
gitea-client comment-issue arcodange dance-lessons-coach 42 "⏳ IN PROGRESS: Implementing OAuth2 provider"
|
||||
|
||||
# 3. Complete feature
|
||||
gitea-client comment-issue arcodange DanceLessonsCoach 42 "✅ COMPLETED: Authentication implemented in commit abc123"
|
||||
gitea-client comment-issue arcodange dance-lessons-coach 42 "✅ COMPLETED: Authentication implemented in commit abc123"
|
||||
|
||||
# 4. Reference in commit
|
||||
git commit -m "✨ feat: add OAuth2 authentication (closes #42)"
|
||||
@@ -165,7 +165,7 @@ git commit -m "✨ feat: add OAuth2 authentication (closes #42)"
|
||||
```bash
|
||||
# Watch multiple jobs in parallel
|
||||
for job_id in 706 707 708; do
|
||||
gitea-client job-status arcodange DanceLessonsCoach $job_id &
|
||||
gitea-client job-status arcodange dance-lessons-coach $job_id &
|
||||
done
|
||||
wait
|
||||
```
|
||||
@@ -175,7 +175,7 @@ wait
|
||||
```bash
|
||||
# Create issue from CI when tests fail
|
||||
if [ "$CI_JOB_STATUS" = "failed" ]; then
|
||||
gitea-client create-issue arcodange DanceLessonsCoach \
|
||||
gitea-client create-issue arcodange dance-lessons-coach \
|
||||
"CI Failure: $CI_JOB_NAME" \
|
||||
"Job failed on commit $CI_COMMIT_SHA. See logs: $CI_JOB_URL"
|
||||
fi
|
||||
@@ -186,7 +186,7 @@ fi
|
||||
```bash
|
||||
# Update multiple issues with same comment
|
||||
for issue in 42 43 44; do
|
||||
gitea-client comment-issue arcodange DanceLessonsCoach $issue "Status update: Related to PR #15"
|
||||
gitea-client comment-issue arcodange dance-lessons-coach $issue "Status update: Related to PR #15"
|
||||
done
|
||||
```
|
||||
|
||||
@@ -195,16 +195,16 @@ done
|
||||
### 1. Always Check Job Status First
|
||||
```bash
|
||||
# Before commenting, verify job status
|
||||
gitea-client job-status arcodange DanceLessonsCoach 706
|
||||
gitea-client job-status arcodange dance-lessons-coach 706
|
||||
```
|
||||
|
||||
### 2. Use Descriptive Issue Titles
|
||||
```bash
|
||||
# Good
|
||||
gitea-client create-issue arcodange DanceLessonsCoach "API Authentication Failure" "Detailed description..."
|
||||
gitea-client create-issue arcodange dance-lessons-coach "API Authentication Failure" "Detailed description..."
|
||||
|
||||
# Bad
|
||||
gitea-client create-issue arcodange DanceLessonsCoach "Bug" "Doesn't work"
|
||||
gitea-client create-issue arcodange dance-lessons-coach "Bug" "Doesn't work"
|
||||
```
|
||||
|
||||
### 3. Reference Issues in Commits
|
||||
@@ -216,7 +216,7 @@ git commit -m "🐛 fix: resolve auth bug (closes #42)"
|
||||
### 4. Use Web UI Links
|
||||
```bash
|
||||
# Include links in comments
|
||||
gitea-client comment-pr arcodange DanceLessonsCoach 15 "See: https://gitea.arcodange.lab/arcodange/DanceLessonsCoach/issues/42"
|
||||
gitea-client comment-pr arcodange dance-lessons-coach 15 "See: https://gitea.arcodange.lab/arcodange/dance-lessons-coach/issues/42"
|
||||
```
|
||||
|
||||
## 🎯 Integration Patterns
|
||||
@@ -240,7 +240,7 @@ gitea-client comment-pr arcodange DanceLessonsCoach 15 "See: https://gitea.arcod
|
||||
# Script to create issues from errors
|
||||
ERRORS=$(grep -i "error" app.log | head -5)
|
||||
if [ -n "$ERRORS" ]; then
|
||||
gitea-client create-issue arcodange DanceLessonsCoach \
|
||||
gitea-client create-issue arcodange dance-lessons-coach \
|
||||
"Production Errors Detected" \
|
||||
"Found errors in production logs:\n\n$ERRORS"
|
||||
fi
|
||||
@@ -250,12 +250,12 @@ fi
|
||||
|
||||
### 1. Save Logs for Later Analysis
|
||||
```bash
|
||||
gitea-client job-logs arcodange DanceLessonsCoach 706 job_706_$(date +%Y%m%d).txt
|
||||
gitea-client job-logs arcodange dance-lessons-coach 706 job_706_$(date +%Y%m%d).txt
|
||||
```
|
||||
|
||||
### 2. Monitor Job Progress
|
||||
```bash
|
||||
watch -n 10 "gitea-client job-status arcodange DanceLessonsCoach 706"
|
||||
watch -n 10 "gitea-client job-status arcodange dance-lessons-coach 706"
|
||||
```
|
||||
|
||||
### 3. Script Complex Workflows
|
||||
@@ -265,13 +265,13 @@ watch -n 10 "gitea-client job-status arcodange DanceLessonsCoach 706"
|
||||
JOB_ID=$1
|
||||
PR_NUMBER=$2
|
||||
|
||||
STATUS=$(gitea-client job-status arcodange DanceLessonsCoach $JOB_ID | jq -r '.status')
|
||||
STATUS=$(gitea-client job-status arcodange dance-lessons-coach $JOB_ID | jq -r '.status')
|
||||
if [ "$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
|
||||
gitea-client job-logs arcodange DanceLessonsCoach $JOB_ID logs.txt
|
||||
gitea-client job-logs arcodange dance-lessons-coach $JOB_ID logs.txt
|
||||
ERRORS=$(grep -i "error" logs.txt | head -3)
|
||||
gitea-client comment-pr arcodange DanceLessonsCoach $PR_NUMBER "❌ Job failed: $ERRORS"
|
||||
gitea-client comment-pr arcodange dance-lessons-coach $PR_NUMBER "❌ Job failed: $ERRORS"
|
||||
fi
|
||||
fi
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user