Skip to content

v0.6.1

Choose a tag to compare

@mr-karan mr-karan released this 19 May 09:25
· 40 commits to main since this release

What's New

Gitea and Forgejo PR Reviews

Hodor now supports Gitea and Forgejo pull request URLs:

npx @mrkaran/hodor https://git.example.com/owner/repo/pulls/123
  • Fetches PR metadata from Gitea/Forgejo APIs
  • Checks out source branches, including fork PRs when source clone URLs are available
  • Supports posting review comments with GITEA_TOKEN or FORGEJO_TOKEN

Thanks @abhinavxd for the Gitea support work.

Advanced GitLab MR Reviews

GitLab review posting is much more complete now:

  • Inline diff comments for findings
  • Draft note batching to avoid notification spam
  • Suggestion blocks for apply-in-GitLab fixes
  • --review-style summary|inline|hybrid
  • --commit-status for pass/fail status checks
  • --code-quality for GitLab Code Quality artifacts
  • Cleanup of stale Hodor summary and inline comments on reruns

Closes #7.

More Model Providers

Hodor now uses the pi-ai provider registry and accepts provider/model-id strings across more providers:

npx @mrkaran/hodor <PR_URL> --model openai/gpt-5
npx @mrkaran/hodor <PR_URL> --model openrouter/moonshotai/kimi-k2.6
npx @mrkaran/hodor <PR_URL> --model bedrock/converse/anthropic.claude-sonnet-4-5-v2

OpenRouter slugs are handled more flexibly so newer models can be used before they land in the registry.

Closes #15.

Review Reliability

Several failure modes in the review loop were fixed:

  • Recover structured reviews when the model returns JSON text instead of calling submit_review
  • Validate recovered review schemas before accepting them
  • Tighten diff-focused analysis so reviews stay scoped to PR changes
  • Improve path handling for local and custom workspaces

CI Workspace Fix

Hodor now validates CI workspaces before using them. In GitHub Actions container jobs, if GITHUB_WORKSPACE is empty or not a git checkout, Hodor falls back to cloning instead of failing with:

fatal: not a git repository

Closes #19.

Metrics and Dashboard

  • Added --prometheus-push support for review metrics
  • Added token, cost, duration, tool-call, verdict, and finding-count metrics
  • Added a generic Grafana dashboard in docs/grafana/

Documentation

  • Reworked CI setup docs for GitHub Actions and GitLab CI
  • Added model/provider docs
  • Added OpenRouter docs
  • Added skills documentation for .agents/skills
  • Cleaned up generated-looking docs and restored the useful parts

Fixes

  • Set Content-Type for GitLab API POST/PUT calls. Closes #20.
  • Fixed GitHub Actions invocation in the README. Closes #18.
  • Hardened Gitea PR checkout for source branches and forks.
  • Improved GitLab cleanup behavior for custom workspaces. Closes #16.

Release

Published packages:

  • npm: @mrkaran/hodor@0.6.1
  • GitHub release: v0.6.1

Full diff: v0.5.0...v0.6.1