Skip to content

Use createCommitOnBranch for file write tools#2772

Open
bongsu-rapportlabs wants to merge 1 commit into
github:mainfrom
bongsu-rapportlabs:codex/create-commit-on-branch
Open

Use createCommitOnBranch for file write tools#2772
bongsu-rapportlabs wants to merge 1 commit into
github:mainfrom
bongsu-rapportlabs:codex/create-commit-on-branch

Conversation

@bongsu-rapportlabs

Copy link
Copy Markdown

Summary

  • Use GraphQL createCommitOnBranch for create_or_update_file and push_files commits.
  • Keep existing SHA validation and tool inputs, and preserve the create_or_update_file response by fetching the updated file metadata after the commit.
  • Remove the now-unused REST contents response converter.

Closes #2771.

Testing

  • mise exec go@1.25.0 -- ./script/lint
  • mise exec go@1.25.0 -- go test ./... -count=1

@bongsu-rapportlabs bongsu-rapportlabs requested a review from a team as a code owner June 26, 2026 02:59
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.

Use GitHub-signed commits for repository file write tools

2 participants