This repository has been archived on 2026-11-17. You can view files and clone it, but cannot push or open issues or pull requests.
gitgram-ai/gitgram/test-github.sh
caelum0x 49b183818c Unify gitgram + aitimemachine into the monorepo (de-submodule) and merge vendored engines
Convert gitgram/ and aitimemachine/ from embedded git repos (which showed as
opaque submodule gitlinks on GitHub) into fully-tracked first-party content.

AITM now merges its 7 vendored repos as first-party engines:
- memory: beads (Go task DAG) + context7 (docs SDK), unified into saved_contexts
- git: vendored C git (bundled binary) + gitnexus (in-process code intelligence)
- agentic: a2a (@a2a-js/sdk) + pal (AITM-managed Python subprocess)

Includes the full session's product build: Gitgram web/mobile/backend features,
AITM website/CLI/MCP, the unified memory layer, engine build tooling
(scripts/build-engines.sh, Dockerfile, CI), docs (README, ENGINES.md, ARCHITECTURE.md),
and extensive test suites.

Build artifacts, node_modules, external/, and gemini-cli are gitignored.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 14:14:09 +03:00

63 lines
1.7 KiB
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
echo "🧪 Testing GitHub Integration"
echo "============================="
echo ""
# Check if backend is running
if ! curl -s http://localhost:3001/health > /dev/null 2>&1; then
echo "❌ Backend is not running!"
echo "Start it with: cd backend && npm run dev"
exit 1
fi
echo "✅ Backend is running"
echo ""
echo "1️⃣ Testing Repository Search"
echo "----------------------------"
echo "Searching for 'vscode'..."
echo ""
response=$(curl -s "http://localhost:3001/api/repositories/search?q=vscode")
echo "$response" | jq '.' 2>/dev/null || echo "$response"
echo ""
echo "2️⃣ Testing Get Repository"
echo "------------------------"
echo "Fetching microsoft/vscode..."
echo ""
response=$(curl -s "http://localhost:3001/api/repositories/microsoft/vscode")
echo "$response" | jq '.' 2>/dev/null || echo "$response"
echo ""
echo "3️⃣ Testing Trending Repositories"
echo "-------------------------------"
echo "Fetching trending TypeScript repos..."
echo ""
response=$(curl -s "http://localhost:3001/api/repositories/trending?language=typescript")
echo "$response" | jq '.' 2>/dev/null || echo "$response"
echo ""
echo "4️⃣ Testing Rate Limit"
echo "--------------------"
echo "Checking GitHub API rate limit..."
echo ""
if [ -n "$GITHUB_TOKEN" ]; then
curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/rate_limit | jq '.rate'
else
curl -s https://api.github.com/rate_limit | jq '.rate'
fi
echo ""
echo "✅ GitHub Integration Tests Complete!"
echo ""
echo "Tips:"
echo " - Add GITHUB_TOKEN to .env for 5000 req/hour"
echo " - Without token: 60 req/hour"
echo " - Get token: https://github.com/settings/tokens"
echo ""