I have been testing Copybara and it's been working well for the following workflows:
importing PR from destination -> source PR using CHANGE_REQUEST
copying code from source main -> destination main using ITERATIVE mode and doing a fake merge on the destination PR if the source PR is merged
However, I also want to enable exporting PR from source -> destination workflow using CHANGE_REQUEST_FROM_SOT but I noticed this doesn't do a fake merge because the commits do not contain the label COPYBARA_INTEGRATE_REVIEW. It works if I manually amend the source PR commit to add this label and the link to the destination PR created. I also checked after_migration but can't seem to find a command to support this. I know that amending PR could trigger another workflow so it had to be done right before the source PR is merged. This doesn't seem like a common usage as I have not seen an example Cobybara config on this, is there a way to do this within Copybara?
I have been testing Copybara and it's been working well for the following workflows:
CHANGE_REQUEST
ITERATIVE
mode and doing a fake merge on the destination PR if the source PR is mergedHowever, I also want to enable exporting PR from source -> destination workflow using
CHANGE_REQUEST_FROM_SOT
but I noticed this doesn't do a fake merge because the commits do not contain the labelCOPYBARA_INTEGRATE_REVIEW
. It works if I manually amend the source PR commit to add this label and the link to the destination PR created. I also checkedafter_migration
but can't seem to find a command to support this. I know that amending PR could trigger another workflow so it had to be done right before the source PR is merged. This doesn't seem like a common usage as I have not seen an example Cobybara config on this, is there a way to do this within Copybara?