Skip to content

ci: add opencode-actions PR review workflow#3

Merged
Svtter merged 2 commits into
mainfrom
ci/add-opencode-review
May 19, 2026
Merged

ci: add opencode-actions PR review workflow#3
Svtter merged 2 commits into
mainfrom
ci/add-opencode-review

Conversation

@Svtter
Copy link
Copy Markdown
Contributor

@Svtter Svtter commented May 19, 2026

Summary

  • Add GitHub Actions workflow for automated PR code review using Svtter/opencode-actions/review@v2
  • Triggers on PR open/sync/reopen, skips drafts and forks
  • Requires ZHIPU_API_KEY and/or OPENCODE_GO_API_KEY in repository secrets

Test plan

  • Configure ZHIPU_API_KEY secret in repository settings
  • Open a test PR and verify the review action runs
  • Check that review comment is posted on the PR

🤖 Generated with Claude Code

Svtter and others added 2 commits May 19, 2026 15:46
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

可合并

本次 PR 在 .github/workflows/opencode-review.yml 中新增了一个 PR 自动 review 工作流,触发条件、权限、安全检查均合理,整体质量良好。

阻塞项:无

建议项:

  1. issues: write 权限多余 —— review 只需 pull-requests: write,建议移除以遵循最小权限原则
  2. Svtter/opencode-actions/review@v2 使用了可变标签(mutable tag),建议固定到具体 commit SHA 以防止标签被篡改带来的供应链安全风险
  3. PR 描述提及需要 ZHIPU_API_KEY 密钥,但 workflow 中仅配置了 OPENCODE_GO_API_KEY,建议统一描述或补充 zhipu-api-key 输入

New%20session%20-%202026-05-19T07%3A54%3A07.890Z
opencode session  |  github run

@Svtter Svtter merged commit c478277 into main May 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant