Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
01f8820
chore(bot): configure optional intent providers
AsperforMias Oct 7, 2026
52fe1d7
feat(bot): persist repository preferences
AsperforMias Oct 7, 2026
d33a618
feat(bot): persist operation ownership and limits
AsperforMias Oct 7, 2026
87e9b46
feat(bot): add bounded LLM completion transport
AsperforMias Oct 7, 2026
0401815
feat(bot): classify concrete label intent with Jev
AsperforMias Oct 7, 2026
ded0a5a
feat(bot): validate and isolate repository settings
AsperforMias Oct 7, 2026
38ee297
feat(bot): record repository operation audits
AsperforMias Oct 7, 2026
63c0be2
feat(bot): preserve owned comments and score templates
AsperforMias Oct 7, 2026
fbc5ffc
feat(bot): apply allowlisted intent labels and safe intros
AsperforMias Oct 7, 2026
2094906
feat(bot): read current label definitions safely
AsperforMias Oct 7, 2026
b88e5d3
feat(bot): enforce issue and PR processing preferences
AsperforMias Oct 7, 2026
c8e3bd3
feat(bot): backfill only explicitly requested open items
AsperforMias Oct 7, 2026
a20553b
fix(bot): retry failed tasks once without losing origin
AsperforMias Oct 7, 2026
7e1db60
feat(bot): classify intent in eligible processing jobs
AsperforMias Oct 7, 2026
cc7b4d8
feat(bot): honor opt-in comment delivery and follow-ups
AsperforMias Oct 7, 2026
5c84dad
feat(bot): plan and execute ownership-aware cleanup
AsperforMias Oct 7, 2026
0ae36b4
fix(bot): recover scheduled operations independently
AsperforMias Oct 7, 2026
5444aa7
feat(auth): persist opt-in bot token scopes
AsperforMias Oct 7, 2026
ab4075b
feat(auth): accept explicit bot scopes for new tokens
AsperforMias Oct 7, 2026
56eb4ca
feat(auth): expose scoped personal token identity
AsperforMias Oct 7, 2026
2b58fd0
feat(integrations): offer bot permission opt-in
AsperforMias Oct 7, 2026
23305ba
fix(integrations): resolve install commands during SSR
AsperforMias Oct 7, 2026
0651e69
chore(release): approve personal token schema migration
AsperforMias Oct 7, 2026
62a4760
feat(bot): expose scoped repository management API
AsperforMias Oct 7, 2026
18b8b4f
feat(cli): describe Go bot management commands
AsperforMias Oct 7, 2026
e1da447
feat(cli): add Go bot management workflows
AsperforMias Oct 7, 2026
5ece14a
feat(js): describe bot management capabilities
AsperforMias Oct 7, 2026
d5aa37c
feat(js): add bot management workflows
AsperforMias Oct 7, 2026
8dd1d49
feat(python): describe bot management capabilities
AsperforMias Oct 7, 2026
31d660d
feat(python): add bot management workflows
AsperforMias Oct 7, 2026
4f31bc4
feat(bot): preview saved intent definitions without writes
AsperforMias Oct 7, 2026
d0c58f3
fix(bot): order shared GitHub item numbers deterministically
AsperforMias Oct 7, 2026
115fd89
feat(bot): load permission-scoped paginated console data
AsperforMias Oct 7, 2026
5b3ca48
feat(bot): aggregate bounded authorized account data
AsperforMias Oct 7, 2026
34b2540
feat(bot): localize console operations and privacy copy
AsperforMias Oct 7, 2026
0db0e08
feat(bot): build accessible desktop console shell
AsperforMias Oct 7, 2026
c78ba4d
feat(bot): connect account console and protected operation forms
AsperforMias Oct 7, 2026
8997522
feat(bot): open a genuine global dashboard by default
AsperforMias Oct 7, 2026
3d9fcb9
fix(bot): scope and order legacy history before limits
AsperforMias Oct 7, 2026
b0fd0db
test(bot): run an isolated migrated dashboard preview
AsperforMias Oct 7, 2026
81e1aaf
test(bot): check native account menus
AsperforMias Oct 7, 2026
69cd9a4
test(bot): exercise console themes and navigation
AsperforMias Oct 7, 2026
de31e77
test(bot): define semantic label evaluation cases
AsperforMias Oct 7, 2026
f8ba23b
test(bot): evaluate real intent decisions in local scopes
AsperforMias Oct 7, 2026
fd25feb
test(bot): summarize retained Jev evaluation evidence
AsperforMias Oct 7, 2026
fa20bd1
test(bot): exercise live decisions through Worker paths
AsperforMias Oct 7, 2026
f86316e
test(bot): snapshot public Dify labels and item content
AsperforMias Oct 7, 2026
2a42dc7
test(bot): expose bounded preview isolation diagnostics
AsperforMias Oct 7, 2026
11922fa
fix(release): deploy bot after verified backend release
AsperforMias Oct 7, 2026
a5c45b4
docs: explain bot token permissions
AsperforMias Oct 7, 2026
98f093d
docs(js): document bot management workflows
AsperforMias Oct 7, 2026
9332720
docs(python): document bot management workflows
AsperforMias Oct 7, 2026
322136a
docs(skill): document safe bot administration
AsperforMias Oct 7, 2026
a50cf1d
docs(bot): explain console operations and Jev evaluation
AsperforMias Oct 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/deploy-cf-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,47 @@ jobs:
- name: Remove temporary plaintext role credentials
if: always()
run: rm -f "$RUNNER_TEMP/feed-web-secrets.json" "$RUNNER_TEMP/feed-runtime-secrets.json" "$RUNNER_TEMP/feed-adapter-secrets.json"

