From a7ece47b3047dc9acec4931f1c341f677faa5662 Mon Sep 17 00:00:00 2001 From: luwei Date: Sun, 16 Aug 2026 00:04:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20gh-pages=20=E5=AE=98=E7=BD=91=EF=BC=88?= =?UTF-8?q?=E7=8E=B0=E4=BB=A3=E6=9A=97=E8=89=B2=E5=8C=97=E6=AC=A7=E9=A3=8E?= =?UTF-8?q?=EF=BC=89+=20Pages=20=E9=83=A8=E7=BD=B2=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pages.yml | 37 +++++ website/index.html | 293 ++++++++++++++++++++++++++++++++++++ 2 files changed, 330 insertions(+) create mode 100644 .github/workflows/pages.yml create mode 100644 website/index.html diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..d9c138e --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,37 @@ +# Deploy the official website (website/) to GitHub Pages +name: Deploy Pages + +on: + push: + branches: [main] + paths: ['website/**', '.github/workflows/pages.yml'] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + path: website + + deploy: + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - id: deployment + uses: actions/deploy-pages@v4 diff --git a/website/index.html b/website/index.html new file mode 100644 index 0000000..542e5e7 --- /dev/null +++ b/website/index.html @@ -0,0 +1,293 @@ + + + + + +Heimdall β€” AI Code Review Bot for GitHub + + + + + + + +
+ +
+

Guard your pull requests
with an AI that sees everything

+

+ Heimdall is an AI code review bot for GitHub. Model-agnostic, self-hostable, and always on call β€” + it reviews every PR with severity grading, inline comments, and executable diff suggestions. +

+ +
+ # add an AI reviewer to any repo β€” copy 2 files
+ cp template/heimdall-review.yml .github/workflows/
+ cp scripts/heimdall-review.js scripts/
+ # then in any PR: comment @CoderHeimdall +
+
+ +
+
+

Everything Copilot Review should be

+

Model freedom, private deployment, and reports you can actually act on.

+
+
🧠

Model freedom

Claude, GPT, Gemini, or a local Ollama/vLLM β€” you pick. One unified AI_API_KEY + AI_BASE_URL.

+
🎯

Inline comments + diff

Every issue pinned to its code line, with an actionable title, a fix suggestion, and an executable diff (even 1-Click Suggestions).

+
πŸ›‘οΈ

On-demand review

PRs stay quiet until you say the word β€” comment @CoderHeimdall. Or set auto_review: true.

+
πŸ”

Deep checks

Trust-boundary, sensitive-field leakage, fake implementations, N+1, swallowed exceptions β€” caught and graded.

+
🌐

Bilingual reports

REVIEW_LANGUAGE = en (default), zh, or bilingual. One bot, every team.

+
🧩

Configurable

.github/heimdall.yml β€” include/exclude files, min severity, custom instructions, whitelist, block-on-critical.

+
πŸš€

Three deployment modes

GitHub Actions (per-repo), Cloudflare Workers (installable App), or Probot self-hosted β€” code stays on your infra.

+
πŸ”

No spam

Triple dedup means one review per commit. No duplicate review dumps.

+
+
+
+ +
+ +
+
+

A review report you can act on

+

Change summary, severity table, focus areas, verification steps β€” then pinned inline comments with diffs.

+
+
## πŸ›‘οΈ Heimdall Β· Code Review Report
+
Change Summary: 2 files, +214 / -58
+
β”‚ src/auth.ts    +120 / -30
+
β”‚ src/api.ts     +94 / -28
+

### πŸ“– Overview
+
Refactors auth to JWT. Risk: token expiry not verified, no tests yet. Suggest adding expiry + a rejection test.
+

πŸ” 3 issues (critical 1 Β· important 1 Β· normal 1)
+
β–Έ πŸ€– Review Comments
+
  πŸ”΄ src/auth.ts:45 β€” Trust boundary: reload authoritative data server-side
+
  πŸŸ‘ src/api.ts:88 β€” Use Promise.all β€” current N+1 query
+
  πŸŸ’ src/utils.ts:12 β€” Immutable data structure, nice
+
β–Έ ℹ️ Review Info
+
  Files reviewed: 2 Β· Change size: +214 / -58
+
+
+
+ +
+ +
+
+

πŸ₯² Why does Heimdall exist?

+
+

A story of one too many "unilateral contract changes"

+

One fine morning, Copilot arbitrarily revised its subscription deal: models quietly downgraded, token limits shrank, choices vanished overnight. And that $10/month fee? Collected right on schedule β€” yet your Code Review quota reliably ran out by mid-month, greeting you with "Quota limit reached. Please upgrade."

+

By month's end: paid full price, ran out of tokens halfway through, zero Code Review when PRs hit β€” and helped another earnings report.

+
+
🧠 Total model freedom β€” Claude, GPT, Gemini, or self-hosted. 100% your call.
+
πŸ’³ Pay for what you use β€” your own key or gateway. No $10 all-you-can-eat that starves you.
+
πŸŒ‰ Unshakeable bridge β€” the Bifrost Guardian never changes terms mid-flight.
+
+
+
+
+ +
+ +
+
+

Get started in 2 minutes

+

Pick a mode β€” Actions for a single repo, Workers for a team-wide installable bot.

+
# Mode A β€” add an AI reviewer to any repo
+$ mkdir -p .github/workflows scripts
+$ cp template/heimdall-review.yml .github/workflows/
+$ cp scripts/heimdall-review.js scripts/
+$ # add AI_API_KEY (or ANTHROPIC_API_KEY) as a repo secret
+
+# in any PR, comment:
+@CoderHeimdall
+
+# want auto-review? add .github/heimdall.yml with:
+auto_review: true
+
+ Read the full setup guide +
+
+
+ + + + + +