Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

PRism - AI Triage GitHub Action

AI-powered GitHub Action for smarter open-source triage. PRism detects duplicate issues and PRs, generates structured PR review summaries, applies intelligent labels, and optionally supports Postgres + pgvector for persistent similarity.

Why This Exists

Post that inspired PRism

PRism started as a response to high-volume OSS triage pain raised by @steipete: duplicate issues, duplicate PRs, and too much manual review overhead.

Features

  • 🔍 Duplicate Detection: AI-powered duplicate detection for issues and PRs
  • 📝 Structured PR Reviews: Comprehensive code reviews with categorized findings
  • 🏷️ Smart Labeling: Automatic label suggestions and application
  • 💾 Stateful/Stateless: Run in-memory or with Postgres + pgvector
  • Fast: Posts comments within 60 seconds
  • 🔒 Safe: Never auto-closes or auto-merges

Quick Start

name: AI Triage
on:
  issues:
    types: [opened, edited]
  pull_request:
    types: [opened, edited, synchronize]

jobs:
  triage:
    runs-on: ubuntu-latest
    steps:
      - uses: danhdox/prism@v1
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          llm-api-key: ${{ secrets.OPENAI_API_KEY }}

Roadmap

Done (MVP)

  • Duplicate and related issue/PR detection with confidence signals
  • Structured PR review comments with findings + complexity estimate
  • Automatic label suggestions and application
  • Vision alignment analysis for PRs
  • Off-track handling modes: comment, label, fail
  • Stateful mode support with Postgres + pgvector

Next

  • Backlog triage mode for scheduled scans and prioritized queues
  • Better explainability in comments (why this PR/issue was matched)
  • Configurable confidence thresholds per repository workflow
  • One-click "needs human review" escalation path

Later

  • Cross-repo similarity detection for org-wide triage
  • Improved signal blending (semantic similarity + file/risk heuristics)
  • Triage analytics dashboard and trend reporting

Documentation

Requirements

  • GitHub Actions workflow
  • OpenAI API key (required)
  • PostgreSQL with pgvector (optional, for stateful mode)

License

MIT - see LICENSE

About

AI-powered GitHub Action for smarter open-source triage. PRism detects duplicate issues and PRs, generates structured PR review summaries, applies intelligent labels, and optionally supports Postgres + pgvector for persistent similarity. Runs fully inside GitHub Actions, stateless by default, with optional stateful mode for large repos.

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages