Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Issue Lens

Issue Lens is an Azure-ready FastAPI MVP for AI-assisted GitHub issue triage. It ingests issues from public GitHub repositories, stores them in PostgreSQL with pgvector embeddings, finds similar issues, predicts triage metadata, and exposes the workflow through Swagger.

Default repositories:

  • fastapi/fastapi
  • django/django

Local Development

cp .env.example .env
docker compose up --build

Then open:

  • API health: http://localhost:8000/health
  • Swagger UI: http://localhost:8000/docs

Run migrations:

docker compose exec api alembic upgrade head

Run tests locally:

python -m venv .venv
. .venv/bin/activate
pip install -e ".[dev]"
pytest

Core Flow

  1. Register or use a default repository.
  2. Ingest GitHub issues.
  3. Generate embeddings for ingested issues with POST /repositories/{repository_id}/embed.
  4. Search similar issues with pgvector.
  5. Ask OpenAI structured outputs to classify severity, component, labels, and suggested checks.
  6. Store the triage run and reviewer feedback.

Searchable History

After ingestion, call:

POST /repositories/{repository_id}/embed

Example body:

{
  "limit": 50,
  "only_missing": true
}

This embeds stored issues that do not yet have vectors, making them eligible for similar_issues and duplicate_candidates during triage.

Azure Target

The service is designed for Azure Container Apps with Azure Database for PostgreSQL Flexible Server, pgvector enabled, secrets stored in Container App secrets or Key Vault, and optional Application Insights instrumentation.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages