Skip to content

chore(api): DO NOT MERGE - show custom code in SDK reviews - #2397

Closed
apcha-oai wants to merge 1 commit into
mainfrom
castiron/promotions/pr-65
Closed

chore(api): DO NOT MERGE - show custom code in SDK reviews#2397
apcha-oai wants to merge 1 commit into
mainfrom
castiron/promotions/pr-65

Conversation

@apcha-oai

@apcha-oai apcha-oai commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

DO NOT MERGE. Draft workflow demonstration; no release or merge is intended.

Make handwritten changes in generated SDK files easier to review. One PR comment shows newly customized files, existing customizations that changed, and commands to inspect the current custom-code diff. It updates in place as the PR changes.

The reporting files come from shared Castiron templates and use normal three-way merges, so repository-specific customizations remain possible. The workflow checks the generated baseline's content hash. Public reporting uses only public snapshot history and needs no private-repository credentials.

This draft is limited to reporting and generation metadata; it does not change the SDK API or runtime. Workflow changes require the repository's normal workflow-write permissions.

@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Castiron custom code

✅ No new custom-code files detected.

31 mixed files remain; 0 existing customizations changed.

Compared dd945e63d9c3d128c1e1682e. Generated baselines verified.

Legacy baseline: content hash computed from the pinned checkpoint; not yet recorded in that revision’s stats.

31 existing customizations unchanged
  • api.md
  • src/client.ts
  • src/resources/audio/transcriptions.ts
  • src/resources/audio/translations.ts
  • src/resources/beta/assistants.ts
  • src/resources/beta/beta.ts
  • src/resources/beta/index.ts
  • src/resources/beta/responses/internal-base.ts
  • src/resources/beta/responses/responses.ts
  • src/resources/beta/threads/index.ts
  • src/resources/beta/threads/runs/index.ts
  • src/resources/beta/threads/runs/runs.ts
  • src/resources/beta/threads/threads.ts
  • src/resources/chat/completions/completions.ts
  • src/resources/chat/completions/index.ts
  • src/resources/conversations/index.ts
  • src/resources/embeddings.ts
  • src/resources/files.ts
  • src/resources/fine-tuning/checkpoints/permissions.ts
  • src/resources/images.ts
  • src/resources/responses/internal-base.ts
  • src/resources/responses/responses.ts
  • src/resources/skills/skills.ts
  • src/resources/skills/versions/versions.ts
  • src/resources/vector-stores/file-batches.ts
  • src/resources/vector-stores/files.ts
  • src/resources/webhooks/index.ts
  • src/resources/webhooks/webhooks.ts
  • tests/api-resources/embeddings.test.ts
  • tests/api-resources/responses/responses.test.ts
  • tests/lib/data-residency.test.ts

A changed generated baseline means this report cannot reliably identify which handwritten lines changed.

Inspect the custom-code diff

Download the exact patch produced by this run (requires repository access):

gh run download 32174763041 --repo openai/openai-node \
  --name castiron-custom-code-32174763041-1 --dir /tmp/castiron-custom-code-32174763041-1
git apply --stat /tmp/castiron-custom-code-32174763041-1/custom-code.patch
cat /tmp/castiron-custom-code-32174763041-1/custom-code.patch

Or reproduce it from an SDK checkout containing the vendored reporter:

git fetch --no-tags origin dd945e63d9c31adff7d3feef1078b7b3f99b4e1f d128c1e1682ed9a0748f363ab40aa59d53ca15a2
python3 scripts/castiron/custom_code_report.py report \
  --base dd945e63d9c31adff7d3feef1078b7b3f99b4e1f \
  --head d128c1e1682ed9a0748f363ab40aa59d53ca15a2 --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-d128c1e1682e
cat /tmp/castiron-custom-code-d128c1e1682e/custom-code.patch

This is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR.

Full report and patch

@apcha-oai apcha-oai changed the title chore(api): DO NOT MERGE - Castiron-owned custom-code reporting chore(api): DO NOT MERGE - show custom code in SDK reviews Aug 18, 2026
@apcha-oai
apcha-oai force-pushed the castiron/promotions/pr-65 branch from 048d68f to adfcd7f Compare August 18, 2026 18:57
Castiron-Internal-PR: openai/openai-node-internal#65
Castiron-Source-SHA: 6ba1fca03109e7d55a235103d8bceefc533df76e
Castiron-Public-Base-SHA: dd945e6
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