He have a post-push workflow where we want to trigger a review on already pushed data in a git repo. The upstream branch is not linear, and so 'rbt post' often fails due to this. We can instead use 'rbt post -S' to squash the commits and this is fine for our needs, but our workflow actually results in the review only being triggered after several pushes have happened. I would like to be able to create a review which squashes each push and effectively linearizes the history, such that a history that looks like
A--B--D
\-C-/
(Where D is a merge commit)
gets linearized as 2 squash diffs A..B and B..D
He I can achieve this if I create a draft with A..B (as a squash diff), publish it, and then add B..D as a new diff, but I would prefer to only publish after the review is fully configured.
If I attempt to use 'rbt post -r # B..D', before publishing, then the diff of A..B gets replaced with that of B..D.
I'm willing to use the API directly for this, but I haven't found the right options (if they exist ) so far.