Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Add Hodor AI code review workflow (#2923)

Karan Sharma7fd5ed0a6e53
diff --git a/.github/workflows/hodor-review.yml b/.github/workflows/hodor-review.yml
new file mode 100644
index 00000000..c13d24f2
--- /dev/null
+++ b/.github/workflows/hodor-review.yml
@@ -0,0 +1,30 @@
+name: Hodor AI Code Review
+
+on:
+ pull_request:
+ types: [opened, synchronize]
+ paths-ignore:
+ - 'i18n/**'
+ - '*.md'
+ - 'LICENSE'
+ - '.gitignore'
+
+permissions:
+ contents: read
+ pull-requests: write
+
+jobs:
+ review:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Run Hodor review
+ uses: addnab/docker-run-action@v3
+ with:
+ image: ghcr.io/mr-karan/hodor:0.2.14
+ options: >-
+ -e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
+ -e LLM_API_KEY=${{ secrets.LLM_API_KEY }}
+ run: |
+ hodor "https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request.number }}" \
+ --model "${{ vars.HODOR_MODEL || 'gpt-5.2' }}" \
+ --post