deploy-bot:
name: Deploy bot after its legacy SCORE backend
needs: [deploy]
if: ${{ github.repository == 'hikariming/ghfind' && github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' && github.event.workflow_run.head_branch == 'main' && github.event.workflow_run.repository.full_name == 'hikariming/ghfind' }}
environment: Production
concurrency:
group: ghfind-bot-production
cancel-in-progress: false
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
working-directory: platform/github-app
env:
RELEASE_SHA: ${{ github.event.workflow_run.head_sha }}
WRANGLER_SEND_METRICS: "false"
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_sha }}
persist-credentials: false
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: pnpm install --frozen-lockfile
- run: pnpm typecheck
- run: pnpm test
- run: pnpm build
- name: Require exact current main before production writes
run: |
set -euo pipefail
test "$(git rev-parse HEAD)" = "$RELEASE_SHA"
current_main=$(git ls-remote origin refs/heads/main | cut -f1)
test "$current_main" = "$RELEASE_SHA"
- name: Apply bot migrations then deploy the matching Worker
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: 8f19bebe359e4ec1a24c68c5f49c1584
run: |
set -euo pipefail
pnpm exec wrangler d1 migrations apply ghfind-bot --remote --env production
pnpm exec wrangler deploy --env production --tag "production-$RELEASE_SHA" --message "Bot after verified legacy SCORE backend $RELEASE_SHA"
23 changes: 0 additions & 23 deletions .github/workflows/github-app-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,3 @@ jobs:
- run: pnpm typecheck
- run: pnpm test
- run: pnpm build
deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'hikariming/ghfind'
needs: app
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
working-directory: platform/github-app
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: pnpm install --frozen-lockfile
- name: Deploy ghfind-bot
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: 8f19bebe359e4ec1a24c68c5f49c1584
WRANGLER_SEND_METRICS: "false"
run: pnpm exec wrangler deploy --env production
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,14 @@ pnpm cli:build
The standalone CLI is built as `./bin/ghfind`. The separately published npm SDK
also provides a `ghfind` executable; it is not installed by the root workspace.

`ghfind bot` uses a personal `ghf_` token from
[Integrations](https://ghfind.com/integrations). Explicitly select **Manage the
ghfind Review bot** when creating it, then set `GHFIND_API_KEY` or `--api-key`.
Existing tokens remain scan-only. All bot commands require this permission;
repository reads also require write access and changes require admin access.
Same-owner repository renames and App reinstalls preserve bot settings; an
owner transfer resets AI opt-ins, allowed intent labels and custom prompts.

The default service host is `https://ghfind.com`. Override it for local dev:

```bash
Expand Down
8 changes: 8 additions & 0 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,14 @@ pnpm cli:build
独立 CLI 构建为 `./bin/ghfind`。单独发布的 npm SDK 也提供 `ghfind` 可执行命令,
但根工作区不会安装该 SDK。

`ghfind bot` 使用在 [Integrations](https://ghfind.com/integrations) 创建的个人
`ghf_` Token。创建时必须显式勾选 **Manage the ghfind Review bot(管理 ghfind Review bot)**,
并设置 `GHFIND_API_KEY` 或 `--api-key`。存量 Token 仍仅能扫描。所有 bot 命令都需要
此权限;仓库查看还需 write 权限,修改需 admin 权限。
同一 owner 改名或重装 App 保留 bot 设置;仓库转移会重置 AI 开关、
勾选的意图标签和自定义评论提示词,新 owner 需重新主动开启。


默认服务端域名是 `https://ghfind.com`。本地联调可以覆盖:

```bash
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/pages/[locale]/integrations.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Base from "../../layouts/Base.astro";
import { IntegrationsPageIsland } from "../../islands/IntegrationsPageIsland";
import { getMessages, getTranslator, pickMessages, routeLocale } from "../../lib/i18n";
import { isSignedIn } from "../../lib/session";
import { installCommand } from "@/components/pages/IntegrationsView";
import { installCommand } from "@/lib/integration-install";

const locale = routeLocale(Astro.params.locale);
if (!locale) return new Response(null, { status: 404 });
Expand Down
Loading
Loading