There is a repository say "A". Now I am creating a new repository by manually moving the code from "A" with some minor modifications and calling it "B". Now, whenever there is a PR from any developers to repo "A" which might be applicable to "B" as well, we need a similar PR to "B". Instead of creating a PR by manually copying the changes from the PRs manually, how can we automate this process?
I am thinking of a webhook based solution. Lets say a PR called PR1 is raised towards repo "A", a webhook can be triggered and processed. However, i need to know i) Is it possible to copy the changes of PR1 to another PR towards repo "B" programattically?
I expect any help raising a new PR to repo B programmatically in Java with the changes coming in a PR to repo A.