google / copybara

Copybara: A tool for transforming and moving code between repositories.
Apache License 2.0
2.13k stars 258 forks source link

Creating a PR on the destination isn't working #252

Closed alexmaguilar25 closed 1 year ago

alexmaguilar25 commented 1 year ago

I'm trying to use the --github-destination-pr-create flag, and --github-destination-pr-branch flags together. While it creates the PR branch, I still have to manually go to the repo to create the PR for that branch. Is there a reason why? Here are the versions:

commit = 609fbe374a96ede32f8db71ad112d2c17d0951ee sha256 = ddb9e20564fc3153da515ebb197683bb66aa1c06474ebd94f06f333bb263c090

Here is a rough idea of what my config file looks like

core.workflow(
    name = "default",
    origin = git.origin(
        url = "https://github.com/sorcerepo.git",
        ref = "dev"
    ),
    destination = git.github_pr_destination(
        url = "https://github.com/test-library-copy.git",
        pr_branch = "branch_testing",
        title = "Copybara Sync",
    ),
    destination_files = glob(["**"]),
    authoring = authoring.pass_thru("Default email <test@email.com>"),
)