-
Notifications
You must be signed in to change notification settings - Fork 13
chore: scrub private repo references from public codebase #2204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -185,7 +185,7 @@ configure_resolver() { | |||||
| # Traefik conf.d Migration | ||||||
| # ============================================================================= | ||||||
| # Migrates from single dynamic.yml to conf.d/ directory provider. | ||||||
| # Preserves existing routes (e.g., awardsapp) by splitting into per-app files. | ||||||
| # Preserves existing routes (e.g., webapp) by splitting into per-app files. | ||||||
|
|
||||||
| migrate_traefik_to_confd() { | ||||||
| print_info "Migrating Traefik to conf.d/ directory provider..." | ||||||
|
|
@@ -222,34 +222,34 @@ migrate_dynamic_yml() { | |||||
| cp "$dynamic_yml" "$BACKUP_DIR/$backup_name" | ||||||
| print_info "Backed up dynamic.yml to $BACKUP_DIR/$backup_name" | ||||||
|
|
||||||
| # Check if awardsapp route exists in dynamic.yml | ||||||
| if grep -q 'awardsapp' "$dynamic_yml" 2>/dev/null; then | ||||||
| # Extract and create awardsapp conf.d file | ||||||
| if [[ ! -f "$CONFD_DIR/awardsapp.yml" ]]; then | ||||||
| create_awardsapp_confd | ||||||
| print_success "Migrated awardsapp route to conf.d/awardsapp.yml" | ||||||
| # Check if webapp route exists in dynamic.yml | ||||||
| if grep -q 'webapp' "$dynamic_yml" 2>/dev/null; then | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The error suppression
Suggested change
References
|
||||||
| # Extract and create webapp conf.d file | ||||||
| if [[ ! -f "$CONFD_DIR/webapp.yml" ]]; then | ||||||
| create_webapp_confd | ||||||
| print_success "Migrated webapp route to conf.d/webapp.yml" | ||||||
| else | ||||||
| print_info "conf.d/awardsapp.yml already exists — skipping migration" | ||||||
| print_info "conf.d/webapp.yml already exists — skipping migration" | ||||||
| fi | ||||||
| fi | ||||||
|
|
||||||
| return 0 | ||||||
| } | ||||||
|
|
||||||
| # Create the awardsapp conf.d file from the known existing config | ||||||
| create_awardsapp_confd() { | ||||||
| cat >"$CONFD_DIR/awardsapp.yml" <<'YAML' | ||||||
| # Create the webapp conf.d file from the known existing config | ||||||
| create_webapp_confd() { | ||||||
| cat >"$CONFD_DIR/webapp.yml" <<'YAML' | ||||||
| http: | ||||||
| routers: | ||||||
| awardsapp: | ||||||
| rule: "Host(`awardsapp.local`)" | ||||||
| webapp: | ||||||
| rule: "Host(`webapp.local`)" | ||||||
| entryPoints: | ||||||
| - websecure | ||||||
| service: awardsapp | ||||||
| service: webapp | ||||||
| tls: {} | ||||||
|
|
||||||
| services: | ||||||
| awardsapp: | ||||||
| webapp: | ||||||
| loadBalancer: | ||||||
| servers: | ||||||
| - url: "http://host.docker.internal:3100" | ||||||
|
|
@@ -265,8 +265,8 @@ http: | |||||
|
|
||||||
| tls: | ||||||
| certificates: | ||||||
| - certFile: /certs/awardsapp.local+1.pem | ||||||
| keyFile: /certs/awardsapp.local+1-key.pem | ||||||
| - certFile: /certs/webapp.local+1.pem | ||||||
| keyFile: /certs/webapp.local+1-key.pem | ||||||
| YAML | ||||||
| return 0 | ||||||
| } | ||||||
|
|
@@ -2305,7 +2305,7 @@ cmd_help() { | |||||
| echo " 1. Configure dnsmasq with address=/.local/127.0.0.1 (CLI wildcard resolution)" | ||||||
| echo " 2. Create /etc/resolver/local (routes .local to dnsmasq for CLI tools)" | ||||||
| echo " 3. Migrate Traefik from single dynamic.yml to conf.d/ directory" | ||||||
| echo " 4. Preserve existing routes (e.g., awardsapp)" | ||||||
| echo " 4. Preserve existing routes (e.g., webapp)" | ||||||
| echo " 5. Restart Traefik if running" | ||||||
| echo " Note: dnsmasq resolves .local for CLI tools only. Browsers need /etc/hosts" | ||||||
| echo " entries (added automatically by 'add' command) due to macOS mDNS." | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1446,7 +1446,7 @@ _exec_create_subtasks() { | |
| # Resolve the task's repo from the supervisor DB (t1234, t1237). | ||
| # Tasks are always repo-specific — never guess by falling back to the | ||
| # primary repo, because task IDs can collide across repos (e.g., both | ||
| # aidevops and awardsapp have t003 for different things). Writing to | ||
| # aidevops and webapp have t003 for different things). Writing to | ||
| # the wrong repo is a privacy breach if repo visibility differs. | ||
|
Comment on lines
1446
to
1450
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Run ShellCheck on the supervisor script
if [ -f ".agents/scripts/supervisor/ai-actions.sh" ]; then
echo "=== Running ShellCheck on ai-actions.sh ==="
shellcheck .agents/scripts/supervisor/ai-actions.sh 2>&1
exit_code=$?
echo ""
echo "Exit code: $exit_code"
if [ $exit_code -eq 0 ]; then
echo "✓ ShellCheck passed with no issues"
else
echo "✗ ShellCheck found issues (see above)"
fi
else
echo "File not found: .agents/scripts/supervisor/ai-actions.sh"
fiRepository: marcusquinn/aidevops Length of output: 1937 ShellCheck found 6 info-level issues — review and address before commit. ShellCheck reports:
Address the SC2016 warnings and confirm the file passes ShellCheck cleanly (exit code 0) per the A-grade automation toolchain standard. 🤖 Prompt for AI Agents |
||
| # | ||
| # If the parent task is NOT in the DB, refuse to proceed — the AI reasoner | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: marcusquinn/aidevops
Length of output: 202
🏁 Script executed:
Repository: marcusquinn/aidevops
Length of output: 2483
🏁 Script executed:
Repository: marcusquinn/aidevops
Length of output: 197
Address pre-existing ShellCheck violation before committing.
ShellCheck found a minor SC2086 note at line 1055 (double quote to prevent globbing). The changed segments are syntactically sound and follow proper shell scripting patterns (error redirects, conditionals, heredoc usage). Per guidelines, resolve the pre-existing SC2086 and run
.agents/scripts/linters-local.shbefore committing.🤖 Prompt for AI Agents