Repository navigation
feat(annotate): 标注体验升级、智能马赛克与内嵌结果面板 #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
6a8a1f4
ed860a2
757e23b
c168d8a
624a4c0
dce286e
0d9569f
260033d
8b3094b
31362ce
167261f
b1aac71
0d256bf
157a30e
e6eea80
4cc89d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # 阿里开源 OpenCodeReview — PR 自动行级审查 | ||
| # https://github.com/alibaba/open-code-review | ||
| # | ||
| # 前置条件(一次性):仓库 Settings → Secrets and variables → Actions | ||
| # 添加 OCR_LLM_AUTH_TOKEN = Z.ai API Key | ||
| # 换其它 provider 时改下面三行明文(url / model / llm_use_anthropic)即可。 | ||
| name: OpenCodeReview PR Review | ||
|
|
||
| concurrency: | ||
| group: ocr-pr-review-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| on: | ||
| # pull_request 使 PR 分支上的 workflow 立即生效;same-repo PR 同样可读 secrets。 | ||
| # 将来若需 fork PR 触发,改回 pull_request_target 并先把本文件合入 main。 | ||
| pull_request: | ||
| types: [opened, synchronize, reopened] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| code-review: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - name: Run OpenCodeReview | ||
| # pinned to the v1.13.3 tag commit (annotated tag dereferenced) to | ||
| # keep the token-bearing step immune to tag hijacking | ||
| uses: alibaba/open-code-review@375f64cd6f67a48a135da83cfcf59c52669a09cb # v1.13.3 | ||
| with: | ||
| llm_url: https://api.z.ai/api/coding/paas/v4/chat/completions | ||
| llm_auth_token: ${{ secrets.OCR_LLM_AUTH_TOKEN }} | ||
| llm_model: glm-5.3-flash | ||
| llm_use_anthropic: 'false' | ||
| # GLM 关闭思考输出(上游 action 默认格式) | ||
| llm_extra_body: '{"thinking": {"type": "disabled"}}' | ||
| language: Chinese |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -191,7 +191,7 @@ jobs: | |||||||||||||||||||
| CODE_SIGN_IDENTITY="-" \ | ||||||||||||||||||||
| CODE_SIGN_STYLE=Automatic \ | ||||||||||||||||||||
| MACOSX_DEPLOYMENT_TARGET=26.0 \ | ||||||||||||||||||||
| ONLY_ACTIVE_ARCH=NO \ | ||||||||||||||||||||
| ARCHS=arm64 \ | ||||||||||||||||||||
| clean build | ||||||||||||||||||||
|
|
||||||||||||||||||||
| - name: Sign App & Create DMG | ||||||||||||||||||||
|
|
@@ -220,12 +220,17 @@ jobs: | |||||||||||||||||||
|
|
||||||||||||||||||||
| VERSION=${{ steps.vars.outputs.version }} | ||||||||||||||||||||
| DMG_FILE="${{ env.PROJECT_NAME }}-${VERSION}.dmg" | ||||||||||||||||||||
| ARM64_DMG_FILE="${{ env.PROJECT_NAME }}-${VERSION}-arm64.dmg" | ||||||||||||||||||||
|
|
||||||||||||||||||||
| hdiutil create -volname "${{ env.PROJECT_NAME }}" \ | ||||||||||||||||||||
| -srcfolder dmg_temp \ | ||||||||||||||||||||
| -ov -format UDZO \ | ||||||||||||||||||||
| "$DMG_FILE" | ||||||||||||||||||||
|
|
||||||||||||||||||||
| # arm64-only build; keep the un-suffixed name for backward compatibility, | ||||||||||||||||||||
| # but release notes state this is an arm64-only artifact (see Create Release body). | ||||||||||||||||||||
| cp "$DMG_FILE" "$ARM64_DMG_FILE" | ||||||||||||||||||||
|
|
||||||||||||||||||||
| # Get file size | ||||||||||||||||||||
| DMG_SIZE=$(stat -f%z "$DMG_FILE") | ||||||||||||||||||||
| echo "dmg_size=$DMG_SIZE" >> $GITHUB_OUTPUT | ||||||||||||||||||||
|
|
@@ -341,6 +346,8 @@ jobs: | |||||||||||||||||||
| ${{ env.PROJECT_NAME }}-*.dmg | ||||||||||||||||||||
| appcast.xml | ||||||||||||||||||||
| generate_release_notes: true | ||||||||||||||||||||
| body: | | ||||||||||||||||||||
| > **注意**:本次构建为 **arm64-only**。`$NAME-$VERSION.dmg` 与 `$NAME-$VERSION-arm64.dmg` 为同一 arm64 产物(无后缀名为向后兼容保留),不含 x86_64 切片。 | ||||||||||||||||||||
|
Comment on lines
+349
to
+350
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggestion:
Suggested change
Comment on lines
+349
to
+350
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggestion:
Suggested change
|
||||||||||||||||||||
| env: | ||||||||||||||||||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||||||
|
|
||||||||||||||||||||
|
|
||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -99,3 +99,4 @@ build_artifacts/ | |
| .omc/ | ||
| .omd/ | ||
| *.dmg | ||
| scripts/e2e/eventsynth | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
无后缀 DMG 与
-arm64.dmg是同一文件的完整副本,Release assets 将上传两份几十/上百 MB 的相同二进制,下载体积与存储翻倍。若仅为兼容旧链接,可考虑只保留无后缀文件(说明中注明 arm64-only 即可),或用 hard link/上传说明替代重复上传。