Skip to content
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions .github/workflows/codex-code-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Codex Code Review

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

jobs:
review:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
final-message: ${{ steps.codex.outputs.final-message }}

steps:
- name: Check out the pull request merge commit
uses: actions/checkout@v5
with:
ref: refs/pull/${{ github.event.pull_request.number }}/merge
persist-credentials: false

- name: Fetch pull request refs
env:
PR_BASE_REF: ${{ github.event.pull_request.base.ref }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
git fetch --no-tags origin \
"$PR_BASE_REF" \
"+refs/pull/$PR_NUMBER/head"

- name: Run Codex review
id: codex
uses: openai/codex-action@v1
with:
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
sandbox: read-only
prompt: |
Review pull request #${{ github.event.pull_request.number }} in ${{ github.repository }}.

Review only changes introduced by this pull request. Compare:
${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }}

Focus on correctness, regressions, security, TypeScript and React issues,
accessibility, and missing or inadequate tests. Follow repository guidance
in AGENTS.md if present. Be concise and specific. Include file paths and line
numbers for every finding. If there are no actionable findings, say so.

Pull request title and body:
---
${{ github.event.pull_request.title }}
${{ github.event.pull_request.body }}

post-review:
needs: review
if: needs.review.outputs.final-message != ''
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- name: Post Codex feedback
uses: actions/github-script@v7
env:
CODEX_FINAL_MESSAGE: ${{ needs.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,
});
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ This changelog follows the principles of [Keep a Changelog](https://keepachangel

- Dataset Templates UI integration, including create/edit flows, previews, and skeleton states.
- Dataset Page: added a sidebar to show dataset reviews
- Dataset Page: "Styled Citation" now supports selecting any CSL citation style and renders the citation formatted in that style, using citeproc-js in the browser.
- Dataset Page: added a copy icon in front of "Cite Dataset" to support a quick copy of citation in default style.

### Changed

Expand Down
Loading
Loading