Skip to content

Releases: eulogik/AutoPR

v1.0.1 - AI-Powered PR Automation (Free Forever)

23 Apr 09:59

Choose a tag to compare

🚀 AutoPR v1.0.1 - Stop Writing PR Descriptions Manually

AutoPR is an AI-powered CLI tool and GitHub Action that auto-generates PR descriptions and reviews code using 100% free LLMs via OpenRouter.

✨ What's Included

  • CLI Commands: autopr generate and autopr review
  • GitHub Action: Fully automated PR descriptions and code reviews on every PR
  • Smart Caching: Avoid duplicate API calls
  • Secure by Default: Sends only diffs, sanitizes secrets, dry-run mode
  • Zero Cost: Uses OpenRouter's free tier (Gemma, Llama, Mistral)
  • Improved Error Handling: Now with friendly error messages for git repo validation

📦 Installation

npm install -g @eulogik/autopr

🚀 Quick Start

Get your free API key from [OpenRouter](https://openrouter.ai/)
Set it: export OPENROUTER_API_KEY="your-key"
Generate PR description: autopr generate --no-dry-run
🤖 GitHub Action

Add .github/workflows/autopr.yml to your repo (already included in the repo) and let AutoPR handle every PR automatically.

name: AutoPR
on:
  pull_request:
    types: [opened, synchronize, reopened]
permissions:
  contents: read
  pull-requests: write
jobs:
  autopr:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - uses: actions/setup-node@v4
        with:
          node-version: "20"
      - run: npm install -g @eulogik/autopr
      - name: Generate PR Description
        if: github.event.action == 'opened'
        env:
          OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: autopr generate --no-dry-run
      - name: Review PR
        env:
          OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: autopr review ${{ github.event.number }} --no-dry-run
📊 Stats

✅ 22 passing tests
✅ TypeScript strict mode
✅ ESLint clean
✅ MIT License
🔄 Changes in v1.0.1

Fixed git validation: added repo checks and improved error messages
Copied prompt templates to dist/ for proper global installs
Fixed base branch option passing to generatePRDescription()
Updated action.yml with branding (icon: git-pull-request, color: purple)

Star the repo if you find it useful!

v1.0.0 - AI-Powered PR Automation (Free Forever)

23 Apr 09:13

Choose a tag to compare

🚀 AutoPR v1.0.0 - Stop Writing PR Descriptions Manually

AutoPR is an AI-powered CLI tool and GitHub Action that auto-generates PR descriptions and reviews code using 100% free LLMs via OpenRouter.

✨ What's Included

  • CLI Commands: autopr generate and autopr review
  • GitHub Action: Fully automated PR descriptions and code reviews
  • Smart Caching: Avoid duplicate API calls
  • Secure by Default: Sends only diffs, sanitizes secrets, dry-run mode
  • Zero Cost: Uses OpenRouter's free tier (Gemma, Llama, Mistral)

📦 Installation

npm install -g @eulogik/autopr

🔥 Quick Start

Get your free API key from [OpenRouter](https://openrouter.ai/)
Set it: export OPENROUTER_API_KEY="your-key"
Generate PR description: autopr generate --no-dry-run
🤖 GitHub Action

Add .github/workflows/autopr.yml to your repo and let AutoPR handle every PR automatically.

📊 Stats

✅ 22 passing tests
✅ TypeScript strict mode
✅ ESLint clean
✅ MIT License
Star the repo if you find it useful!