Implement the author workflow for responding to a pull request review, including resubmitting with updated changes.
Notes#
On tangled.org, pull requests are based on a static patch blob at the time of creation. When the author pushes new commits to the source branch in response to review feedback, the PR must be resubmitted with a fresh diff.
Tasks#
- Implement
tangled pr update <id> [--head <head-branch>] [--base <base-branch>](ortangled pr resubmit) command.- Re-generate the
git diffpatch between the head and base branches. - Gzip-compress the new patch.
- Upload the new compressed patch as a blob using
com.atproto.repo.uploadBlob. - Use
com.atproto.repo.putRecordto update the existingsh.tangled.repo.pullrecord with the newpatchBlob, updatedsource.sha, andcreatedAt.
- Re-generate the
- Verify that
tangled pr comment(from Phase 2) covers the author response / discussion use case. - Document the expected workflow for authors responding to review feedback (update, resubmit, comment).