share: upload a .diff/.patch as a diff pin, with --title and --desc - #5
Open
terraboops wants to merge 1 commit into
Open
terraboops wants to merge 1 commit into
terraboops wants to merge 1 commit into
Conversation
The server has rendered text/x-diff with an X-Pin-Title banner and an X-Pin-Description PR description since diffview landed, but the CLI only sent HTML or MDX (a .diff got 415), so a diff pin needed a hand-rolled request with a bearer token. --desc travels base64-encoded, as the server documents, so it may span lines. Used 2026-10-02 to prove pin#47 (goldmark 1.8.6) on production: a diff pin described "See (https://example.org/)." renders href="https://example.org/", not the old "…/)". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sn3acTQsYfyvVidkmhCC5j
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pin share change.diff --title T --desc Duploads a patch as a diff pin (text/x-diff,X-Pin-Title,X-Pin-Descriptionbase64), which pin-api has rendered via diffview all along. Before this the CLI sent only HTML or MDX, and a.diffgot415.Proven on production with this build: a diff pin described
See (https://example.org/). Also see (https://en.wikipedia.org/wiki/Foo_(bar)).rendershref="https://example.org/"andhref="https://en.wikipedia.org/wiki/Foo_(bar)". That's pin#47's goldmark 1.8.6 linkify fix working on the deployed system.go vetandgo testpass.🤖 Generated with Claude Code
https://claude.ai/code/session_01Sn3acTQsYfyvVidkmhCC5j