Skip to content

feat: add ability to output upload results as json - #716

Merged
drbh merged 2 commits into
mainfrom
upload-output-json
Jul 15, 2026
Merged

drbh merged 2 commits into
mainfrom
upload-output-json

Conversation

@drbh

@drbh drbh commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

this pr adds a --output-json flag to the upload command so the upload results are emitted in a machine readable format

example output

{
  "status": "pull_request_created",
  "repo_id": "drbh/example",
  "branch": "v1",
  "url": null,
  "pull_requests": [
    { "branch": "main", "url": "https://hf.co/kernels/drbh/example/discussions/8" },
    { "branch": "v1",   "url": "https://hf.co/kernels/drbh/example/discussions/9" }
  ]
}

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

sayakpaul
sayakpaul previously approved these changes Jul 14, 2026

@sayakpaul sayakpaul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is also very nice from an agentic perspective since agents love machine-readable formats. I think it would be nice to also include a test in this PR?

@drbh
drbh merged commit 19aaa64 into main Jul 15, 2026
51 checks passed

This branch was previously deployed

1 inactive deployment
testpypi — 4cd933f2 Deployed Jul 14, 2026 by drbh via Publish Python 🐍 distribution 📦 to TestPyPI #1780
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.

3 participants