Skip to main content
createCodexCloudPullRequest publishes the diff from a completed Codex cloud turn as a GitHub pull request.
automations/create-codex-pr.automation.ts
The task’s current completed assistant turn is used by default. Pass turnId to publish another completed attempt. draft defaults to false. Optional second argument { account } defaults to the project binding. PR creation is asynchronous; call getCodexCloudTask until its pullRequests contains the resulting GitHub URL and metadata.
Codex Cloud does not currently provide an official public REST API. This action calls undocumented ChatGPT backend endpoints that may change without notice.