Skip to content

GitHub Action

Codex GitHub Action 允许你在 GitHub Actions 工作流中使用 Codex。

使用

在你的 GitHub Actions 工作流中添加 Codex Action:

yaml
- name: Run Codex
  uses: openai/codex-action@v1
  with:
    prompt: "审查此 PR 中的代码更改"

功能

  • 在 CI/CD 中自动审查代码
  • 生成测试
  • 自动化开发任务

先决条件

  • 需要 OpenAI API key 或 Codex 访问令牌
  • 将凭据设置为 GitHub Secrets

由 Codex 构建