Skip to content

Allow cross-repo pull requests to be opened #413

Open
@patjakdev

Description

@patjakdev

A common workflow for contributing to open source projects in Github consists of the following steps:

  1. Create a fork of the repo that you intend to contribute to
  2. Push a branch into your fork containing the changes you wish to merge upstream
  3. Open a pull request in the upstream repo which references the branch in your fork

Right now, it doesn't appear that there's a way to push branches from git-spice into a fork and open a pull request in another repo. In particular, the RepositoryID of the CreatePullRequestInput that's passed to Github here is always the same as the repo where the branches are pushed.

I'm not sure what it would take to implement this feature. I suppose you'd need to add some config that specifies which repository PRs should be opened in and default it to the same as the one where branches will be pushed.

I'm willing to contribute myself if you'll point me in the right direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions