Monorepo for Tangled tangled.org

Bring back patch-upload option on PR #4836

Open boltless.me
Open opened by and assigned to boltless.me

This is currently unavailable because knot pulls the source branch on org.tangled.review.submitPatch call.

It should work opposite, clients should push arbitrary commits, and reference that commit from following submitPatch call. Knots will garbage-collect submitted packfiles when not referenced by any records.

Honestly whole submitPatch method can be replaced with createRecord with this flow, it will work same as atproto blob upload.

not entirely sure about this, we lose a lot of nice things from branch based PRs, such as being able to expand context, open the file, interdiffing directly with jj or gix instead of string manipulation...

It will still be ref based PR! We just allow users to create arbitrary commit by submitting a patch, so they don't have to create a fork on tangled to contribute. knotmirror will apply the submitted patch on target branch, create a commit, submit packfile to target knot, and create org.tangled.review.patch record referencing it.

Users won't be able to resubmit, but the whole resubmit flow needs some work anyway.

Sign up or Sign in to add to the discussion.