- gitea_api_create_pull_request: 409 时自动查 open PR 列表,返回已存在的 PR - MCP 新增 apply_onboarding_pack(接入包分发 UI 按钮的 agent 投影) - MCP 新增 list_all_projects(绕过 group 限制,列出全库项目及注入状态)
29 lines
621 B
YAML
29 lines
621 B
YAML
# PR 代码质量检查(Gitea Actions)
|
||
# 在 PR 合并前执行 build / lint,确保代码可编译且风格合规
|
||
name: PR Check
|
||
|
||
on:
|
||
pull_request:
|
||
branches: [main]
|
||
|
||
jobs:
|
||
check:
|
||
runs-on: windows
|
||
steps:
|
||
- uses: actions/checkout@v4
|
||
|
||
- uses: pnpm/action-setup@v4
|
||
with:
|
||
version: 9
|
||
|
||
- name: Setup Node.js
|
||
uses: actions/setup-node@v4
|
||
with:
|
||
node-version: '20'
|
||
cache: 'pnpm'
|
||
|
||
- run: pnpm install --frozen-lockfile
|
||
- run: pnpm build
|
||
- run: pnpm lint --if-present
|
||
- run: pnpm test --if-present --passWithNoTests
|