diff --git a/.github/workflows/codex-review.yml b/.github/workflows/codex-review.yml deleted file mode 100644 index d50bfc6c..00000000 --- a/.github/workflows/codex-review.yml +++ /dev/null @@ -1,86 +0,0 @@ -name: Codex Review - -on: - pull_request_target: - types: [opened, labeled, reopened, ready_for_review] - paths-ignore: - - '**.md' - - '**.rst' - - 'LICENSE.txt' - - 'doc/**/*.txt' - - '**/AUTHORS' - - '**/SPONSORS' - - '**/TIPS' - -jobs: - codex-review: - if: github.event.pull_request.draft == false || (github.event.action == 'labeled' && contains(github.event.pull_request.labels.*.name, 'codex')) - runs-on: ubuntu-latest - permissions: - contents: read - outputs: - final_message: ${{ steps.run_codex.outputs.final-message }} - - steps: - - name: Check out PR merge commit - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - with: - ref: refs/pull/${{ github.event.pull_request.number }}/merge - - - name: Fetch base and head refs - run: | - git fetch --no-tags origin \ - ${{ github.event.pull_request.base.ref }} \ - +refs/pull/${{ github.event.pull_request.number }}/head - - - name: Run Codex review - id: run_codex - uses: openai/codex-action@e0fdf01220eb9a88167c4898839d273e3f2609d1 # v1.8 - env: - # Use env variables to handle untrusted metadata safely - PR_TITLE: ${{ github.event.pull_request.title }} - PR_BODY: ${{ github.event.pull_request.body }} - with: - openai-api-key: ${{ secrets.OPENAI_API_KEY }} - prompt: | - You are reviewing PR #${{ github.event.pull_request.number }} for ${{ github.repository }}. - - Only review changes introduced by this PR: - git log --oneline ${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }} - - Focus on: - - correctness bugs and regressions - - security concerns - - missing tests or edge cases - - Keep feedback concise and actionable. - - Pull request title and body: - ---- - $PR_TITLE - $PR_BODY - - post-feedback: - runs-on: ubuntu-latest - needs: codex-review - if: needs.codex-review.outputs.final_message != '' - permissions: - issues: write - pull-requests: write - - steps: - - name: Post Codex review as PR comment - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 - env: - CODEX_FINAL_MESSAGE: | - ${{ format('## Codex Review - {0}', needs.codex-review.outputs.final_message) }} - with: - github-token: ${{ github.token }} - script: | - await github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - body: process.env.CODEX_FINAL_MESSAGE, - }); diff --git a/changelog.md b/changelog.md index e54e2b44..6d04e639 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,7 @@ Internal -------- * Add test coverage for `client_commands.py`. * Add test coverage for `cli_runner.py`. +* Remove Codex PR Review action, which stopped working. 1.74.1 (2026/06/18)