Files
Sauci/.agent/workflows/push-all.md
T
Jamie BruntonandClaude Code f7aa6ed8dd Add feature opt-ins, dashboard view, and tests
Introduce feature_interests schema + realtime publication and surface opt-in trends in the admin dashboard. Add Jest test infrastructure/coverage for the mobile app and update push-all to run mobile checks before pushing.

Co-authored-by: Claude Code <claude@anthropic.com>
2026-01-02 11:36:51 +00:00

1.9 KiB

description
description
Security check, commit with sensible message, and push

Push All Workflow

Context

  1. Get key git information:
    • Current branch: git branch --show-current
    • Git status: git status --short

Step 1: Security Check

Before committing, scan the staged changes for potential secrets or sensitive data:

  • API keys, tokens, or credentials (patterns like sk-, api_key, secret, password, token, bearer)
  • .env files or environment variable files with actual values
  • Private keys or certificates
  • Database connection strings with credentials
  • Hardcoded URLs with authentication parameters

Run git diff --cached (and git diff if you encounter unstaged files that will be added) to inspect what will be committed. If you find ANY potential secrets:

  1. STOP immediately
  2. List the specific files and lines containing potential secrets
  3. Do NOT proceed with the commit
  4. Suggest how to fix (use environment variables, add to .gitignore, etc.)

Step 2: Stage All Changes

If security check passes, stage all changes.

Run git add -A

Step 3: Run Checks

Before committing, make sure checks pass for the projects you touched:

  • Mobile typecheck: npm --prefix apps/mobile run typecheck
  • Mobile tests: npm --prefix apps/mobile run test:ci
  • Web typecheck (if you changed apps/web): npm --prefix apps/web run typecheck

Note: apps/supabase is Supabase config/functions (no TS typecheck).

If any command fails, STOP and report the output.

Step 4: Generate Commit Message

Analyze the changes and create a concise, meaningful commit message that:

  • Summarizes what changed (not how)
  • Uses imperative mood ("Add feature" not "Added feature")
  • Is 50 chars or less for the subject line
  • Includes the standard footer if applicable

Look at recent commits with git log --oneline -5 to match the repository's commit style.

Step 5: Commit and Push

  1. Create the commit with the generated message.
  2. Push to the remote repository.